Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 759 Bytes

MIGRATION.md

File metadata and controls

19 lines (10 loc) · 759 Bytes

MIGRATION

This file shows the API changes between different versions of Phoenix-Contracts.

1.0.0 -> X.X.X

factory

  • initialize function requires a new argument stable_wasm_hash: BytesN<32>

  • create_liquidity_pool requires a new argument pool_type parameter (and optional amp for stable pool)

pool

  • provide_liquidity, swap, withdraw_liquidity functions now have a new argument called deadline: Option<u64>. We check against that if the transaction hasn't been executed after a certain timelimit.

pool_stable

  • provide_liquidity, swap, withdraw_liquidity functions now have a new argument called deadline: Option<u64>. We check against that if the transaction hasn't been executed after a certain timelimit.