Skip to content

Commit a2f09ee

Browse files
authored
fix: stable swap (#42)
* fix: rename pair to pool * fix: check coins length, check input and output coin type are not same * fix: updatee minitswap * run precompile
1 parent 9c68828 commit a2f09ee

File tree

4 files changed

+96
-94
lines changed

4 files changed

+96
-94
lines changed
-13 Bytes
Binary file not shown.
40 Bytes
Binary file not shown.

precompile/modules/initia_stdlib/sources/minitswap.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ module initia_std::minitswap {
567567
coin::withdraw(account, l2_init_metadata, l2_init_amount),
568568
];
569569

570-
let liquidity_token = stableswap::create_pair(&creator, symbol, symbol, stableswap_pool_store.swap_fee_rate, coins, stableswap_pool_store.ann);
570+
let liquidity_token = stableswap::create_pool(&creator, symbol, symbol, stableswap_pool_store.swap_fee_rate, coins, stableswap_pool_store.ann);
571571
let metadata = fungible_asset::metadata_from_asset(&liquidity_token);
572572
let pool = object::convert<Metadata, Pool>(metadata);
573573

0 commit comments

Comments
 (0)