-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Multi ZNS] Replacing the meowToken with zToken #117
base: rc/zns-meowchain
Are you sure you want to change the base?
[Multi ZNS] Replacing the meowToken with zToken #117
Conversation
Replacing the meowToken with zToken
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
…n config + types for this. Some testing fixes.
…from beneficiary. Removed old ZToken from dependencies.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rc/zns-meowchain #117 +/- ##
=================================================
Coverage 99.80% 99.80%
=================================================
Files 11 11
Lines 525 525
Branches 117 117
=================================================
Hits 524 524
Misses 1 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the last few comments, otherwise looks good 👍
@@ -39,16 +39,16 @@ IZNSContracts | |||
>) { | |||
super(args); | |||
|
|||
if (this.config.mockMeowToken) { | |||
this.contractName = znsNames.meowToken.contractMock; | |||
if (this.config.mockZToken) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now here it is a boolean already, so you can check it like this without problems. no change is needed here, just wanted to point out an example
} | ||
|
||
// it will choose the governon as `admin` argument | ||
// and deployAdmin as `minter` and first passed admin as `mintBeneficiary`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. all these addresses should be parts of the config. we need to be able to specify these addresses as needed.
initialAdminDelay : bigint; | ||
initialSupplyBase : bigint; | ||
inflationRates : Array<bigint>; | ||
finalInflationRate : bigint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add all the constructor arguments for the contract here
@@ -628,6 +633,8 @@ describe("ZNSTreasury", () => { | |||
const newHash = hashSubdomainName(newLabel); | |||
const { expectedPrice, stakeFee } = getPriceObject(newLabel, DEFAULT_PRICE_CONFIG); | |||
|
|||
await zns.zToken.connect(deployer).approve(await zns.treasury.getAddress(), ethers.MaxInt256); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need an approval here, because the deployer is the participant of stakeForDomain function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some more comments for you
…anged. Deleted redundant approvals. Mock token fix.
MERGED TO:
rc/multi-zns-main