pub fn stable_swap_ramp_amp(
        &mut self,
        pool_id: u64,
        future_amp_factor: u64,
        future_amp_time: WrappedTimestamp,
    ) {
        assert!(self.is_owner_or_guardians(), "ERR_NOT_ALLOWED");
        let mut pool = self.pools.get(pool_id).expect("ERR_NO_POOL");
        match &mut pool {
            Pool::StableSwapPool(pool) => {
                pool.ramp_amplification(future_amp_factor as u128, future_amp_time.0)
            }
            _ => env::panic(b"ERR_NOT_STABLE_POOL"),
        }
        self.pools.replace(pool_id, &pool);
    }
/// to eventually change a stable pool's amp factor
/// pool_id: the target stable pool;
/// future_amp_factor: the target amp factor, could be less or more than current one;
/// future_amp_time: the endtime of the increasing or decreasing process;
to eventually change a stable pool's amp factor
pool_id: the target stable pool;
future_amp_factor: the target amp factor, could be less or more than current one;
future_amp_time: the endtime of the increasing or decreasing process.
to eventually change a stable pool ' s amp factor pool_id : the target stable pool ; future_amp_factor : the target amp factor could be less or more than current one ; future_amp_time : the endtime of the increasing or decreasing process .
pub fn stable_swap_ramp_amp(
        &mut self,
        pool_id: u64,
        future_amp_factor: u64,
        future_amp_time: WrappedTimestamp,
    ) {
        assert!(self.is_owner_or_guardians(), "ERR_NOT_ALLOWED");
        let mut pool = self.pools.get(pool_id).expect("ERR_NO_POOL");
        match &mut pool {
            Pool::StableSwapPool(pool) => {
                pool.ramp_amplification(future_amp_factor as u128, future_amp_time.0)
            }
            _ => env::panic(b"ERR_NOT_STABLE_POOL"),
        }
        self.pools.replace(pool_id, &pool);
    }
pub fn stable_swap_ramp_amp ( & mut self , pool_id : u64 , future_amp_factor : u64 , future_amp_time : WrappedTimestamp , ) { assert ! ( self is_owner_or_guardians ( ) " " ) ; let mut pool = self . pools . get ( pool_id ) . expect ( " " ) ; match & mut pool { Pool :: StableSwapPool ( pool ) => { pool . ramp_amplification ( future_amp_factor as u128 , future_amp_time . 0 ) } _ => env :: panic ( b" " ) , } self . pools . replace ( pool_id , & pool ) ; }
to eventually change a stable pool's amp factor
pool_id: the target stable pool;
future_amp_factor: the target amp factor, could be less or more than current one;
future_amp_time: the endtime of the increasing or decreasing process;
to eventually change a stable pool ' s amp factor pool_id : the target stable pool ; future_amp_factor : the target amp factor could be less or more than current one ; future_amp_time : the endtime of the increasing or decreasing process ;
&mut self
pool_id
u64
future_amp_factor
u64
future_amp_time
WrappedTimestamp
&mut self
pool_id
u64
future_amp_factor
u64
future_amp_time
WrappedTimestamp