pool.move
Error Codes
Events
Write Methods
create_pool<CoinType>(ctx: &mut TxContext)
create_pool<CoinType>(ctx: &mut TxContext)
Creates a new pool for a specific coin type.
Emits: PoolCreate
Admin Methods
set_owner(pool_admin_cap: &mut PoolAdminCap, owner: u256, val: bool, ctx: &mut TxContext)
set_owner(pool_admin_cap: &mut PoolAdminCap, owner: u256, val: bool, ctx: &mut TxContext)
Sets the owner of a pool
Emits: PoolOwnerSetting
set_admin(pool_admin_cap: &mut PoolAdminCap, admin: u256, val: bool, ctx: &mut TxContext)
set_admin(pool_admin_cap: &mut PoolAdminCap, admin: u256, val: bool, ctx: &mut TxContext)
Sets the admin of a pool
Emits: PoolAdminSetting
Last updated