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
Name | Type | Description |
---|---|---|
Time: A time in milliseconds. For example 3600 would specify that each the user needs to wait 3600 milliseconds between withdrawals.
Deposit funds for the specified recipient.
Only the allowed coin in instantiation can be deposited.
Withdraw funds from the available balance.
Enough time should pass since the last withdrawal.
The rest of the execute messages can be found in the ADO Base section.
Provides the allowed coin and limits for withdrawal size and frequency.
Returns a CoinAllowance struct.
Shows the balance and latest withdrawal time.
Returns an AccountDetails struct.
The rest of the query messages can be found in the ADO Base section.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
allowed_coin
Set the allowed coin denom and the maximum amount allowed to withdraw.
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.
coin
String
Sets the accepted coin denom.
limit
Uint128
Sets the withdrawal limit in terms of amount.
recipient
Option<String>
The owner of the deposited funds. If not set, defaults to the sender.
amount
Uint128
The amount of coins to withdraw.
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.
account
String
The address to check the account for.
balance
Uint128
The balance of the specified address.
latest_withdrawal
Option<Timestamp>
The time of the last withdrawal of the specified address.