Alpha Staking Pool

GalaxyStakingPools (GalaxyStakingPools.sol)

The NAOS galaxy staking pool collects users’ funds and deposits them into Galaxy. Investors can stake stable coins, such as DAI or BUSD into the NAOS galaxy staking pool. These funds will be supplied to Galaxy for the real world assets lending. Investors can get interests from real world assets and NAOS tokens in return.

function deposit(uint256 _poolId, uint256 _amount)

Deposit stable coins into alpha pool, after the asset settlement, stable coin will be converted into alpha tokens according to the epoch alpha token price.

function redeem(uint256 _poolId, uint256[] calldata _index)

After lock period is expired, users can register to redeem their alpha tokens which is staking in the pools. If there is enough stable coins in the Galaxy, the alpha tokens will be converted into stable coins to the user.

function withdraw()

Withdraw redeemable stable coins which is redeemed from Galaxy.

function claim(uint256 _poolId)

Claim the pending NAOS rewards.

function activateBoost(uint256 _poolId, address _account)

Rebalance the user's NAOS reward weight of the pool according to the poolId. The formula of the boost weight is: min( UserAlphaDeposited, 0.4 * UserAlphaDeposited + 0.6 * TotalAlphaDeposited * UserBoostPoolDeposited / TotalBoostPoolDeposited)

function activateBoosts(address _account) Rebalance the user's NAOS reward weight of all pools. The formula of the boost weight is: min( UserAlphaDeposited, 0.4 * UserAlphaDeposited + 0.6 * TotalAlphaDeposited * UserBoostPoolDeposited / TotalBoostPoolDeposited)

Last updated