Skip to content

ADX: new staking contract and migrator contract #206

@Ivshti

Description

@Ivshti

Summary

decided that we're going to use ADX-STAKING as a basis but add variable lock staking and stk* mechanics (1 stk token = 1 base token)

Full to do list:

  • stk mechanics (transfer, transferFrom, balanceOf, totalSupply, EVENTS)
  • permit2 (x402)
  • remove penalize/claim
  • variable lock staking; when you're setting your own unlock time, you can only decrease it if it's your first stake (previous shares[msg.sender] == 0)
  • ensure there's no division by zero and extra gas overhead from stk* additions
  • make tokens non-transferrable during unbonding commitment
  • expose principal - decided not to do it
  • internal audit
  • implement emit ShareValueUpdated()
  • full tests - test: do migration, set penalty max (or do any call to old staking pool) & penalize old pool, set new governnace
    • approvals
  • automated deployment, devnet

Full to do, migrator:

  • basic migrator contract
  • value erosion or deadline - decided on deadline for now - we can use pool penalizing/claiming to erode value later

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions