Skip to content

Commit

Permalink
feat: add USDT to sUSDS stablecoin e-mode (#535)
Browse files Browse the repository at this point in the history
Co-authored-by: Harsh Pandey <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: marczeller <[email protected]>
  • Loading branch information
4 people authored Nov 26, 2024
1 parent b61496d commit 573248b
Show file tree
Hide file tree
Showing 6 changed files with 221 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Emodes changed

### EMode: ETH correlated(id: 1)



### EMode: sUSDe Stablecoins(id: 2)

| description | value before | value after |
| --- | --- | --- |
| eMode.label (unchanged) | sUSDe Stablecoins | sUSDe Stablecoins |
| eMode.ltv (unchanged) | 90 % | 90 % |
| eMode.liquidationThreshold (unchanged) | 92 % | 92 % |
| eMode.liquidationBonus (unchanged) | 3 % | 3 % |
| eMode.borrowableBitmap | USDC, USDS | USDC, USDT, USDS |
| eMode.collateralBitmap (unchanged) | sUSDe | sUSDe |


### EMode: rsETH LST main(id: 3)



## Raw diff

```json
{
"eModes": {
"2": {
"borrowableBitmap": {
"from": "34359738376",
"to": "34359738632"
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3EthereumAssets, AaveV3EthereumEModes} from 'aave-address-book/AaveV3Ethereum.sol';
import {AaveV3PayloadEthereum} from 'aave-helpers/src/v3-config-engine/AaveV3PayloadEthereum.sol';
import {EngineFlags} from 'aave-v3-origin/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {IAaveV3ConfigEngine} from 'aave-v3-origin/contracts/extensions/v3-config-engine/IAaveV3ConfigEngine.sol';
/**
* @title Enable sUSDe/USDT Liquid
* @author Aave Chan Initiative
* - Snapshot: Direct-to-AIP
* - Discussion: https://governance.aave.com/t/arfc-enable-susde-usdt-liquid-e-mode-on-core-instance/19939
*/
contract AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125 is AaveV3PayloadEthereum {
function assetsEModeUpdates()
public
pure
override
returns (IAaveV3ConfigEngine.AssetEModeUpdate[] memory)
{
IAaveV3ConfigEngine.AssetEModeUpdate[]
memory assetEModeUpdates = new IAaveV3ConfigEngine.AssetEModeUpdate[](1);

assetEModeUpdates[0] = IAaveV3ConfigEngine.AssetEModeUpdate({
asset: AaveV3EthereumAssets.USDT_UNDERLYING,
eModeCategory: AaveV3EthereumEModes.SUSDE_STABLECOINS,
borrowable: EngineFlags.ENABLED,
collateral: EngineFlags.DISABLED
});

return assetEModeUpdates;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol';

import 'forge-std/Test.sol';
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/src/ProtocolV3TestBase.sol';
import {AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125} from './AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.sol';

/**
* @dev Test for AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125
* command: FOUNDRY_PROFILE=mainnet forge test --match-path=src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.t.sol -vv
*/
contract AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_Test is ProtocolV3TestBase {
AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125 internal proposal;

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

/**
* @dev executes the generic test suite including e2e and config snapshots
*/
function test_defaultProposalExecution() public {
defaultTest(
'AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125',
AaveV3Ethereum.POOL,
address(proposal)
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Enable sUSDe/USDT Liquid E-Mode on Core Instance"
author: "Aave Chan Initiative"
discussions: "https://governance.aave.com/t/arfc-enable-susde-usdt-liquid-e-mode-on-core-instance/19939"
snapshot: "Direct-to-AIP"
---

## Simple Summary

This proposal aims to enable sUSDe/USDT liquid E-Mode for the Core Instance. By implementing this change, we seek to enhance capital efficiency for borrowers using sUSDe as collateral, specifically for borrowing USDT. This is a Direct to AIP Proposal.

## Motivation

sUSDe has demonstrated significant usage as collateral for borrowing stablecoins and to increase borrowing options we now look to enable E-Mode for USDT borrows against sUSDe.

By implementing this proposal, we aim to optimize the use of sUSDe within the Aave ecosystem, attracting more liquidity and providing more options for both borrowers and lenders.

## Specification

USDT on the Core instance will be added to the sUSDe stablecoin E-Mode

## References

- Implementation: [AaveV3Ethereum](https://github.com/bgd-labs/aave-proposals-v3/blob/main/src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.sol)
- Tests: [AaveV3Ethereum](https://github.com/bgd-labs/aave-proposals-v3/blob/main/src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.t.sol)
- Snapshot: Direct-to-AIP
- [Discussion](https://governance.aave.com/t/arfc-enable-susde-usdt-liquid-e-mode-on-core-instance/19939)

## 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,60 @@
// 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_EnableSUSDeUSDTLiquid_20241125} from './AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.sol';

/**
* @dev Deploy Ethereum
* deploy-command: make deploy-ledger contract=src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/EnableSUSDeUSDTLiquid_20241125.s.sol:DeployEthereum chain=mainnet
* verify-command: FOUNDRY_PROFILE=mainnet npx catapulta-verify -b broadcast/EnableSUSDeUSDTLiquid_20241125.s.sol/1/run-latest.json
*/
contract DeployEthereum is EthereumScript {
function run() external broadcast {
// deploy payloads
address payload0 = GovV3Helpers.deployDeterministic(
type(AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125).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/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/EnableSUSDeUSDTLiquid_20241125.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_EnableSUSDeUSDTLiquid_20241125).creationCode
);
payloads[0] = GovV3Helpers.buildMainnetPayload(vm, actionsEthereum);

// create proposal
vm.startBroadcast();
GovV3Helpers.createProposal(
vm,
payloads,
GovernanceV3Ethereum.VOTING_PORTAL_ETH_POL,
GovV3Helpers.ipfsHashFile(
vm,
'src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/EnableSUSDeUSDTLiquid.md'
)
);
}
}
29 changes: 29 additions & 0 deletions src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {ConfigFile} from '../../generator/types';
export const config: ConfigFile = {
rootOptions: {
author: 'Aave Chan Initiative',
pools: ['AaveV3Ethereum'],
title: 'Enable sUSDe/USDT Liquid',
shortName: 'EnableSUSDeUSDTLiquid',
date: '20241125',
discussion:
'https://governance.aave.com/t/arfc-enable-susde-usdt-liquid-e-mode-on-core-instance/19939',
snapshot: 'Direct-to-AIP',
votingNetwork: 'POLYGON',
},
poolOptions: {
AaveV3Ethereum: {
configs: {
EMODES_ASSETS: [
{
asset: 'USDT',
eModeCategory: 'AaveV3EthereumEModes.SUSDE_STABLECOINS',
collateral: 'DISABLED',
borrowable: 'ENABLED',
},
],
},
cache: {blockNumber: 21266484},
},
},
};

2 comments on commit 573248b

@github-actions
Copy link

Choose a reason for hiding this comment

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

🌈Test Results No files changed, compilation skipped 2024-11-26T13:25:48.390350Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.12", "diff-snapshots", "./reports/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_before.json", "./reports/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_after.json", "-o", "./diffs/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_before_AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]\n"

Ran 1 test for src/20241125_AaveV3Ethereum_EnableSUSDeUSDTLiquid/AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125.t.sol:AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125_Test
[PASS] test_defaultProposalExecution() (gas: 242649675)
Logs:
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
0x6B175474E89094C44Da98b954EedeAC495271d0F
0x514910771AF9Ca656af840dff83E8264EcF986CA
0xBe9895146f7AF43049ca1c1AE358B0541Ea49704
0xdAC17F958D2ee523a2206206994597C13D831ec7
0xae78736Cd615f374D3085123A210448E74Fc6393
0x5f98805A4E8be255a32880FDeC7F6728C6568bA0
0xD533a949740bb3306d119CC777fa900bA034cd52
0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F
0xba100000625a3754423978a60c9317c58a424e3D
0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32
0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72
0x111111111117dC0aa78b770fA6A738034120C302
0x853d955aCEf822Db058eb8505911ED77F175b99e
0xD33526068D116cE69F19A9ee46F0bd304F21A51f
0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6
0xdeFA4e8a7bcBA345F687a2f1456F5Edd9CE97202
0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0
0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E
0x6c3ea9036406852006290770BEdFcAbA0e23A0e8
0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38
0x4c9EDD5852cd905f086C759E8383e09bff1E68B3
0xA35b1B31Ce002FBF2058D22F30f95D405200A15b
0x18084fbA666a33d37592fA2633fD49a74DD93a88
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
0xdC035D45d973E3EC169d2276DDab16f1e407384F
0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7
E2E: Collateral WETH, TestAsset WETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: WETH, Amount: 302350093677677987
WITHDRAW: WETH, Amount: 151175046838838993
WITHDRAW: WETH, Amount: 151175046838838993
BORROW: WETH, Amount 302350093677677987
REPAY: WETH, Amount: 302350093677677987
E2E: Collateral WETH, TestAsset wstETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: wstETH, Amount: 254952305977469751
WITHDRAW: wstETH, Amount: 127476152988734875
WITHDRAW: wstETH, Amount: 127476152988734877
BORROW: wstETH, Amount 254952305977469751
REPAY: wstETH, Amount: 254952305977469751
E2E: Collateral WETH, TestAsset WBTC
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: WBTC, Amount: 1088093
WITHDRAW: WBTC, Amount: 544046
WITHDRAW: WBTC, Amount: 544047
BORROW: WBTC, Amount 1088093
REPAY: WBTC, Amount: 1088093
E2E: Collateral WETH, TestAsset USDC
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: USDC, Amount: 1000060003
WITHDRAW: USDC, Amount: 500030001
WITHDRAW: USDC, Amount: 500030002
BORROW: USDC, Amount 1000060003
REPAY: USDC, Amount: 1000060003
E2E: Collateral WETH, TestAsset DAI
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: DAI, Amount: 999965371199195371864
WITHDRAW: DAI, Amount: 499982685599597685932
WITHDRAW: DAI, Amount: 499982685599597685932
BORROW: DAI, Amount 999965371199195371864
REPAY: DAI, Amount: 999965371199195371864
E2E: Collateral WETH, TestAsset LINK
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: LINK, Amount: 61056770585290202830
WITHDRAW: LINK, Amount: 30528385292645101415
WITHDRAW: LINK, Amount: 30528385292645101415
BORROW: LINK, Amount 61056770585290202830
REPAY: LINK, Amount: 61056770585290202830
E2E: Collateral WETH, TestAsset AAVE
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: AAVE, Amount: 5952380952380952380
WITHDRAW: AAVE, Amount: 2976190476190476190
WITHDRAW: AAVE, Amount: 2976190476190476190
E2E: Collateral WETH, TestAsset cbETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: cbETH, Amount: 278148730179677659
WITHDRAW: cbETH, Amount: 139074365089838829
WITHDRAW: cbETH, Amount: 139074365089838830
BORROW: cbETH, Amount 278148730179677659
REPAY: cbETH, Amount: 278148730179677659
E2E: Collateral WETH, TestAsset USDT
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: USDT, Amount: 999758238
WITHDRAW: USDT, Amount: 499879119
WITHDRAW: USDT, Amount: 499879119
BORROW: USDT, Amount 999758238
REPAY: USDT, Amount: 999758238
E2E: Collateral WETH, TestAsset rETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: rETH, Amount: 269489898637829260
WITHDRAW: rETH, Amount: 134744949318914630
WITHDRAW: rETH, Amount: 134744949318914631
BORROW: rETH, Amount 269489898637829260
REPAY: rETH, Amount: 269489898637829260
E2E: Collateral WETH, TestAsset LUSD
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: LUSD, Amount: 1004375198979281607782
WITHDRAW: LUSD, Amount: 502187599489640803891
WITHDRAW: LUSD, Amount: 502187599489640803891
BORROW: LUSD, Amount 1004375198979281607782
REPAY: LUSD, Amount: 1004375198979281607782
E2E: Collateral WETH, TestAsset CRV
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: CRV, Amount: 2083246531394525228115
WITHDRAW: CRV, Amount: 1041623265697262614057
WITHDRAW: CRV, Amount: 1041623265697262614058
BORROW: CRV, Amount 2083246531394525228115
REPAY: CRV, Amount: 2083246531394525228115
E2E: Collateral WETH, TestAsset MKR
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: MKR, Amount: 580686371290865803
WITHDRAW: MKR, Amount: 290343185645432901
WITHDRAW: MKR, Amount: 290343185645432903
BORROW: MKR, Amount 580686371290865803
REPAY: MKR, Amount: 580686371290865803
E2E: Collateral WETH, TestAsset SNX
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: SNX, Amount: 466417910447761194029
WITHDRAW: SNX, Amount: 233208955223880597014
WITHDRAW: SNX, Amount: 233208955223880597015
BORROW: SNX, Amount 466417910447761194029
REPAY: SNX, Amount: 466417910447761194029
E2E: Collateral WETH, TestAsset BAL
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: BAL, Amount: 404899281303775685798
WITHDRAW: BAL, Amount: 202449640651887842899
WITHDRAW: BAL, Amount: 202449640651887842899
BORROW: BAL, Amount 404899281303775685798
REPAY: BAL, Amount: 404899281303775685798
E2E: Collateral WETH, TestAsset UNI
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: UNI, Amount: 94182896969844237499
WITHDRAW: UNI, Amount: 47091448484922118749
WITHDRAW: UNI, Amount: 47091448484922118749
BORROW: UNI, Amount 94182896969844237499
REPAY: UNI, Amount: 94182896969844237499
E2E: Collateral WETH, TestAsset LDO
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: LDO, Amount: 637535709251686787198
WITHDRAW: LDO, Amount: 318767854625843393599
WITHDRAW: LDO, Amount: 318767854625843393598
BORROW: LDO, Amount 637535709251686787198
REPAY: LDO, Amount: 637535709251686787198
E2E: Collateral WETH, TestAsset ENS
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: ENS, Amount: 44696932449525989031
WITHDRAW: ENS, Amount: 22348466224762994515
WITHDRAW: ENS, Amount: 22348466224762994517
BORROW: ENS, Amount 44696932449525989031
REPAY: ENS, Amount: 44696932449525989031
E2E: Collateral WETH, TestAsset 1INCH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: 1INCH, Amount: 2717295534448147303069
WITHDRAW: 1INCH, Amount: 1358647767224073651534
WITHDRAW: 1INCH, Amount: 1358647767224073651536
BORROW: 1INCH, Amount 2717295534448147303069
REPAY: 1INCH, Amount: 2717295534448147303069
E2E: Collateral WETH, TestAsset FRAX
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: FRAX, Amount: 1003370884689367009831
WITHDRAW: FRAX, Amount: 501685442344683504915
WITHDRAW: FRAX, Amount: 501685442344683504916
BORROW: FRAX, Amount 1003370884689367009831
REPAY: FRAX, Amount: 1003370884689367009831
E2E: Collateral WETH, TestAsset GHO
SUPPLY: WETH, Amount: 30235009367767798722
BORROW: GHO, Amount 1000000000000000000000
REPAY: GHO, Amount: 1000000000000000000000
E2E: Collateral WETH, TestAsset RPL
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: RPL, Amount: 79254879669246054503
WITHDRAW: RPL, Amount: 39627439834623027251
WITHDRAW: RPL, Amount: 39627439834623027252
BORROW: RPL, Amount 79254879669246054503
REPAY: RPL, Amount: 79254879669246054503
E2E: Collateral WETH, TestAsset sDAI
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: sDAI, Amount: 892228639477575149183
WITHDRAW: sDAI, Amount: 446114319738787574591
WITHDRAW: sDAI, Amount: 446114319738787574591
E2E: TestAsset STG SKIPPED
E2E: TestAsset KNC SKIPPED
E2E: TestAsset FXS SKIPPED
E2E: Collateral WETH, TestAsset crvUSD
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: crvUSD, Amount: 1003402115143563463407
WITHDRAW: crvUSD, Amount: 501701057571781731703
WITHDRAW: crvUSD, Amount: 501701057571781731704
BORROW: crvUSD, Amount 1003402115143563463407
REPAY: crvUSD, Amount: 1003402115143563463407
E2E: Collateral WETH, TestAsset PYUSD
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: PYUSD, Amount: 1000772356
WITHDRAW: PYUSD, Amount: 500386178
WITHDRAW: PYUSD, Amount: 500386179
BORROW: PYUSD, Amount 1000772356
REPAY: PYUSD, Amount: 1000772356
E2E: Collateral WETH, TestAsset weETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: weETH, Amount: 286923961130031029
WITHDRAW: weETH, Amount: 143461980565015514
WITHDRAW: weETH, Amount: 143461980565015516
BORROW: weETH, Amount 286923961130031029
REPAY: weETH, Amount: 286923961130031029
E2E: Collateral WETH, TestAsset osETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: osETH, Amount: 292841527223978758
WITHDRAW: osETH, Amount: 146420763611989379
WITHDRAW: osETH, Amount: 146420763611989380
BORROW: osETH, Amount 292841527223978758
REPAY: osETH, Amount: 292841527223978758
E2E: Collateral WETH, TestAsset USDe
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: USDe, Amount: 998821949439952542373
WITHDRAW: USDe, Amount: 499410974719976271186
WITHDRAW: USDe, Amount: 499410974719976271187
BORROW: USDe, Amount 998821949439952542373
REPAY: USDe, Amount: 998821949439952542373
E2E: Collateral WETH, TestAsset ETHx
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: ETHx, Amount: 289032038063980051
WITHDRAW: ETHx, Amount: 144516019031990025
WITHDRAW: ETHx, Amount: 144516019031990027
BORROW: ETHx, Amount 289032038063980051
REPAY: ETHx, Amount: 289032038063980051
E2E: Collateral WETH, TestAsset sUSDe
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: sUSDe, Amount: 888220071018346354328
WITHDRAW: sUSDe, Amount: 444110035509173177164
WITHDRAW: sUSDe, Amount: 444110035509173177164
E2E: Collateral WETH, TestAsset tBTC
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: tBTC, Amount: 10863523207472103
WITHDRAW: tBTC, Amount: 5431761603736051
WITHDRAW: tBTC, Amount: 5431761603736052
BORROW: tBTC, Amount 10863523207472103
REPAY: tBTC, Amount: 10863523207472103
E2E: Collateral WETH, TestAsset cbBTC
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: cbBTC, Amount: 1086352
WITHDRAW: cbBTC, Amount: 543176
WITHDRAW: cbBTC, Amount: 543177
BORROW: cbBTC, Amount 1086352
REPAY: cbBTC, Amount: 1086352
E2E: Collateral WETH, TestAsset USDS
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: USDS, Amount: 999965371199195371864
WITHDRAW: USDS, Amount: 499982685599597685932
WITHDRAW: USDS, Amount: 499982685599597685933
BORROW: USDS, Amount 999965371199195371864
REPAY: USDS, Amount: 999965371199195371864
E2E: Collateral WETH, TestAsset rsETH
SUPPLY: WETH, Amount: 30235009367767798722
SUPPLY: rsETH, Amount: 293407697712270901
WITHDRAW: rsETH, Amount: 146703848856135450
WITHDRAW: rsETH, Amount: 146703848856135451
BORROW: rsETH, Amount 293407697712270901
REPAY: rsETH, Amount: 293407697712270901

Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 275.22s (274.10s CPU time)

Ran 1 test suite in 275.23s (275.22s CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)

@github-actions
Copy link

Choose a reason for hiding this comment

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

🔧 Build logs
Compiling 354 files with Solc 0.8.20
Solc 0.8.20 finished in 173.26s
Compiler run successful with warnings:
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
   --> lib/aave-helpers/src/swaps/AaveSwapper.sol:146:5:
    |
146 |     address erc20Token
    |     ^^^^^^^^^^^^^^^^^^

Warning (2018): Function state mutability can be restricted to pure
   --> lib/aave-helpers/src/swaps/AaveSwapper.sol:145:3:
    |
145 |   function maxRescue(
    |   ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
   --> lib/aave-helpers/src/ProtocolV2TestBase.sol:663:3:
    |
663 |   function _logReserveConfig(ReserveConfig memory config) internal view {
    |   ^ (Relevant source part starts here and spans across multiple lines).

| Contract                                                                                    | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
|---------------------------------------------------------------------------------------------|------------------|-------------------|--------------------|---------------------|
| AaveGovernanceV2                                                                            |               44 |                94 |             24,532 |              49,058 |
| AaveSafetyModule                                                                            |               44 |                94 |             24,532 |              49,058 |
| AaveSwapper                                                                                 |            5,444 |             5,880 |             19,132 |              43,272 |
| AaveV2Avalanche                                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV2AvalancheAssets                                                                       |               44 |                94 |             24,532 |              49,058 |
| AaveV2Avalanche_ReserveFactorUpdatesMidOctober_20241004                                     |              988 |             1,017 |             23,588 |              48,135 |
| AaveV2Avalanche_UpdateLegacyGuardian_20241016                                               |              348 |               486 |             24,228 |              48,666 |
| AaveV2Ethereum                                                                              |               44 |                94 |             24,532 |              49,058 |
| AaveV2EthereumAMM                                                                           |               44 |                94 |             24,532 |              49,058 |
| AaveV2EthereumAMMAssets                                                                     |               44 |                94 |             24,532 |              49,058 |
| AaveV2EthereumAMM_UpdateLegacyGuardian_20241016                                             |              348 |               486 |             24,228 |              48,666 |
| AaveV2EthereumAssets                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV2Ethereum_ReserveFactorUpdatesMidOctober_20241004                                      |              988 |             1,017 |             23,588 |              48,135 |
| AaveV2Ethereum_UpdateLegacyGuardian_20241016                                                |              348 |               486 |             24,228 |              48,666 |
| AaveV2Polygon                                                                               |               44 |                94 |             24,532 |              49,058 |
| AaveV2PolygonAssets                                                                         |               44 |                94 |             24,532 |              49,058 |
| AaveV2Polygon_ReserveFactorUpdatesMidOctober_20241004                                       |            2,384 |             2,454 |             22,192 |              46,698 |
| AaveV2Polygon_UpdateLegacyGuardian_20241016                                                 |              348 |               486 |             24,228 |              48,666 |
| AaveV3Arbitrum                                                                              |               44 |                94 |             24,532 |              49,058 |
| AaveV3ArbitrumAssets                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3ArbitrumEModes                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3ArbitrumExternalLibraries                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3Arbitrum_GHOCCIP150Upgrade_20241021                                                   |              817 |               846 |             23,759 |              48,306 |
| AaveV3Arbitrum_GHOStewardV2Upgrade_20241007                                                 |            1,360 |             1,389 |             23,216 |              47,763 |
| AaveV3Arbitrum_ReserveFactorUpdatesMidOctober_20241004                                      |            3,227 |             3,297 |             21,349 |              45,855 |
| AaveV3Arbitrum_RiskStewardPhase2_20240805                                                   |              307 |               336 |             24,269 |              48,816 |
| AaveV3Arbitrum_UpdateLegacyGuardian_20241016                                                |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Avalanche                                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3AvalancheAssets                                                                       |               44 |                94 |             24,532 |              49,058 |
| AaveV3AvalancheEModes                                                                       |               44 |                94 |             24,532 |              49,058 |
| AaveV3AvalancheExternalLibraries                                                            |               44 |                94 |             24,532 |              49,058 |
| AaveV3Avalanche_RiskStewardPhase2_20240805                                                  |              178 |               206 |             24,398 |              48,946 |
| AaveV3Avalanche_UpdateLegacyGuardian_20241016                                               |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3BNB                                                                                   |               44 |                94 |             24,532 |              49,058 |
| AaveV3BNBAssets                                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3BNBEModes                                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3BNBExternalLibraries                                                                  |               44 |                94 |             24,532 |              49,058 |
| AaveV3BNB_OnboardWstETHToAaveV3OnBNBChain_20241030                                          |            5,561 |             5,632 |             19,015 |              43,520 |
| AaveV3BNB_RiskStewardPhase2_20240805                                                        |              178 |               206 |             24,398 |              48,946 |
| AaveV3BNB_UpdateLegacyGuardian_20241016                                                     |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Base                                                                                  |               44 |                94 |             24,532 |              49,058 |
| AaveV3BaseAssets                                                                            |               44 |                94 |             24,532 |              49,058 |
| AaveV3BaseEModes                                                                            |               44 |                94 |             24,532 |              49,058 |
| AaveV3BaseExternalLibraries                                                                 |               44 |                94 |             24,532 |              49,058 |
| AaveV3Base_IncreaseCbBTCSupplyCaps_20241004                                                 |            3,146 |             3,216 |             21,430 |              45,936 |
| AaveV3Base_ReserveFactorUpdatesMidOctober_20241004                                          |            3,223 |             3,293 |             21,353 |              45,859 |
| AaveV3Base_RiskStewardPhase2_20240805                                                       |              178 |               206 |             24,398 |              48,946 |
| AaveV3Base_UpdateLegacyGuardian_20241016                                                    |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Ethereum                                                                              |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumAssets                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEModes                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEtherFi                                                                       |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEtherFiAssets                                                                 |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEtherFiEModes                                                                 |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEtherFiExternalLibraries                                                      |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumEtherFi_RiskStewardPhase2_20240805                                            |              178 |               206 |             24,398 |              48,946 |
| AaveV3EthereumExternalLibraries                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumLido                                                                          |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumLidoAssets                                                                    |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumLidoEModes                                                                    |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumLidoExternalLibraries                                                         |               44 |                94 |             24,532 |              49,058 |
| AaveV3EthereumLido_AutomatedAGRSActivation_20241108                                         |            3,046 |             3,075 |             21,530 |              46,077 |
| AaveV3EthereumLido_OnboardAndEnableSUSDeLiquidEModeOnAaveV3MainnetAndLidoInstances_20241108 |            5,657 |             5,728 |             18,919 |              43,424 |
| AaveV3EthereumLido_OnboardEzETHToLidoInstance_20241021                                      |            6,194 |             6,265 |             18,382 |              42,887 |
| AaveV3EthereumLido_RiskStewardPhase2_20240805                                               |              178 |               206 |             24,398 |              48,946 |
| AaveV3EthereumLido_WstETHSlope1UoptimalUpdate_20241001                                      |            3,250 |             3,320 |             21,326 |              45,832 |
| AaveV3Ethereum_AaveBGDPhase4_20241025                                                       |            1,407 |             1,436 |             23,169 |              47,716 |
| AaveV3Ethereum_AaveCertoraContinuousSecurityServices_20241014                               |            1,567 |             1,596 |             23,009 |              47,556 |
| AaveV3Ethereum_ChaosLabsAaveRiskManagementServiceRenewal_20241012                           |            1,255 |             1,284 |             23,321 |              47,868 |
| AaveV3Ethereum_EnableSUSDeUSDTLiquid_20241125                                               |            3,117 |             3,187 |             21,459 |              45,965 |
| AaveV3Ethereum_FixUSDSBorrowRateToMatchSkySavingsRate_20241022                              |            3,238 |             3,308 |             21,338 |              45,844 |
| AaveV3Ethereum_GHOCCIP150Upgrade_20241021                                                   |              817 |               846 |             23,759 |              48,306 |
| AaveV3Ethereum_GHOStewardV2Upgrade_20241007                                                 |            2,895 |             2,924 |             21,681 |              46,228 |
| AaveV3Ethereum_IncreaseCbBTCSupplyCaps_20241004                                             |            3,150 |             3,220 |             21,426 |              45,932 |
| AaveV3Ethereum_IncreaseUSDSBorrowRateToMatchSkySavingsRate_20241016                         |            3,239 |             3,309 |             21,337 |              45,843 |
| AaveV3Ethereum_OnboardAndEnableSUSDeLiquidEModeOnAaveV3MainnetAndLidoInstances_20241108     |            3,817 |             3,887 |             20,759 |              45,265 |
| AaveV3Ethereum_OnboardRsETHToAaveV3Ethereum_20241104                                        |            5,957 |             6,028 |             18,619 |              43,124 |
| AaveV3Ethereum_PYUSDReserveConfigurationUpdateIncentiveCampaign_20241031                    |            3,988 |             4,059 |             20,588 |              45,093 |
| AaveV3Ethereum_RemoveFraxFromIsolationModeOnAaveV3Mainnet_20241105                          |            3,226 |             3,296 |             21,350 |              45,856 |
| AaveV3Ethereum_RenewLlamaRiskAsRiskServiceProvider_20241013                                 |            1,068 |             1,097 |             23,508 |              48,055 |
| AaveV3Ethereum_RiskStewardPhase2_20240805                                                   |              307 |               336 |             24,269 |              48,816 |
| AaveV3Ethereum_SafetyModuleStkAAVEReEnableRewards_20241106                                  |              910 |               939 |             23,666 |              48,213 |
| AaveV3Ethereum_StkGHOIncentivesQ4_20241029                                                  |            1,458 |             1,487 |             23,118 |              47,665 |
| AaveV3Ethereum_UpdateLegacyGuardian_20241016                                                |            1,062 |             1,413 |             23,514 |              47,739 |
| AaveV3Ethereum_WstETHReserveBorrowRateUpdateMainInstance_20241024                           |            3,227 |             3,297 |             21,349 |              45,855 |
| AaveV3Gnosis                                                                                |               44 |                94 |             24,532 |              49,058 |
| AaveV3GnosisAssets                                                                          |               44 |                94 |             24,532 |              49,058 |
| AaveV3GnosisEModes                                                                          |               44 |                94 |             24,532 |              49,058 |
| AaveV3GnosisExternalLibraries                                                               |               44 |                94 |             24,532 |              49,058 |
| AaveV3Gnosis_ReserveFactorUpdatesMidOctober_20241004                                        |            3,225 |             3,295 |             21,351 |              45,857 |
| AaveV3Gnosis_RiskStewardPhase2_20240805                                                     |              178 |               206 |             24,398 |              48,946 |
| AaveV3Gnosis_UpdateLegacyGuardian_20241016                                                  |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Metis                                                                                 |               44 |                94 |             24,532 |              49,058 |
| AaveV3MetisAssets                                                                           |               44 |                94 |             24,532 |              49,058 |
| AaveV3MetisEModes                                                                           |               44 |                94 |             24,532 |              49,058 |
| AaveV3MetisExternalLibraries                                                                |               44 |                94 |             24,532 |              49,058 |
| AaveV3Metis_RiskStewardPhase2_20240805                                                      |              178 |               206 |             24,398 |              48,946 |
| AaveV3Metis_UpdateLegacyGuardian_20241016                                                   |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Optimism                                                                              |               44 |                94 |             24,532 |              49,058 |
| AaveV3OptimismAssets                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3OptimismEModes                                                                        |               44 |                94 |             24,532 |              49,058 |
| AaveV3OptimismExternalLibraries                                                             |               44 |                94 |             24,532 |              49,058 |
| AaveV3Optimism_ReserveFactorUpdatesMidOctober_20241004                                      |            3,227 |             3,297 |             21,349 |              45,855 |
| AaveV3Optimism_RiskStewardPhase2_20240805                                                   |              178 |               206 |             24,398 |              48,946 |
| AaveV3Optimism_UpdateLegacyGuardian_20241016                                                |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Polygon                                                                               |               44 |                94 |             24,532 |              49,058 |
| AaveV3PolygonAssets                                                                         |               44 |                94 |             24,532 |              49,058 |
| AaveV3PolygonEModes                                                                         |               44 |                94 |             24,532 |              49,058 |
| AaveV3PolygonExternalLibraries                                                              |               44 |                94 |             24,532 |              49,058 |
| AaveV3Polygon_ReserveFactorUpdatesMidOctober_20241004                                       |            3,226 |             3,296 |             21,350 |              45,856 |
| AaveV3Polygon_RiskStewardPhase2_20240805                                                    |              178 |               206 |             24,398 |              48,946 |
| AaveV3Polygon_UpdateLegacyGuardian_20241016                                                 |            1,062 |             1,393 |             23,514 |              47,759 |
| AaveV3Scroll                                                                                |               44 |                94 |             24,532 |              49,058 |
| AaveV3ScrollAssets                                                                          |               44 |                94 |             24,532 |              49,058 |
| AaveV3ScrollEModes                                                                          |               44 |                94 |             24,532 |              49,058 |
| AaveV3ScrollExternalLibraries                                                               |               44 |                94 |             24,532 |              49,058 |
| AaveV3Scroll_RiskStewardPhase2_20240805                                                     |              178 |               206 |             24,398 |              48,946 |
| AaveV3Scroll_UpdateLegacyGuardian_20241016                                                  |            1,062 |             1,393 |             23,514 |              47,759 |
| Address                                                                                     |               44 |                94 |             24,532 |              49,058 |
| CCIPUtils                                                                                   |            4,968 |             5,021 |             19,608 |              44,131 |
| ChainHelpers                                                                                |               44 |                94 |             24,532 |              49,058 |
| ChainIds                                                                                    |               44 |                94 |             24,532 |              49,058 |
| Client                                                                                      |              109 |               160 |             24,467 |              48,992 |
| CollectorUtils                                                                              |               44 |                94 |             24,532 |              49,058 |
| ConfiguratorInputTypes                                                                      |               44 |                94 |             24,532 |              49,058 |
| Create2Utils                                                                                |              121 |               172 |             24,455 |              48,980 |
| Create2UtilsZkSync                                                                          |              104 |               155 |             24,472 |              48,997 |
| DataTypes                                                                                   |               44 |                94 |             24,532 |              49,058 |
| ERC1967Proxy                                                                                |              122 |               967 |             24,454 |              48,185 |
| ERC1967Utils                                                                                |               44 |                94 |             24,532 |              49,058 |
| EngineFlags                                                                                 |               44 |                94 |             24,532 |              49,058 |
| Errors                                                                                      |            4,652 |             4,705 |             19,924 |              44,447 |
| GovV3Helpers                                                                                |            2,517 |             2,570 |             22,059 |              46,582 |
| GovV3StorageHelpers                                                                         |               44 |                94 |             24,532 |              49,058 |
| GovernanceGuardians                                                                         |              292 |               345 |             24,284 |              48,807 |
| GovernanceV3Arbitrum                                                                        |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Avalanche                                                                       |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3BNB                                                                             |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Base                                                                            |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Ethereum                                                                        |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Gnosis                                                                          |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Metis                                                                           |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Optimism                                                                        |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Polygon                                                                         |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3PolygonZkEvm                                                                    |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3Scroll                                                                          |               44 |                94 |             24,532 |              49,058 |
| GovernanceV3ZkSync                                                                          |               44 |                94 |             24,532 |              49,058 |
| IpfsUtils                                                                                   |               44 |                94 |             24,532 |              49,058 |
| MiscArbitrum                                                                                |               44 |                94 |             24,532 |              49,058 |
| MiscAvalanche                                                                               |               44 |                94 |             24,532 |              49,058 |
| MiscBNB                                                                                     |               44 |                94 |             24,532 |              49,058 |
| MiscBase                                                                                    |               44 |                94 |             24,532 |              49,058 |
| MiscEthereum                                                                                |               44 |                94 |             24,532 |              49,058 |
| MiscGnosis                                                                                  |               44 |                94 |             24,532 |              49,058 |
| MiscMetis                                                                                   |               44 |                94 |             24,532 |              49,058 |
| MiscOptimism                                                                                |               44 |                94 |             24,532 |              49,058 |
| MiscPolygon                                                                                 |               44 |                94 |             24,532 |              49,058 |
| MiscScroll                                                                                  |               44 |                94 |             24,532 |              49,058 |
| Payloads                                                                                    |               44 |                94 |             24,532 |              49,058 |
| PayloadsControllerUtils                                                                     |               44 |                94 |             24,532 |              49,058 |
| ProtocolGuardians                                                                           |              292 |               345 |             24,284 |              48,807 |
| ProxyAdmin                                                                                  |              990 |             1,235 |             23,586 |              47,917 |
| ProxyHelpers                                                                                |               44 |                94 |             24,532 |              49,058 |
| RateLimiter                                                                                 |               44 |                94 |             24,532 |              49,058 |
| RenewalV2BasePayload                                                                        |              348 |               595 |             24,228 |              48,557 |
| RenewalV3BasePayload                                                                        |            1,062 |             1,509 |             23,514 |              47,643 |
| ReserveConfiguration                                                                        |              128 |               179 |             24,448 |              48,973 |
| RewardsDataTypes                                                                            |               44 |                94 |             24,532 |              49,058 |
| SafeCast                                                                                    |               44 |                94 |             24,532 |              49,058 |
| SafeERC20                                                                                   |               44 |                94 |             24,532 |              49,058 |
| StorageHelpers                                                                              |               44 |                94 |             24,532 |              49,058 |
| StorageSlot                                                                                 |               44 |                94 |             24,532 |              49,058 |
| TestNetChainIds                                                                             |               44 |                94 |             24,532 |              49,058 |
| TransparentUpgradeableProxy                                                                 |            1,088 |             2,274 |             23,488 |              46,878 |
| WadRayMath                                                                                  |               44 |                94 |             24,532 |              49,058 |
🔧 Build logs zksync
Compiling 110 files with zksolc and ZKsync solc 0.8.20
zksolc and ZKsync solc 0.8.20 finished in 72.80s
Compiler run successful!
| Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
|----------|------------------|-------------------|--------------------|---------------------|

Please sign in to comment.