Collector
The Collector accumulates fee rewards generated from CDP withdrawal within the protocol, and converts them into UST in order to purchase MIR from the MIR-UST Terraswap pool. The MIR is then sent to the Gov Contract to supply trading fee rewards for MIR stakers.

InitMsg
terraswap_factory
HumanAddr
Contract address of Terraswap Factory
mirror_token
HumanAddr
Contract address of Mirror Token (MIR)
base_denom
String
Base denomination (native Terra token denom)
aust_token
HumanAddr
Address of aUST token contract
anchor_market
HumanAddr
Address of Anchor Market contract
bluna_token
HumanAddr
Address of bLuna token contract
bluna_swap_denom
String
Base denomination which bLuna to be swapped into (uusd)
HandleMsg
UpdateConfig
Updates the configuration of Collector contrat. Can only be called by owner.
owner*
HumanAddr
Address of the contract owner*
terraswap_factory*
HumanAddr
Contract address of Terraswap Factory
mirror_token*
HumanAddr
Contract address of Mirror Token (MIR)
base_denom*
String
Base denomination (native Terra token denom)
aust_token*
HumanAddr
Address of aUST token contract
anchor_market*
HumanAddr
Address of Anchor Market contract
bluna_token*
HumanAddr
Address of bLuna token contract
bluna_swap_denom*
String
Base denomination which bLuna to be swapped into (uusd)
*= optional
Convert
ConvertDepending on asset_token, performs one of the following:
if
asset_tokenis an mAsset Luna or Anchor sells the contract's balance of that mAsset for UST on Terraswapif
asset_tokenis the UST token, buys MIR off the MIR/UST Terraswap pool with the contract's UST balanceif
asset_tokenis aUST, or bLuna sells the token based on registeredanchor_marketorbluna_swap_denom
asset_token
HumanAddr
Contract address of asset to convert
LunaSwapHook
LunaSwapHookHook to swap Luna token to MIR.
QueryMsg
Config
ConfigGet the Mirror Collector contract configuration.
Response
owner
HumanAddr
Address of the contract owner*
terraswap_factory
HumanAddr
Contract address of Terraswap Factory
mirror_token
HumanAddr
Contract address of Mirror Token (MIR)
base_denom
String
Base denomination (native Terra token denom)
aust_token
HumanAddr
Address of aUST token contract
anchor_market
HumanAddr
Address of Anchor Market contract
bluna_token
HumanAddr
Address of bLuna token contract
bluna_swap_denom
String
Base denomination which bLuna to be swapped into (uusd)
Response
owner
HumanAddr
Address of the contract owner*
terraswap_factory
HumanAddr
Contract address of Terraswap Factory
mirror_token
HumanAddr
Contract address of Mirror Token (MIR)
base_denom
String
Base denomination (native Terra token denom)
aust_token
HumanAddr
Address of aUST token contract
anchor_market
HumanAddr
Address of Anchor Market contract
bluna_token
HumanAddr
Address of bLuna token contract
bluna_swap_denom
String
Base denomination which bLuna to be swapped into (uusd)
Last updated