Skip to content

Latest commit

 

History

History

nebula-collector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Nebula Collector

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).

InstantiateMsg

{
    "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 (the gov contract usually)
  • astroport_factory: address of the Astroport factory contract
  • nebula_token: contract address of Nebula Token (NEB)
  • base_denom: base denom for all swap operations (UST)
  • owner: address of the owner of the collector contract

ExecuteMsg

Convert

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

Distribute

Distributes the converted NEB tokens to the distribution_contract

{
    "distribute": {},
}

UpdateConfig

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 address
  • astroport_factory: address of the new Astroport factory contract
  • nebula_token: contract address of new Nebula Token (NEB)
  • base_denom: new base denom
  • owner: address of the new owner of the cluster contract

QueryMsg

Config

Returns the current configuration information for the contract

{
    "config": {}
}