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

Introduce refactored token contracts #31

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

k1rill-fedoseev
Copy link
Member

Closes #21

Previously, OB used a precompiled tokens taken from tokenbridge-contracts repo written on solc 0.4.24.
In order to implement #21, it was required to rewrite the tokens on the newer solidity version used in this repo.

I have preserved the original storage slots layout used in old tokens contract. This might be required in case of existing contracts upgrade via a hard-fork. The storage layout of the openzeppelin token contracts evolved a little bit, so it was necessary to modify them a little bit (see contracts/tokens/README.md).

Regarding #21:

  • Added a new permit function with different signature taken from EIP2612.
  • Kept the previously used permit function.
  • Tested workflows then both functions are being used.

@k1rill-fedoseev k1rill-fedoseev self-assigned this Mar 23, 2021
Copy link
Collaborator

@akolotov akolotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this PR after finishing at least one audit otherwise it will increase delta of unaudited code.

@k1rill-fedoseev k1rill-fedoseev force-pushed the feature/new-token-contracts branch from e4001c9 to 92de2c7 Compare May 13, 2021 13:28
@akolotov
Copy link
Collaborator

akolotov commented Aug 6, 2021

Consider to rework the solution by including the precompiled token contract prepared under omni/tokenbridge-contracts#618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants