-
Notifications
You must be signed in to change notification settings - Fork 91
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: support Drosera #981
base: development
Are you sure you want to change the base?
feat: support Drosera #981
Conversation
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.
- Pls fix the comments
- Did you deploy the contracts to the testnet?
- Did you check that the trap works as expected?
- The trap must pause the contracts.
- CI should pass.
@@ -46,3 +46,6 @@ | |||
path = packages/contracts/lib/aave-v3-periphery | |||
url = https://github.com/aave/aave-v3-periphery | |||
branch= master | |||
[submodule "packages/contracts/lib/v3-periphery"] |
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.
Why do we need this submodule? It's not used anywhere.
@@ -0,0 +1,35 @@ | |||
pragma solidity ^0.8.0; | |||
|
|||
contract ProtocolTrap { |
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.
Contract must implement ITrap
.
} | ||
|
||
function collect() external view returns (bytes memory) { | ||
uint256 randomNumber = randomize(); |
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.
What's the point of returning a random number?
Resolves #979