Fee Collector
The Fee Collector is a contract that collects the fees accrued by the protocol. Whenever a pool or a farm is created, as well as swaps, a fee is sent to the Fee Collector. As of now, the Fee Collector does not have any other function.
Instantiate
Instantiates an instance of the fee collector contract
{}ExecuteMsg
UpdateOwnership(::cw_ownable::Action)
Implements cw_ownable. Updates the contract's ownership. ::cw_ownable::Action can be TransferOwnership, AcceptOwnership and RenounceOwnership.
Note: This is a cw_ownable message.
Propose to transfer the contract's ownership to another account, optionally with an expiry time. Can only be called by the contract's current owner. Any existing pending ownership transfer is overwritten.
{
"update_ownership": {
"transfer_ownership": {
"new_owner": "mantra1...",
"expiry": {
"at_height": "424242424242"
}
}
}
}new_owner
String
The new owner proposed,
expiry
Option<Expiration>
Optional expiration time parameter.
Accept the pending ownership transfer. Can only be called by the pending owner.
{
"update_ownership": "accept_ownership"
}Give up the contract's ownership and the possibility of appointing a new owner. Can only be invoked by the contract's current owner. Any existing pending ownership transfer is canceled.
{
"update_ownership": "renounce_ownership"
}QueryMsg
Ownership
Returns the ownership of the contract.
Note: This is a cw_ownable query.
{
"ownership": {}
}{
"owner": "mantra1...",
"pending_owner": "mantra1...",
"pending_expiry": 424242424242
}owner
Option
The contract's current owner. None if the ownership has been renounced.
pending_owner
Option
The account who has been proposed to take over the ownership. None if there isn't a pending ownership transfer.
pending_expiry
Option
The deadline for the pending owner to accept the ownership. None if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.
MigrateMsg
Message to migrate the contract to a new code ID.
{}Last updated