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

Add URD Whitelisting on Morpho Token #57

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/transactions/data/morphoWhitelistingUrd.json
Copy link
Contributor

Choose a reason for hiding this comment

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

daoWhitelistUrd

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"to": "0x9994E35Db50125E0DF82e4c2dde62496CE330999",
"value": 0,
"data": "0x67aff484000000000000000000000000678ddc1d07eaa166521325394cdeb1e4c086df4300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"operation": 0
}
20 changes: 20 additions & 0 deletions test/transactions/morphoWhitelistingUrdTxTest.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./helpers/MorphoDaoTxTest.sol";

contract morphoWhitelistingUrdTxTest is MorphoDaoTxTest {
address internal constant URD = 0x678dDC1d07eaa166521325394cDEb1E4c086DF43;

function _txName() internal pure override returns (string memory) {
return "morphoWhitelistingUrd";
}

function _forkBlockNumber() internal virtual override returns (uint256) {
return 19_113_282;
}

function testMorphoWhitelistingUrd() public {
Jean-Grimal marked this conversation as resolved.
Show resolved Hide resolved
assertTrue(morphoToken.doesUserHaveRole(URD, uint8(0)), "doesUserHaveRole(URD, uint8(0))");
}
Copy link

Choose a reason for hiding this comment

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

you could try the transferFrom too

}
Loading