Skip to content

Commit

Permalink
bugfix on gho approve
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWongC committed Feb 18, 2025
1 parent b56342a commit dd989f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,6 @@
"raw": {
"from": null,
"to": {
"0x00907f9921424583e7ffbfedf84f92b7b2be4977": {
"label": null,
"balanceDiff": null,
"stateDiff": {
"0x3911990350576792b37c6c85e18a679e2335f9d47b7bb4eaa2c98f053978da61": {
"previousValue": "0x0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "0x000000000000000000000000000000000000000000027b46536c66c8e3000000"
}
}
},
"0x18efe565a5373f430e2f809b97de30335b3ad96a": {
"label": null,
"balanceDiff": null,
Expand All @@ -69,6 +59,10 @@
"previousValue": "0x00000000033c24a38105d6be2b8c8a5e000000000001a91fc6667627e49816e7",
"newValue": "0x00000000033c3138dc2182288d9d5cf6000000000004239f7170f7fff3f8c963"
},
"0x3911990350576792b37c6c85e18a679e2335f9d47b7bb4eaa2c98f053978da61": {
"previousValue": "0x0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "0x000000000000000000000000000000000000000000027b46536c66c8e3000000"
},
"0xea7544a5bc3126329d547e78db7c7a77f741eddf3d532f3cb64fd3d752c4d483": {
"previousValue": "0x00000000033b84328f3aefa8973e747600000000000844b91dbe489addb26517",
"newValue": "0x00000000033c3138dc2182288d9d5cf6000000000005ca3972b3c6c2ce51b29b"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ contract AaveV3Ethereum_FebruaryFundingUpdatePartB_20250207 is IProposalGenericE
}

function _allowance() internal {
AaveV3EthereumLido.COLLECTOR.approve(AaveV3EthereumAssets.GHO_A_TOKEN, MERIT_AHAB_SAFE, 0);
AaveV3EthereumLido.COLLECTOR.approve(AaveV3EthereumLidoAssets.GHO_A_TOKEN, MERIT_AHAB_SAFE, 0);
AaveV3EthereumLido.COLLECTOR.approve(
AaveV3EthereumAssets.GHO_A_TOKEN,
AaveV3EthereumLidoAssets.GHO_A_TOKEN,
MERIT_AHAB_SAFE,
GHO_A_ALLOWANCE
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ contract AaveV3Ethereum_FebruaryFundingUpdatePartB_20250207_Test is ProtocolV3Te
function test_approve() public {
executePayload(vm, address(proposal));

uint256 aGhoAllowance = IERC20(AaveV3EthereumAssets.GHO_A_TOKEN).allowance(
uint256 aGhoAllowance = IERC20(AaveV3EthereumLidoAssets.GHO_A_TOKEN).allowance(
address(AaveV3EthereumLido.COLLECTOR),
proposal.MERIT_AHAB_SAFE()
);
Expand Down

0 comments on commit dd989f6

Please sign in to comment.