Skip to content

garythung/agld-loot-staking

Repository files navigation

AGLD staking rewards for Loot

🚨 This repo is still a work-in-progress. Comments, feedback, questions, etc. are welcomed and encouraged.

What is this?

Loot and mLoot holders can stake their bags to earn $AGLD rewards.

Staking is non-custodial and requires a signal transaction before each epoch commences. Rewards for an epoch are claimable after the epoch elapses.

Staking claims are tied to bags not owners. If you transfer your bag that has been staked, the new owner may claim your rewards.

The total staking rewards is set to distribute evenly over each epoch. The share of rewards per epoch for Loot and mLoot is based on the ratio of their floor market caps to total Loot and mLoot floor market caps.

The admin is expected to update the weights for each upcoming epoch. In the case that that fails, every epoch weight has already been initialized to the first weights.

See AGLD tokenomics discussion for exact details.

How it works (staker)

You must signal your stake for the upcoming epoch during the current epoch. You cannot stake for the current epoch.

The diagram below illustrates the epoch timeline.

epoch 0 start = signal period for epoch 1 begins
epoch 1 start = stakingStartTime

0                 1                 2                 3
|-----------------|-----------------|-----------------|---
stake for 1
                  stake for 2
                                    stake for 3
  1. For an upcoming epoch, signal your stake for your Loot or mLoot bags.
  2. Once the epoch ends, you are entitled to claim your rewards for your bag. When you claim, you claim for all epochs you are entitled to.

How it works (deployer)

  1. Deploy the contract.
  2. Send AGLD to the Staking contract.
  3. From the owner account, call notifyRewardAmount() with the amount of AGLD sent (full number, not parsed number).

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published