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

feat: add ERC20KavaWrappedNativeCoin contract #89

Closed
wants to merge 1 commit into from

Conversation

pirtleshell
Copy link
Member

  • setup make to compile ERC20KavaWrappedNativeCoin
  • write & compile contract
  • also, update openzeppelin

Maybe soon this contract will be moved to kava repo proper.

* setup make to compile ERC20KavaWrappedNativeCoin
* write & compile contract
* also, update openzeppelin
@@ -0,0 +1,46 @@
// SPDX-License-Identifier: MIT
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the primary file that needs review.

I've extended the generic ERC20 to be Ownable and exposed the following methods:

  • customizable decimals on deploy -> requires overriding decimals() view
  • mint() exposed for the contract owner which will be the evmutil module
  • burn() exposed for the contract owner which will be the evmutil module

@nddeluca
Copy link
Member

Since this will end up on mainnet, we should set a fixed solc version, turn optimizations on, and ensure the evm version setting is targeting non-london chains.

@nddeluca
Copy link
Member

Also, it may be a trivial contract, but we should also unit test this similary to https://github.com/Kava-Labs/kava-bridge/blob/main/contract/test/erc20_test.ts to ensure we got the functionality correct, and it stays correct if we change it

@pirtleshell pirtleshell deleted the rp-kava-wrapped-native-coins branch May 18, 2023 17:51
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.

None yet

2 participants