pub fn stop_ramp_amplification(&mut self) {
        let current_time = env::block_timestamp();
        let invariant = StableSwap::new(
            self.init_amp_factor,
            self.target_amp_factor,
            current_time,
            self.init_amp_time,
            self.stop_amp_time,
        );
        let amp_factor = invariant
            .compute_amp_factor()
            .expect(ERR65_INIT_TOKEN_BALANCE);
        self.init_amp_factor = amp_factor;
        self.target_amp_factor = amp_factor;
        self.init_amp_time = current_time;
        self.stop_amp_time = current_time;
    }
/// [Admin function] Stop increase of amplification factor.
[Admin function] Stop increase of amplification factor.
[ Admin function ] Stop increase of amplification factor .
pub fn stop_ramp_amplification(&mut self) {
        let current_time = env::block_timestamp();
        let invariant = StableSwap::new(
            self.init_amp_factor,
            self.target_amp_factor,
            current_time,
            self.init_amp_time,
            self.stop_amp_time,
        );
        let amp_factor = invariant
            .compute_amp_factor()
            .expect(ERR65_INIT_TOKEN_BALANCE);
        self.init_amp_factor = amp_factor;
        self.target_amp_factor = amp_factor;
        self.init_amp_time = current_time;
        self.stop_amp_time = current_time;
    }
pub fn stop_ramp_amplification ( & mut self ) { let current_time = env :: block_timestamp ( ) ; let invariant = StableSwap :: new ( self . init_amp_factor , self . target_amp_factor , current_time , self . init_amp_time , self . stop_amp_time , ) ; let amp_factor = invariant . compute_amp_factor ( ) . expect ( ERR65_INIT_TOKEN_BALANCE ) ; self . init_amp_factor = amp_factor ; self . target_amp_factor = amp_factor ; self . init_amp_time = current_time ; self . stop_amp_time = current_time ; }
[Admin function] Stop increase of amplification factor.
[ Admin function ] Stop increase of amplification factor .
&mut self
&mut self