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

Gravita proxy #1

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

Gravita proxy #1

wants to merge 63 commits into from

Conversation

0xfornax
Copy link

@0xfornax 0xfornax commented Jun 8, 2023

Creating a proxy that would be able to mint/burn the base GRAI token, already deployed on mainnet. This would require us to whitelist the Proxy contract to be able to mint/burn GRAI tokens.
We applied a few changes to the base ProxyOFTv2.sol as the original proxy would lock/unlock tokens, while our behavior is using the mint/burn mechanism (effectively mimicking the native OFT behavior for our already deployed mainnet GRAI).
Removed the "outboundAmount" variable to track the amount sent to other chains (as we could receive more tokens than what was sent to other chains). This would make the contract unfit to be deployed on some non-EVM chains (which are not planned to be supported, like Solana and Aptos).
Also, removed the code dealing with dust as GRAI doesn't have a transfer fee.

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