Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
## Reserve changes

### Reserves altered

#### USDT ([0xdAC17F958D2ee523a2206206994597C13D831ec7](https://etherscan.io/address/0xdAC17F958D2ee523a2206206994597C13D831ec7))

| description | value before | value after |
| --- | --- | --- |
| aTokenUnderlyingBalance | 1,416,591,449.7218 USDT [1416591449721879] | 1,416,391,449.7218 USDT [1416391449721879] |
| virtualBalance | 1,416,589,992.9914 USDT [1416589992991406] | 1,416,389,992.9914 USDT [1416389992991406] |


## Event logs

#### 0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a (AaveV3Ethereum.ASSETS.USDT.A_TOKEN)

| index | event |
| --- | --- |
| 0 | Transfer(from: 0x0000000000000000000000000000000000000000, to: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c, value: 4.4559 [4455937, 6 decimals]) |
| 1 | Mint(caller: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c, onBehalfOf: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c, value: 4.4559 [4455937, 6 decimals], balanceIncrease: 4455937, index: 1.1583 [1158338715068303695290102405, 27 decimals]) |
| 2 | Transfer(from: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c, to: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A, value: 200,000 [200000000000, 6 decimals]) |
| 3 | BalanceTransfer(from: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c, to: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A, value: 172,661.0683 [172661068303, 6 decimals], index: 1158338715068303695290102405) |
| 5 | Transfer(from: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A, to: 0x0000000000000000000000000000000000000000, value: 200,000 [200000000000, 6 decimals]) |
| 6 | Burn(from: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A, target: 0xb812d0944f8F581DfAA3a93Dda0d22EcEf51A9CF, value: 200,000 [200000000000, 6 decimals], balanceIncrease: 0, index: 1.1583 [1158338715068303695290102405, 27 decimals]) |

#### 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 (AaveV3Ethereum.POOL)

| index | event |
| --- | --- |
| 4 | ReserveDataUpdated(reserve: 0xdAC17F958D2ee523a2206206994597C13D831ec7 (symbol: USDT), liquidityRate: 19792189156815811534271320, stableBorrowRate: 0, variableBorrowRate: 30921616777817138003449655, liquidityIndex: 1.1583 [1158338715068303695290102405, 27 decimals], variableBorrowIndex: 1.2212 [1221211852987116428659483763, 27 decimals]) |
| 8 | Withdraw(reserve: 0xdAC17F958D2ee523a2206206994597C13D831ec7 (symbol: USDT), user: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A, to: 0xb812d0944f8F581DfAA3a93Dda0d22EcEf51A9CF, amount: 200,000 [200000000000, 6 decimals]) |

#### 0xdAC17F958D2ee523a2206206994597C13D831ec7 (AaveV2Ethereum.ASSETS.USDT.UNDERLYING, AaveV2EthereumAMM.ASSETS.USDT.UNDERLYING, AaveV3Ethereum.ASSETS.USDT.UNDERLYING)

| index | event |
| --- | --- |
| 7 | Transfer(from: 0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a, to: 0xb812d0944f8F581DfAA3a93Dda0d22EcEf51A9CF, value: 200,000 [200000000000, 6 decimals]) |

#### 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A (AaveV2Ethereum.POOL_ADMIN, AaveV2EthereumAMM.POOL_ADMIN, AaveV3Ethereum.ACL_ADMIN, AaveV3EthereumEtherFi.ACL_ADMIN, AaveV3EthereumHorizon.ACL_ADMIN, AaveV3EthereumLido.ACL_ADMIN, GovernanceV3Ethereum.EXECUTOR_LVL_1)

| index | event |
| --- | --- |
| 9 | ExecutedAction(target: 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f, value: 0, signature: execute(), data: 0x, executionTime: 1775473043, withDelegatecall: true, resultData: 0x) |

#### 0xdAbad81aF85554E9ae636395611C58F7eC1aAEc5 (GovernanceV3Ethereum.PAYLOADS_CONTROLLER)

| index | event |
| --- | --- |
| 10 | PayloadExecuted(payloadId: 426) |

## Raw storage changes

### 0x23878914efe38d27c4d67ab83ed1b93a74d4086a (AaveV3Ethereum.ASSETS.USDT.A_TOKEN)

| slot | previous value | new value |
| --- | --- | --- |
| 0x0000000000000000000000000000000000000000000000000000000000000036 | 0x000000000000000000000000000000000000000000000000000f0ae54a36e724 | 0x000000000000000000000000000000000000000000000000000f0abd16d01515 |
| 0x14a553e31736f19e3e380cf55bfb2f82dfd6d880cd07235affb68d8d3e0cac4d | 0x0000000003be276df9cd6d68d0b60f10000000000000000000000291180e0e73 | 0x0000000003be27c3914b5bc41028f285000000000000000000000268e4a73c64 |
| 0x7a79d58a6c2c4214189d78e4be4ba21513d55fd0a4b2ac0c119b9394eb289d20 | 0x0000000003a2e2f1bcb7c1fc341f3e5600000000000000000000000000000001 | 0x0000000003be27c3914b5bc41028f28500000000000000000000000000000001 |

### 0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2 (AaveV3Ethereum.POOL)

| slot | previous value | new value |
| --- | --- | --- |
| 0xca6decca4edae0c692b2b0c41376a54b812edb060282d36e07a7060ccb58244d | 0x0000000000105ed134ba9f03a197218d0000000003be27c29f2e5323dd258737 | 0x0000000000105f28b95ed3949c7e33580000000003be27c3914b5bc41028f285 |
| 0xca6decca4edae0c692b2b0c41376a54b812edb060282d36e07a7060ccb58244e | 0x00000000001993a3d665ec9693ef7aab0000000003f229a9a5569bf4dac2c2f5 | 0x00000000001993e834512d92772817370000000003f229ab3424a289ede36473 |
| 0xca6decca4edae0c692b2b0c41376a54b812edb060282d36e07a7060ccb58244f | 0x00000000000000000000080069d3917b0000000000000000000000025d7b1cbb | 0x00000000000000000000080069d391930000000000000000000000025d7b1cbb |
| 0xca6decca4edae0c692b2b0c41376a54b812edb060282d36e07a7060ccb582454 | 0x0000000000000000000508618f531aae000000000000000000000006c300327c | 0x000000000000000000050832fe654aae000000000000000000000006c36c5124 |

### 0xdabad81af85554e9ae636395611c58f7ec1aaec5 (GovernanceV3Ethereum.PAYLOADS_CONTROLLER)

| slot | previous value | new value |
| --- | --- | --- |
| 0xfd549f7710b1aea5af966d00429c36e9dcaaea8e95b089868750b19f493a82c7 | 0x0069d39192000000000002000000000000000000000000000000000000000000 | 0x0069d39192000000000003000000000000000000000000000000000000000000 |
| 0xfd549f7710b1aea5af966d00429c36e9dcaaea8e95b089868750b19f493a82c8 | 0x000000000000000000093a800000000000006a01b61300000000000000000000 | 0x000000000000000000093a800000000000006a01b61300000000000069d39193 |

### 0xdac17f958d2ee523a2206206994597c13d831ec7 (AaveV2Ethereum.ASSETS.USDT.UNDERLYING, AaveV2EthereumAMM.ASSETS.USDT.UNDERLYING, AaveV3Ethereum.ASSETS.USDT.UNDERLYING)

| slot | previous value | new value |
| --- | --- | --- |
| 0x18b4b10911141627ecada39ffc183eec496f856217f6aef80e3c402a505c277a | 0x0000000000000000000000000000000000000000000000000000000054a66bc2 | 0x0000000000000000000000000000000000000000000000000000002ee5943bc2 |
| 0xa27f738c934b6e8f6085bdff1bbecb6e2e3b918d793a01ea7cd2519ed4ec4de8 | 0x00000000000000000000000000000000000000000000000000050861e6270c17 | 0x0000000000000000000000000000000000000000000000000005083355393c17 |


## Raw diff

```json
{
"reserves": {
"0xdAC17F958D2ee523a2206206994597C13D831ec7": {
"aTokenUnderlyingBalance": {
"from": "1416591449721879",
"to": "1416391449721879"
},
"virtualBalance": {
"from": "1416589992991406",
"to": "1416389992991406"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Aave DAO <> BGD Labs. 2-month security retainer"
author: "BGD Labs (@bgdlabs)"
discussions: "https://governance.aave.com/t/direct-to-aip-aave-dao-bgd-labs-2-month-security-retainer/24385"
snapshot: "Direct To AIP"
---

## Simple Summary

## Motivation

## Specification

## References

- Implementation: [AaveV3Ethereum](https://github.com/aave-dao/aave-proposals-v3/blob/main/src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406.sol)
- Tests: [AaveV3Ethereum](https://github.com/aave-dao/aave-proposals-v3/blob/main/src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406.t.sol)
- [Discussion](https://governance.aave.com/t/direct-to-aip-aave-dao-bgd-labs-2-month-security-retainer/24385)

## Copyright

Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {GovV3Helpers, IPayloadsControllerCore, PayloadsControllerUtils} from 'aave-helpers/src/GovV3Helpers.sol';
import {GovernanceV3Ethereum} from 'aave-address-book/GovernanceV3Ethereum.sol';

import {EthereumScript} from 'solidity-utils/contracts/utils/ScriptUtils.sol';
import {AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406} from './AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406.sol';

/**
* @dev Deploy Ethereum
* deploy-command: make deploy-ledger contract=src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveDAOBGDLabs2MonthSecurityRetainer_20260406.s.sol:DeployEthereum chain=mainnet
* verify-command: FOUNDRY_PROFILE=deploy npx catapulta-verify -b broadcast/AaveDAOBGDLabs2MonthSecurityRetainer_20260406.s.sol/1/run-latest.json
*/
contract DeployEthereum is EthereumScript {
function run() external broadcast {
// deploy payloads
address payload0 = GovV3Helpers.deployDeterministic(
type(AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406).creationCode
);

// compose action
IPayloadsControllerCore.ExecutionAction[]
memory actions = new IPayloadsControllerCore.ExecutionAction[](1);
actions[0] = GovV3Helpers.buildAction(payload0);

// register action at payloadsController
GovV3Helpers.createPayload(actions);
}
}

/**
* @dev Create Proposal
* command: make deploy-ledger contract=src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveDAOBGDLabs2MonthSecurityRetainer_20260406.s.sol:CreateProposal chain=mainnet
*/
contract CreateProposal is EthereumScript {
function run() external {
// create payloads
PayloadsControllerUtils.Payload[] memory payloads = new PayloadsControllerUtils.Payload[](1);

// compose actions for validation
{
IPayloadsControllerCore.ExecutionAction[]
memory actionsEthereum = new IPayloadsControllerCore.ExecutionAction[](1);
actionsEthereum[0] = GovV3Helpers.buildAction(
type(AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406).creationCode
);
payloads[0] = GovV3Helpers.buildMainnetPayload(vm, actionsEthereum);
}

// create proposal
vm.startBroadcast();
GovV3Helpers.createProposal(
vm,
payloads,
GovernanceV3Ethereum.VOTING_PORTAL_ETH_AVAX,
GovV3Helpers.ipfsHashFile(
vm,
'src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveDAOBGDLabs2MonthSecurityRetainer.md'
)
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {ICollector, CollectorUtils} from 'aave-helpers/src/CollectorUtils.sol';
import {IProposalGenericExecutor} from 'aave-helpers/src/interfaces/IProposalGenericExecutor.sol';
import {AaveV3Ethereum, AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';

/**
* @title Aave DAO <> BGD Labs. 2-month security retainer
* @author BGD Labs (@bgdlabs)
* - Snapshot: Direct To AIP
* - Discussion: https://governance.aave.com/t/direct-to-aip-aave-dao-bgd-labs-2-month-security-retainer/24385
*/
contract AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406 is IProposalGenericExecutor {
using CollectorUtils for ICollector;

address public constant BGD_RECEIVER = 0xb812d0944f8F581DfAA3a93Dda0d22EcEf51A9CF;
uint256 public constant BGD_REIMBURSE_USDT_AMOUNT = 200_000e6;

function execute() external {
AaveV3Ethereum.COLLECTOR.withdrawFromV3(
CollectorUtils.IOInput({
pool: address(AaveV3Ethereum.POOL),
underlying: AaveV3EthereumAssets.USDT_UNDERLYING,
amount: BGD_REIMBURSE_USDT_AMOUNT
}),
BGD_RECEIVER
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3Ethereum, AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {ProtocolV3TestBase, GovV3Helpers, IERC20} from 'aave-helpers/src/ProtocolV3TestBase.sol';
import {AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406} from './AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406.sol';

/**
* @dev Test for AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406
* command: FOUNDRY_PROFILE=test forge test --match-path=src/20260406_AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer/AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406.t.sol -vv
*/
contract AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406_Test is ProtocolV3TestBase {
AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406 internal proposal;

function setUp() public {
vm.createSelectFork(vm.rpcUrl('mainnet'), 24820179);
proposal = new AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406();
}

/**
* @dev executes the generic test suite including e2e and config snapshots
*/
function test_defaultProposalExecution() public {
defaultTest(
'AaveV3Ethereum_AaveDAOBGDLabs2MonthSecurityRetainer_20260406',
AaveV3Ethereum.POOL,
address(proposal)
);
}

function test_BgdReceivedUsdtToken() public {
uint256 balanceBefore = IERC20(AaveV3EthereumAssets.USDT_UNDERLYING).balanceOf(
proposal.BGD_RECEIVER()
);
GovV3Helpers.executePayload(vm, address(proposal));
uint256 balanceAfter = IERC20(AaveV3EthereumAssets.USDT_UNDERLYING).balanceOf(
proposal.BGD_RECEIVER()
);

assertEq(balanceAfter - balanceBefore, 200_000e6);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {ConfigFile} from '../../generator/types';
export const config: ConfigFile = {
rootOptions: {
pools: ['AaveV3Ethereum'],
title: 'Aave DAO <> BGD Labs. 2-month security retainer',
shortName: 'AaveDAOBGDLabs2MonthSecurityRetainer',
date: '20260406',
author: 'BGD Labs (@bgdlabs)',
discussion:
'https://governance.aave.com/t/direct-to-aip-aave-dao-bgd-labs-2-month-security-retainer/24385',
snapshot: 'Direct To AIP',
votingNetwork: 'AVALANCHE',
},
poolOptions: {AaveV3Ethereum: {configs: {OTHERS: {}}, cache: {blockNumber: 24820179}}},
};
Loading