| Crates.io | astroport-maker |
| lib.rs | astroport-maker |
| version | 1.7.0 |
| created_at | 2023-07-20 17:40:29.219381+00 |
| updated_at | 2025-04-02 21:25:09.210982+00 |
| description | Astroport Maker contract |
| homepage | https://astroport.fi |
| repository | https://github.com/astroport-fi/astroport |
| max_upload_size | |
| id | 921625 |
| size | 182,957 |
The Maker contract collects part of Astroport's pair fees (according to the factory's maker_fee). The accrued fees are swapped to ASTRO and then send to stakers and governance (according to the governance_percent).
Initializes the contract with required addresses and the governance_percent.
{
"owner": "terra...",
"astro_token_contract": "terra...",
"factory_contract": "terra...",
"staking_contract": "terra...",
"governance_contract": "terra...",
"governance_percent": 20,
"max_spread": 23.3
}
collectSwaps accrued fee tokens to ASTRO.
{
"collect": {
"pair_addresses": [
"terra...",
"terra..."
]
}
}
update_configUpdates the contract's general settings. All fields are optional.
{
"update_config": {
"factory_contract": "terra...",
"staking_contract": "terra...",
"governance_contract": {
"set": "terra..."
},
"governance_percent": "20",
"max_spread": 23.3
}
}
propose_new_ownerCreates a proposal to change contract ownership. The proposal validity period is set in the expires_in variable.
{
"propose_new_owner": {
"owner": "terra...",
"expires_in": 1234567
}
}
drop_ownership_proposalRemoves the existing proposal to change contract ownership.
{
"drop_ownership_proposal": {}
}
claim_ownershipUsed to claim contract ownership, thus changing the contract's owner.
{
"claim_ownership": {}
}
All query messages are described below. A custom struct is defined for each query response.
configReturns information about the Maker's configuration.
{
"config": {}
}
balancesReturns token balances for each specified asset held by the Maker.
{
"balances": {
"assets": [
{
"token": {
"contract_addr": "terra..."
}
},
{
"native_token": {
"denom": "uusd"
}
}
]
}
}