Rate Limiting Withdrawals
Introduction
The Rate Limiting Withdrawals ADO acts as a bank account that limits the frequency and size of an account holder's withdrawals. Only one type of coin can be used.
Ado_type: rate-limiting-withdrawals
Version: 2.0.2-beta.1
InstantiateMsg
minimal_withdrawal_frequency
The time required between withdrawals. Specified in milliseconds. Cannot be 0.
kernel_address
String
Contract address of the kernel contract to be used for AMP messaging. Kernel contract address can be found in our deployed contracts.
owner
Option<String>
Optional address to specify as the owner of the ADO being created. Defaults to the sender if not specified.
CoinAndLimit
coin
String
Sets the accepted coin denom.
limit
Uint128
Sets the withdrawal limit in terms of amount.
MinimumFrequency
Time: A time in milliseconds. For example 3600 would specify that each the user needs to wait 3600 milliseconds between withdrawals.
ExecuteMsg
Deposits
Deposit funds for the specified recipient.
Only the allowed coin in instantiation can be deposited.
recipient
Option<String>
The owner of the deposited funds. If not set, defaults to the sender.
WithdrawFunds
Withdraw funds from the available balance.
Enough time should pass since the last withdrawal.
amount
Uint128
The amount of coins to withdraw.
Base Executes
The rest of the execute messages can be found in the ADO Base section.
QueryMsg
CoinAllowanceDetails
Provides the allowed coin and limits for withdrawal size and frequency.
CoinAllowance
Returns a CoinAllowance struct.
coin
string
The coin denom.
limit
Uint128
The amount allowed to withdraw per withdrawal.
minimal_withdrawal_frequency
The time required between withdrawals. Specified in milliseconds.
AccountDetails
Shows the balance and latest withdrawal time.
account
String
The address to check the account for.
AccountDetails
Returns an AccountDetails struct.
balance
Uint128
The balance of the specified address.
latest_withdrawal
Option<Timestamp>
The time of the last withdrawal of the specified address.
Base Queries
The rest of the query messages can be found in the ADO Base section.