-
Notifications
You must be signed in to change notification settings - Fork 34
feat: Reentrancy locks in Spoke #1073
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
base: dev
Are you sure you want to change the base?
Conversation
0dcc11b to
d4f9ba8
Compare
| import {MockERC1271Wallet} from 'tests/mocks/MockERC1271Wallet.sol'; | ||
| import {MockSpokeInstance} from 'tests/mocks/MockSpokeInstance.sol'; | ||
| import {MockSkimSpoke} from 'tests/mocks/MockSkimSpoke.sol'; | ||
| import {MockReentrantHub} from 'tests/mocks/MockReentrantHub.sol'; |
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.
more contracts into base :'(
d4f9ba8 to
875b77c
Compare
| uint256 collateralReserveId = _daiReserveId(spoke); | ||
| uint256 debtReserveId = _wethReserveId(spoke); | ||
|
|
||
| // _updateTargetHealthFactor(spoke, 1.001e18); |
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.
rm?
| ); | ||
| vm.expectRevert(ReentrancyGuardTransient.ReentrancyGuardReentrantCall.selector); | ||
| vm.prank(bob); | ||
| spoke1.supply(_daiReserveId(spoke1), amount, bob); |
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.
let's use onBehalf so we make sure reentrancy lock is checked first.
Uh oh!
There was an error while loading. Please reload this page.