Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit bec876d

Browse files
Proposal for token-swap curve using stake pool account (#1504)
* feat: add new curve proposal * Update StakePoolStableCurve.md
1 parent 6969ad1 commit bec876d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Combine Stable Curve with Stake Pool for price discovery
2+
3+
Implement a curve for token-swap that accepts stake pool account and uses stable curve to swap assets.
4+
[Stake pool account](https://github.com/solana-labs/solana-program-library/blob/master/stake-pool/program/src/state.rs#L17) will be used for initial price discovery then stable curve would be used to derive price based on the size of the order and available reserves.
5+
6+
## Links
7+
1. Stake pool implementation: https://github.com/solana-labs/solana-program-library/blob/master/stake-pool/program
8+
2. AMM implementation: https://github.com/solana-labs/solana-program-library/blob/master/token-swap/program
9+
3. Stable curve: https://github.com/solana-labs/solana-program-library/blob/master/token-swap/program/src/curve/stable.rs

0 commit comments

Comments
 (0)