Collector
Collects rewards generated from fees, converts them into NEB through Terraswap, and sends it to [[nebula-gov]] instance to distribute to NEB token stakers.
InstantiateMsg#
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]pub struct InstantiateMsg { pub owner: String, pub distribution_contract: String, // collected rewards receiver pub terraswap_factory: String, pub nebula_token: String, pub base_denom: String,}| Key | Type | Description |
|---|---|---|
| owner | String | (address) contract owner |
| distribution_contract | String | (address) recipient of collected rewards |
| terraswap_factory | String | (address) Terraswap Factory contract |
| nebula_token | String | (address) Nebula Token (NEB) contract |
| base_denom | String | Base denomination to trade against into |
ExecuteMsg#
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]#[serde(rename_all = "snake_case")]pub enum ExecuteMsg { /// USER-CALLABLE Convert { asset_token: String, }, Distribute {},}Convert#
| Key | Type | Description |
|---|---|---|
| asset_token | String | (address) asset token to convert to UST |
Distribute#
| Key | Type | Description |
|---|---|---|
| This message takes no arguments. | ||
QueryMsg#
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]#[serde(rename_all = "snake_case")]pub enum QueryMsg { Config {},}Config#
Request#
| Key | Type | Description |
|---|---|---|
| This message takes no arguments. | ||