Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebasable Token #3

Open
wants to merge 202 commits into
base: main
Choose a base branch
from
Open

Rebasable Token #3

wants to merge 202 commits into from

Conversation

kovalgek
Copy link
Collaborator

@kovalgek kovalgek commented Apr 16, 2024

WHAT

Implement a new Rebasable token (stETH).

HOW

  • add a new token
  • change L1 and L2 bridges to support new token flows.
  • add token rate oracle for storing rate on L2
  • add token updater for emergency flow
    Detailed schemes and explanations can find here https://hackmd.io/@lido/ryKP1ssm6

It is a copy of lidofinance#58.

TODO:

  • OZ versions
  • DepositDataCodec. Asynchronous bridge update and fuzz decodeDepositData.
  • use safeIncreaseAllowance instead of approve
  • Deposit/Withdrawal zero tokens
  • PermitExtension - EIP-5267
  • Proxy - unified approach, update specs
  • ERC20RebasableBridged __disable_Initializers
  • ERC20RebasableBridged.unwrap() _getSharesByTokens - zero amount case
  • ERC20RebasableBridged add transferShares()/transferSharesFrom()
  • ERC20BridgedPermit. Init new storage?
  • ERC20RebasableBridged. _getTokensByShares e2e for decimal dimention
  • ERC20RebasableBridged. _getTokensByShares zero
  • check ErrorWrongOracleUpdateTime revert

kovalgek and others added 30 commits July 7, 2024 15:08
rename envs, add comments, improve deploy scripts
…/rebasable_token

Update .storage-layout for feature/rebasable_token branch
…code_ci

Update address for CI bytecode verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants