andromedaprotocol/andromeda-core

[1.0.rc-1] Remove AddressAndKey Option from Rate-Limiting-Withdrawals ADO

Closed this issue · 0 comments

Description

In the rate-limiting-withdrawals ADO, we have an option to add an AddressAndKey for the MinimumFrequency field in instantiation. This uses the primitive contract to save the value. Since the primitive will not be included in our release, then this option should be removed and the Time should be the only option :

pub struct InstantiateMsg {
    pub allowed_coin: CoinAndLimit,
    pub minimal_withdrawal_frequency: MinimumFrequency,
}
 
#[cw_serde]
pub enum MinimumFrequency {
    Time { time: Milliseconds },
    AddressAndKey { address_and_key: ContractAndKey },
}