-
Notifications
You must be signed in to change notification settings - Fork 152
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
Address OZ's feedback on USDT comet support #818
Address OZ's feedback on USDT comet support #818
Conversation
85be018
to
a13050a
Compare
Co-authored-by: Kevin Cheng <[email protected]>
Co-authored-by: Kevin Cheng <[email protected]>
Co-authored-by: Kevin Cheng <[email protected]>
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.
Nice, just a few final comments. But this is looking almost ready now 👍
test/buy-collateral-test.ts
Outdated
@@ -562,5 +562,68 @@ describe('buyCollateral', function () { | |||
// EvilToken attack should be blocked, so totalSupplyBase should be 0 | |||
expect(evilBobPortfolio.internal.EVIL).to.equal(0); | |||
}); | |||
|
|||
it('reentrant supply is reverted', async () => { |
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.
Should be buycollateral, not supply. same for comments in test
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.
Ok renamed to buyCollateral. :)
Thought in the existing test is using 'supply', and decided to name it the same.
(I guess that rationale with that was the retrant attack loop is happening in supplyFrom via buyCollateral)
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.
Oh I see. That means the test isn't testing the right function. It should be triggering reentrancy via BuyCollateral
. I think you'll have to set it in the EvilToken.
Co-authored-by: Kevin Cheng <[email protected]>
Co-authored-by: Kevin Cheng <[email protected]>
Co-authored-by: Kevin Cheng <[email protected]>
Co-authored-by: Kevin Cheng <[email protected]>
deployments/goerli/usdt/migrations/1691022234_configurate_and_ens.ts
Outdated
Show resolved
Hide resolved
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.
Great, looks ready to merge
Address oz's feedback on USDT comet support
Address oz's feedback on USDT comet support
No description provided.