The Collector accumulates Nebula protocol fees and swaps them to NEB through the NEB <> UST Aastroport pair. Swapped NEB tokens are distributed to NEB stakers (sent to the gov
) contract).
{
"distribution_contract": String,
"astroport_factory": String,
"nebula_token": String,
"base_denom": String,
"owner": String
}
distribution_contract
: address at which to distribute the protocol fee rewards to (thegov
contract usually)astroport_factory
: address of the Astroportfactory
contractnebula_token
: contract address of Nebula Token (NEB)base_denom
: base denom for all swap operations (UST)owner
: address of the owner of thecollector
contract
Converts/swap either:
- Cluster tokens accrued through protocol fees to UST
- UST accrued from converting the cluster tokens to NEB
{
"convert": {
"asset_token": String
}
}
asset_token
: address of CW20 token to convert
Distributes the converted NEB tokens to the distribution_contract
{
"distribute": {},
}
Updates contract variables
{
"update_config": {
"distribution_contract": Option<String>,
"astroport_factory": Option<String>,
"nebula_token": Option<String>,
"base_denom": Option<String>,
"owner": Option<String>
}
}
distribution_contract
: new distribution contract addressastroport_factory
: address of the new Astroport factory contractnebula_token
: contract address of new Nebula Token (NEB)base_denom
: new base denomowner
: address of the new owner of thecluster
contract
Returns the current configuration information for the contract
{
"config": {}
}