Collector
The Collector accumulates Anchor protocol fees and swaps them to ANC through the ANC <> UST Terraswap pair. Swapped ANC tokens are distributed to ANC stakers (sent to Gov contract).
Config
Name | Type | Description |
| CanonicalAddr | Contract address of Gov |
| CanonicalAddr | Contract address of Terraswap Factory |
| CanonicalAddr | Contract address of Anchor Token (ANC) |
| CanonicalAddr | Contract address of Distributor |
| Decimal | Ratio of purchased ANC distributed to ANC stakers |
InstantiateMsg
Name | Type | Description |
| String | Contract address of Gov |
| String | Contract address of Terraswap Factory |
| String | Contract address of Anchor Token (ANC) |
| String | Contract address of Distributor |
| Decimal | Ratio of purchased ANC distributed to ANC stakers |
ExecuteMsg
UpdateConfig
UpdateConfig
Updates the Collector contract configuration.
Name | Type | Description |
| Decimal | New ratio of purchased ANC distributed to ANC stakers |
* = optional
Sweep
Sweep
Can be issued by anyone to swap denom
Terra stablecoins in the Collector contract to ANC tokens. Afterwards, distributes reward_factor
portion of swapped ANC tokens to ANC stakers. Can be issued by anyone.
Name | Type | Description |
| String | Denomination of stablecoin to swap |
QueryMsg
Config
Config
Gets the Collector contract configuration.
Name | Type | Description |
ConfigResponse
ConfigResponse
Name | Type | Description |
| String | Contract address of Gov |
| String | Contract address of Terraswap Factory |
| String | Contract address of Anchor Token (ANC) |
| String | Contract address of Distributor |
| Decimal | Ratio of purchased ANC distributed to ANC stakers |
Last updated