Skip to content

@solana/spl-token-swap - v0.1.0

Compare
Choose a tag to compare
@joncinque joncinque released this 01 Mar 22:37
· 4913 commits to master since this release
9839b18

Changes

  • Make all layouts compatible with SPL Token Swap v2.0.0
  • Specify CurveType on pool initialization: ConstantProduct, ConstantPrice, or Offset
  • New instructions
    • depositSingleTokenTypeExactAmountIn: deposit one token type in exchange for pool tokens, instead of both types
    • withdrawSingleTokenTypeExactAmountOut: withdraw one token type in exchange for pool tokens, instead of both types