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

Merged
merged 206 commits into from
Oct 12, 2024
Merged

Rebasable Token #3

merged 206 commits into from
Oct 12, 2024

Conversation

kovalgek
Copy link

@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

arwer13 and others added 28 commits August 2, 2024 11:23
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
Add deposit/withdrawal wstETH test variants for different state of L1/L2
@TheDZhon TheDZhon merged commit 78936cc into main Oct 12, 2024
5 checks passed
@TheDZhon TheDZhon deleted the feature/rebasable_token branch October 12, 2024 17:47
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