Skip to content

Conversation

@efecarranza
Copy link
Contributor

@efecarranza efecarranza commented Nov 13, 2025

Pre-review checklist:

  • I have run a spell check on the write-up and made sure no typos exist.
  • References to Snapshot/governance forum are correct on the AIP. If no snapshot exists, make sure no TODO's exist.
  • The specification on the writeup is aligned with the forum, snapshot, and the payload contract. If there are any changes, they are explicitly mentioned/communicated.
  • Minimal tests exist, and the snapshot diff report generated is the latest one and aligned with the payload.
  • If deploy scripts are manually updated from the generated ones, I have carefully validated that they are correct, including the deploy commands and the proposal-creation script.
  • If the aave-helpers submodule is updated, I have validated it is pointing to the latest version.
  • I have validated that no unused files and imports are being added.
  • For an asset listing, the write-up includes a detailed specification of the price feed used, CAPO adapters (with each CAPO layer described separately), and eModes (with tables) if changed.
  • Wherever possible, I have validated that addresses from the address book are used instead of raw addresses.

@efecarranza efecarranza changed the title Migrat Mainnet GSMs to RemoteGSM Migrate Mainnet GSMs to RemoteGSM Nov 13, 2025
@github-actions
Copy link

🌈Test Results Compiling 445 files with Solc 0.8.27 Solc 0.8.27 finished in 172.84s Compiler run successful! 2025-11-17T14:51:00.306425Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/[email protected]", "diff-snapshots", "./reports/AaveV3Ethereum_GSMMigration_20251113_before.json", "./reports/AaveV3Ethereum_GSMMigration_20251113_after.json", "-o", "./diffs/AaveV3Ethereum_GSMMigration_20251113_before_AaveV3Ethereum_GSMMigration_20251113_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]\n"

Ran 12 tests for src/20251113_AaveV3Ethereum_GSMMigration/AaveV3Ethereum_GSMMigration_20251113.t.sol:AaveV3Ethereum_GSMMigration_20251113_Test
[PASS] test_checkConfig() (gas: 2741554)
[PASS] test_checkOldGSMsDisabled() (gas: 2656796)
[PASS] test_checkRoles() (gas: 2697083)
[PASS] test_defaultProposalExecution() (gas: 678836131)
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
0x8236a87084f8B84306f72007F36F2618A5634494
0x657e8C867D8B37dCC18fA4Caead9C45EB088C642
0x8292Bb45bf1Ee4d140127049757C2E0fF06317eD
0x50D2C7992b802Eef16c04FeADAB310f31866a545
0x3b3fB9C57858EF816833dC91565EFcd85D96f634
0xC139190F447e929f090Edeb554D95AbB8b18aC1C
0x917459337CaAC939D41d7493B3999f571D20D667
0x14Bdc3A3AE09f5518b923b69489CBcAfB238e617
0x90D2af7d622ca3141efA4d8f1F24d86E5974Cc8F
0xC96dE26018A54D51c097160568752c4E3BD6C364
0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c
0x9F56094C450763769BA0EA9Fe2876070c0fD5F77
0xBC6736d346a5eBC0dEbc997397912CD9b8FAe10a
0x68749665FF8D2d112Fa859AA293F07A622782F38
0xe6A934089BBEe34F832060CE98848359883749B3
0x62C6E813b9589C3631Ba0Cdb013acdB8544038B7
E2E: Collateral WETH, TestAsset WETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: WETH, Amount: 2977182870480636402
WITHDRAW: WETH, Amount: 1488591435240318201
WITHDRAW: WETH, Amount: 1488591435240318199
BORROW: WETH, Amount 2977182870480636402
REPAY: WETH, Amount: 2977182870480636403
REPAY: WETH, Amount: 2977182870480636403
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2977182870480636403
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2977182870480636403
FLASH LOAN: WETH, Amount: 2977182870480636402
FLASH LOAN: WETH, Amount: 2977182870480636402
E2E: Collateral WETH, TestAsset wstETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: wstETH, Amount: 2442144498524313687
WITHDRAW: wstETH, Amount: 1221072249262156843
WITHDRAW: wstETH, Amount: 1221072249262156843
BORROW: wstETH, Amount 2442144498524313687
REPAY: wstETH, Amount: 2442144498524313688
REPAY: wstETH, Amount: 2442144498524313688
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2442144498524313688
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2442144498524313688
FLASH LOAN: wstETH, Amount: 2442144498524313687
FLASH LOAN: wstETH, Amount: 2442144498524313687
E2E: Collateral WETH, TestAsset WBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: WBTC, Amount: 9919826
WITHDRAW: WBTC, Amount: 4959913
WITHDRAW: WBTC, Amount: 4959912
BORROW: WBTC, Amount 9919826
REPAY: WBTC, Amount: 9919827
REPAY: WBTC, Amount: 9919827
LIQUIDATE: WBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9919827
LIQUIDATE: WBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9919827
FLASH LOAN: WBTC, Amount: 9919826
FLASH LOAN: WBTC, Amount: 9919826
E2E: Collateral WETH, TestAsset USDC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: USDC, Amount: 10001363085
WITHDRAW: USDC, Amount: 5000681542
WITHDRAW: USDC, Amount: 5000681541
BORROW: USDC, Amount 10001363085
REPAY: USDC, Amount: 10001363086
REPAY: USDC, Amount: 10001363086
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001363086
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001363086
FLASH LOAN: USDC, Amount: 10001363085
FLASH LOAN: USDC, Amount: 10001363085
E2E: Collateral WETH, TestAsset DAI
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: DAI, Amount: 10005002501250625312656
WITHDRAW: DAI, Amount: 5002501250625312656328
WITHDRAW: DAI, Amount: 5002501250625312656326
BORROW: DAI, Amount 10005002501250625312656
REPAY: DAI, Amount: 10005002501250625312657
REPAY: DAI, Amount: 10005002501250625312657
LIQUIDATE: DAI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10005002501250625312657
LIQUIDATE: DAI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10005002501250625312657
FLASH LOAN: DAI, Amount: 10005002501250625312656
FLASH LOAN: DAI, Amount: 10005002501250625312656
E2E: Collateral WETH, TestAsset LINK
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: LINK, Amount: 662579171585212717067
WITHDRAW: LINK, Amount: 331289585792606358533
WITHDRAW: LINK, Amount: 331289585792606358533
BORROW: LINK, Amount 662579171585212717067
REPAY: LINK, Amount: 662579171585212717068
REPAY: LINK, Amount: 662579171585212717068
LIQUIDATE: LINK, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 662579171585212717068
LIQUIDATE: LINK, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 662579171585212717068
FLASH LOAN: LINK, Amount: 662579171585212717067
FLASH LOAN: LINK, Amount: 662579171585212717067
E2E: Collateral WETH, TestAsset AAVE
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: AAVE, Amount: 48266342947522273831
WITHDRAW: AAVE, Amount: 24133171473761136915
WITHDRAW: AAVE, Amount: 24133171473761136916
E2E: Collateral WETH, TestAsset cbETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: cbETH, Amount: 2668584649395841777
WITHDRAW: cbETH, Amount: 1334292324697920888
WITHDRAW: cbETH, Amount: 1334292324697920887
BORROW: cbETH, Amount 2668584649395841777
REPAY: cbETH, Amount: 2668584649395841778
REPAY: cbETH, Amount: 2668584649395841778
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2668584649395841778
LIQUIDATE: cbETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2668584649395841778
FLASH LOAN: cbETH, Amount: 2668584649395841777
FLASH LOAN: cbETH, Amount: 2668584649395841777
E2E: Collateral WETH, TestAsset USDT
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: USDT, Amount: 10002044617
WITHDRAW: USDT, Amount: 5001022308
WITHDRAW: USDT, Amount: 5001022308
BORROW: USDT, Amount 10002044617
REPAY: USDT, Amount: 10002044618
REPAY: USDT, Amount: 10002044618
LIQUIDATE: USDT, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10002044618
LIQUIDATE: USDT, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10002044618
FLASH LOAN: USDT, Amount: 10002044617
FLASH LOAN: USDT, Amount: 10002044617
E2E: Collateral WETH, TestAsset rETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: rETH, Amount: 2587920884178758472
WITHDRAW: rETH, Amount: 1293960442089379236
WITHDRAW: rETH, Amount: 1293960442089379234
BORROW: rETH, Amount 2587920884178758472
REPAY: rETH, Amount: 2587920884178758473
REPAY: rETH, Amount: 2587920884178758473
LIQUIDATE: rETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2587920884178758473
LIQUIDATE: rETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2587920884178758473
FLASH LOAN: rETH, Amount: 2587920884178758472
FLASH LOAN: rETH, Amount: 2587920884178758472
E2E: Collateral WETH, TestAsset LUSD
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: LUSD, Amount: 9991166609776963990596
WITHDRAW: LUSD, Amount: 4995583304888481995298
WITHDRAW: LUSD, Amount: 4995583304888481995297
BORROW: LUSD, Amount 9991166609776963990596
REPAY: LUSD, Amount: 9991166609776963990597
REPAY: LUSD, Amount: 9991166609776963990597
LIQUIDATE: LUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9991166609776963990597
LIQUIDATE: LUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9991166609776963990597
FLASH LOAN: LUSD, Amount: 9991166609776963990596
FLASH LOAN: LUSD, Amount: 9991166609776963990596
E2E: Collateral WETH, TestAsset CRV
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: CRV, Amount: 21241524631671962886808
WITHDRAW: CRV, Amount: 10620762315835981443404
WITHDRAW: CRV, Amount: 10620762315835981443402
BORROW: CRV, Amount 21241524631671962886808
REPAY: CRV, Amount: 21241524631671962886809
REPAY: CRV, Amount: 21241524631671962886809
LIQUIDATE: CRV, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 21241524631671962886809
LIQUIDATE: CRV, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 21241524631671962886809
FLASH LOAN: CRV, Amount: 21241524631671962886808
FLASH LOAN: CRV, Amount: 21241524631671962886808
E2E: Collateral WETH, TestAsset MKR
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: MKR, Amount: 7337010987272599553
WITHDRAW: MKR, Amount: 3668505493636299776
WITHDRAW: MKR, Amount: 3668505493636299775
BORROW: MKR, Amount 7337010987272599553
REPAY: MKR, Amount: 7337010987272599554
REPAY: MKR, Amount: 7337010987272599554
LIQUIDATE: MKR, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 7337010987272599554
LIQUIDATE: MKR, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 7337010987272599554
FLASH LOAN: MKR, Amount: 7337010987272599553
FLASH LOAN: MKR, Amount: 7337010987272599553
E2E: Collateral WETH, TestAsset SNX
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: SNX, Amount: 13297028368132964113860
WITHDRAW: SNX, Amount: 6648514184066482056930
WITHDRAW: SNX, Amount: 6648514184066482056929
FLASH LOAN: SNX, Amount: 13297028368132964113860
E2E: Collateral WETH, TestAsset BAL
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: BAL, Amount: 12684972104668119205909
WITHDRAW: BAL, Amount: 6342486052334059602954
WITHDRAW: BAL, Amount: 6342486052334059602953
BORROW: BAL, Amount 12684972104668119205909
REPAY: BAL, Amount: 12684972104668119205910
REPAY: BAL, Amount: 12684972104668119205910
LIQUIDATE: BAL, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 12684972104668119205910
LIQUIDATE: BAL, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 12684972104668119205910
FLASH LOAN: BAL, Amount: 12684972104668119205909
FLASH LOAN: BAL, Amount: 12684972104668119205909
E2E: Collateral WETH, TestAsset UNI
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: UNI, Amount: 1262551534560245479005
WITHDRAW: UNI, Amount: 631275767280122739502
WITHDRAW: UNI, Amount: 631275767280122739501
BORROW: UNI, Amount 1262551534560245479005
REPAY: UNI, Amount: 1262551534560245479006
REPAY: UNI, Amount: 1262551534560245479006
LIQUIDATE: UNI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 1262551534560245479006
LIQUIDATE: UNI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 1262551534560245479006
FLASH LOAN: UNI, Amount: 1262551534560245479005
FLASH LOAN: UNI, Amount: 1262551534560245479005
E2E: Collateral WETH, TestAsset LDO
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: LDO, Amount: 12665882209473983631981
WITHDRAW: LDO, Amount: 6332941104736991815990
WITHDRAW: LDO, Amount: 6332941104736991815989
BORROW: LDO, Amount 12665882209473983631981
REPAY: LDO, Amount: 12665882209473983631982
REPAY: LDO, Amount: 12665882209473983631982
LIQUIDATE: LDO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 12665882209473983631982
LIQUIDATE: LDO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 12665882209473983631982
FLASH LOAN: LDO, Amount: 12665882209473983631981
FLASH LOAN: LDO, Amount: 12665882209473983631981
E2E: Collateral WETH, TestAsset ENS
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: ENS, Amount: 712910814857061381621
WITHDRAW: ENS, Amount: 356455407428530690810
WITHDRAW: ENS, Amount: 356455407428530690809
BORROW: ENS, Amount 712910814857061381621
REPAY: ENS, Amount: 712910814857061381622
REPAY: ENS, Amount: 712910814857061381622
LIQUIDATE: ENS, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 712910814857061381622
LIQUIDATE: ENS, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 712910814857061381622
FLASH LOAN: ENS, Amount: 712910814857061381621
FLASH LOAN: ENS, Amount: 712910814857061381621
E2E: Collateral WETH, TestAsset 1INCH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: 1INCH, Amount: 48350521943884384231927
WITHDRAW: 1INCH, Amount: 24175260971942192115963
WITHDRAW: 1INCH, Amount: 24175260971942192115962
BORROW: 1INCH, Amount 48350521943884384231927
REPAY: 1INCH, Amount: 48350521943884384231928
REPAY: 1INCH, Amount: 48350521943884384231928
LIQUIDATE: 1INCH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 48350521943884384231928
LIQUIDATE: 1INCH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 48350521943884384231928
FLASH LOAN: 1INCH, Amount: 48350521943884384231927
FLASH LOAN: 1INCH, Amount: 48350521943884384231927
E2E: Collateral WETH, TestAsset FRAX
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: FRAX, Amount: 10056372909052546770908
WITHDRAW: FRAX, Amount: 5028186454526273385454
WITHDRAW: FRAX, Amount: 5028186454526273385452
FLASH LOAN: FRAX, Amount: 10056372909052546770908
E2E: Collateral WETH, TestAsset GHO
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: GHO, Amount: 10000000000000000000000
WITHDRAW: GHO, Amount: 5000000000000000000000
WITHDRAW: GHO, Amount: 5000000000000000000000
BORROW: GHO, Amount 10000000000000000000000
REPAY: GHO, Amount: 10000000000000000000001
REPAY: GHO, Amount: 10000000000000000000001
LIQUIDATE: GHO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000000000000000000001
LIQUIDATE: GHO, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000000000000000000001
FLASH LOAN: GHO, Amount: 10000000000000000000000
FLASH LOAN: GHO, Amount: 10000000000000000000000
E2E: Collateral WETH, TestAsset RPL
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: RPL, Amount: 3064458678834577906533
WITHDRAW: RPL, Amount: 1532229339417288953266
WITHDRAW: RPL, Amount: 1532229339417288953265
BORROW: RPL, Amount 3064458678834577906533
REPAY: RPL, Amount: 3064458678834577906534
REPAY: RPL, Amount: 3064458678834577906534
LIQUIDATE: RPL, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3064458678834577906534
LIQUIDATE: RPL, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3064458678834577906534
FLASH LOAN: RPL, Amount: 3064458678834577906533
FLASH LOAN: RPL, Amount: 3064458678834577906533
E2E: Collateral WETH, TestAsset sDAI
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: sDAI, Amount: 8563487918220197554870
WITHDRAW: sDAI, Amount: 4281743959110098777435
WITHDRAW: sDAI, Amount: 4281743959110098777434
FLASH LOAN: sDAI, Amount: 8563487918220197554870
E2E: TestAsset STG SKIPPED
E2E: TestAsset KNC SKIPPED
E2E: TestAsset FXS SKIPPED
E2E: Collateral WETH, TestAsset crvUSD
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: crvUSD, Amount: 10005309017070638021947
WITHDRAW: crvUSD, Amount: 5002654508535319010973
WITHDRAW: crvUSD, Amount: 5002654508535319010972
BORROW: crvUSD, Amount 10005309017070638021947
REPAY: crvUSD, Amount: 10005309017070638021948
REPAY: crvUSD, Amount: 10005309017070638021948
LIQUIDATE: crvUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10005309017070638021948
LIQUIDATE: crvUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10005309017070638021948
FLASH LOAN: crvUSD, Amount: 10005309017070638021947
FLASH LOAN: crvUSD, Amount: 10005309017070638021947
E2E: Collateral WETH, TestAsset PYUSD
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PYUSD, Amount: 10001995698
WITHDRAW: PYUSD, Amount: 5000997849
WITHDRAW: PYUSD, Amount: 5000997847
BORROW: PYUSD, Amount 10001995698
REPAY: PYUSD, Amount: 10001995699
REPAY: PYUSD, Amount: 10001995699
LIQUIDATE: PYUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001995699
LIQUIDATE: PYUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001995699
FLASH LOAN: PYUSD, Amount: 10001995698
FLASH LOAN: PYUSD, Amount: 10001995698
E2E: Collateral WETH, TestAsset weETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: weETH, Amount: 2753166808999067126
WITHDRAW: weETH, Amount: 1376583404499533563
WITHDRAW: weETH, Amount: 1376583404499533562
BORROW: weETH, Amount 2753166808999067126
REPAY: weETH, Amount: 2753166808999067127
REPAY: weETH, Amount: 2753166808999067127
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2753166808999067127
LIQUIDATE: weETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2753166808999067127
FLASH LOAN: weETH, Amount: 2753166808999067126
FLASH LOAN: weETH, Amount: 2753166808999067126
E2E: Collateral WETH, TestAsset osETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: osETH, Amount: 2811645218942246343
WITHDRAW: osETH, Amount: 1405822609471123171
WITHDRAW: osETH, Amount: 1405822609471123171
BORROW: osETH, Amount 2811645218942246343
REPAY: osETH, Amount: 2811645218942246344
REPAY: osETH, Amount: 2811645218942246344
LIQUIDATE: osETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2811645218942246344
LIQUIDATE: osETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2811645218942246344
FLASH LOAN: osETH, Amount: 2811645218942246343
FLASH LOAN: osETH, Amount: 2811645218942246343
E2E: Collateral WETH, TestAsset USDe
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: USDe, Amount: 10002044617960803547461
WITHDRAW: USDe, Amount: 5001022308980401773730
WITHDRAW: USDe, Amount: 5001022308980401773729
BORROW: USDe, Amount 10002044617960803547461
REPAY: USDe, Amount: 10002044617960803547462
REPAY: USDe, Amount: 10002044617960803547462
LIQUIDATE: USDe, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10002044617960803547462
LIQUIDATE: USDe, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10002044617960803547462
FLASH LOAN: USDe, Amount: 10002044617960803547461
FLASH LOAN: USDe, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset ETHx
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: ETHx, Amount: 2771002746315652855
WITHDRAW: ETHx, Amount: 1385501373157826427
WITHDRAW: ETHx, Amount: 1385501373157826427
BORROW: ETHx, Amount 2771002746315652855
REPAY: ETHx, Amount: 2771002746315652856
REPAY: ETHx, Amount: 2771002746315652856
LIQUIDATE: ETHx, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2771002746315652856
LIQUIDATE: ETHx, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 2771002746315652856
FLASH LOAN: ETHx, Amount: 2771002746315652855
FLASH LOAN: ETHx, Amount: 2771002746315652855
E2E: Collateral WETH, TestAsset sUSDe
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: sUSDe, Amount: 8289556118392468387839
WITHDRAW: sUSDe, Amount: 4144778059196234193919
WITHDRAW: sUSDe, Amount: 4144778059196234193919
FLASH LOAN: sUSDe, Amount: 8289556118392468387839
E2E: Collateral WETH, TestAsset tBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: tBTC, Amount: 99069311679251928
WITHDRAW: tBTC, Amount: 49534655839625964
WITHDRAW: tBTC, Amount: 49534655839625963
BORROW: tBTC, Amount 99069311679251928
REPAY: tBTC, Amount: 99069311679251929
REPAY: tBTC, Amount: 99069311679251929
LIQUIDATE: tBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 99069311679251929
LIQUIDATE: tBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 99069311679251929
FLASH LOAN: tBTC, Amount: 99069311679251928
FLASH LOAN: tBTC, Amount: 99069311679251928
E2E: Collateral WETH, TestAsset cbBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: cbBTC, Amount: 9906931
WITHDRAW: cbBTC, Amount: 4953465
WITHDRAW: cbBTC, Amount: 4953465
BORROW: cbBTC, Amount 9906931
REPAY: cbBTC, Amount: 9906932
REPAY: cbBTC, Amount: 9906932
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9906932
LIQUIDATE: cbBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9906932
FLASH LOAN: cbBTC, Amount: 9906931
FLASH LOAN: cbBTC, Amount: 9906931
E2E: Collateral WETH, TestAsset USDS
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: USDS, Amount: 10001516529951436536322
WITHDRAW: USDS, Amount: 5000758264975718268161
WITHDRAW: USDS, Amount: 5000758264975718268159
BORROW: USDS, Amount 10001516529951436536322
REPAY: USDS, Amount: 10001516529951436536323
REPAY: USDS, Amount: 10001516529951436536323
LIQUIDATE: USDS, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001516529951436536323
LIQUIDATE: USDS, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001516529951436536323
FLASH LOAN: USDS, Amount: 10001516529951436536322
FLASH LOAN: USDS, Amount: 10001516529951436536322
E2E: Collateral WETH, TestAsset rsETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: rsETH, Amount: 2813383824115130018
WITHDRAW: rsETH, Amount: 1406691912057565009
WITHDRAW: rsETH, Amount: 1406691912057565008
FLASH LOAN: rsETH, Amount: 2813383824115130018
E2E: Collateral WETH, TestAsset LBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: LBTC, Amount: 9887790
WITHDRAW: LBTC, Amount: 4943895
WITHDRAW: LBTC, Amount: 4943893
FLASH LOAN: LBTC, Amount: 9887790
E2E: Collateral WETH, TestAsset eBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: eBTC, Amount: 9889382
WITHDRAW: eBTC, Amount: 4944691
WITHDRAW: eBTC, Amount: 4944689
FLASH LOAN: eBTC, Amount: 9889382
E2E: Collateral WETH, TestAsset RLUSD
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: RLUSD, Amount: 10000195503822099722049
WITHDRAW: RLUSD, Amount: 5000097751911049861024
WITHDRAW: RLUSD, Amount: 5000097751911049861023
BORROW: RLUSD, Amount 10000195503822099722049
REPAY: RLUSD, Amount: 10000195503822099722050
REPAY: RLUSD, Amount: 10000195503822099722050
LIQUIDATE: RLUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000195503822099722050
LIQUIDATE: RLUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000195503822099722050
FLASH LOAN: RLUSD, Amount: 10000195503822099722049
FLASH LOAN: RLUSD, Amount: 10000195503822099722049
E2E: Collateral WETH, TestAsset PT-eUSDE-29MAY2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-eUSDE-29MAY2025, Amount: 10002044617960803547461
WITHDRAW: PT-eUSDE-29MAY2025, Amount: 5001022308980401773730
WITHDRAW: PT-eUSDE-29MAY2025, Amount: 5001022308980401773731
FLASH LOAN: PT-eUSDE-29MAY2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset PT-sUSDE-31JUL2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-sUSDE-31JUL2025, Amount: 10002044617960803547461
WITHDRAW: PT-sUSDE-31JUL2025, Amount: 5001022308980401773730
WITHDRAW: PT-sUSDE-31JUL2025, Amount: 5001022308980401773731
FLASH LOAN: PT-sUSDE-31JUL2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset USDtb
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: USDtb, Amount: 10008124395221552952255
WITHDRAW: USDtb, Amount: 5004062197610776476127
WITHDRAW: USDtb, Amount: 5004062197610776476127
BORROW: USDtb, Amount 10008124395221552952255
REPAY: USDtb, Amount: 10008124395221552952256
REPAY: USDtb, Amount: 10008124395221552952256
LIQUIDATE: USDtb, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10008124395221552952256
LIQUIDATE: USDtb, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10008124395221552952256
FLASH LOAN: USDtb, Amount: 10008124395221552952255
FLASH LOAN: USDtb, Amount: 10008124395221552952255
E2E: Collateral WETH, TestAsset PT-USDe-31JUL2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-USDe-31JUL2025, Amount: 10002044617960803547461
WITHDRAW: PT-USDe-31JUL2025, Amount: 5001022308980401773730
WITHDRAW: PT-USDe-31JUL2025, Amount: 5001022308980401773731
FLASH LOAN: PT-USDe-31JUL2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset PT-eUSDE-14AUG2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-eUSDE-14AUG2025, Amount: 10002044617960803547461
WITHDRAW: PT-eUSDE-14AUG2025, Amount: 5001022308980401773730
WITHDRAW: PT-eUSDE-14AUG2025, Amount: 5001022308980401773731
FLASH LOAN: PT-eUSDE-14AUG2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset eUSDe
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: eUSDe, Amount: 10002044617960803547461
WITHDRAW: eUSDe, Amount: 5001022308980401773730
WITHDRAW: eUSDe, Amount: 5001022308980401773731
FLASH LOAN: eUSDe, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset FBTC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: FBTC, Amount: 9906931
WITHDRAW: FBTC, Amount: 4953465
WITHDRAW: FBTC, Amount: 4953465
BORROW: FBTC, Amount 9906931
REPAY: FBTC, Amount: 9906932
REPAY: FBTC, Amount: 9906932
LIQUIDATE: FBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9906932
LIQUIDATE: FBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 9906932
FLASH LOAN: FBTC, Amount: 9906931
FLASH LOAN: FBTC, Amount: 9906931
E2E: Collateral WETH, TestAsset EURC
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: EURC, Amount: 8615503419
WITHDRAW: EURC, Amount: 4307751709
WITHDRAW: EURC, Amount: 4307751708
BORROW: EURC, Amount 8615503419
REPAY: EURC, Amount: 8615503420
REPAY: EURC, Amount: 8615503420
LIQUIDATE: EURC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 8615503420
LIQUIDATE: EURC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 8615503420
FLASH LOAN: EURC, Amount: 8615503419
FLASH LOAN: EURC, Amount: 8615503419
E2E: Collateral WETH, TestAsset PT-sUSDE-25SEP2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-sUSDE-25SEP2025, Amount: 10002044617960803547461
WITHDRAW: PT-sUSDE-25SEP2025, Amount: 5001022308980401773730
WITHDRAW: PT-sUSDE-25SEP2025, Amount: 5001022308980401773731
FLASH LOAN: PT-sUSDE-25SEP2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset PT-USDe-25SEP2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-USDe-25SEP2025, Amount: 10002044617960803547461
WITHDRAW: PT-USDe-25SEP2025, Amount: 5001022308980401773730
WITHDRAW: PT-USDe-25SEP2025, Amount: 5001022308980401773731
FLASH LOAN: PT-USDe-25SEP2025, Amount: 10002044617960803547461
E2E: Collateral WETH, TestAsset tETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: tETH, Amount: 2429662202815970801
WITHDRAW: tETH, Amount: 1214831101407985400
WITHDRAW: tETH, Amount: 1214831101407985401
FLASH LOAN: tETH, Amount: 2429662202815970801
E2E: Collateral WETH, TestAsset ezETH
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: ezETH, Amount: 2796324975765921889
WITHDRAW: ezETH, Amount: 1398162487882960944
WITHDRAW: ezETH, Amount: 1398162487882960945
FLASH LOAN: ezETH, Amount: 2796324975765921889
E2E: Collateral WETH, TestAsset XAUt
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: XAUt, Amount: 2375116
WITHDRAW: XAUt, Amount: 1187558
WITHDRAW: XAUt, Amount: 1187558
FLASH LOAN: XAUt, Amount: 2375116
E2E: Collateral WETH, TestAsset PT-sUSDE-27NOV2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-sUSDE-27NOV2025, Amount: 10033204690258316091939
WITHDRAW: PT-sUSDE-27NOV2025, Amount: 5016602345129158045969
WITHDRAW: PT-sUSDE-27NOV2025, Amount: 5016602345129158045970
FLASH LOAN: PT-sUSDE-27NOV2025, Amount: 10033204690258316091939
E2E: Collateral WETH, TestAsset PT-USDe-27NOV2025
SUPPLY: WETH, Amount: 29771828704806364026
SUPPLY: PT-USDe-27NOV2025, Amount: 10029500672984509907597
WITHDRAW: PT-USDe-27NOV2025, Amount: 5014750336492254953798
WITHDRAW: PT-USDe-27NOV2025, Amount: 5014750336492254953799
FLASH LOAN: PT-USDe-27NOV2025, Amount: 10029500672984509907597

[PASS] test_ghoGsmSteward_updateExposureCapUSDC() (gas: 2655503)
[PASS] test_ghoGsmSteward_updateExposureCapUSDT() (gas: 2655412)
[PASS] test_ghoGsmSteward_updateGsmBuySellFeesUSDC() (gas: 2931210)
[PASS] test_ghoGsmSteward_updateGsmBuySellFeesUSDT() (gas: 2931100)
[PASS] test_gsmUsdcIsOperational() (gas: 3006044)
[PASS] test_gsmUsdtIsOperational() (gas: 3005807)
[PASS] test_oldGsmsAreSeized() (gas: 2636920)
[PASS] test_oracleSwapFreezers() (gas: 2739890)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 107.45s (126.76s CPU time)

Ran 1 test suite in 107.47s (107.45s CPU time): 12 tests passed, 0 failed, 0 skipped (12 total tests)


// OwnableFacilitator Constants
address public constant OWNABLE_FACILITATOR = 0x616AEe98F73C79FE59548Cfe7631c0baDBdA3165;
string public constant OWNABLE_FACILITATOR_NAME = 'OwnableFacilitator Gho GSMs Mainnet';
Copy link
Contributor

@miguelmtzinf miguelmtzinf Dec 9, 2025

Choose a reason for hiding this comment

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

Suggested change
string public constant OWNABLE_FACILITATOR_NAME = 'OwnableFacilitator Gho GSMs Mainnet';
string public constant OWNABLE_FACILITATOR_NAME = 'EthereumGhoReserveGSM';

This is probably enough. We can also use EthereumGSM.
For reference, other facilitator names: CoreGhoDirectMinter, LidoGhoDirectMinter, HorizonGhoDirectMinter

Comment on lines +41 to +42
uint128 public constant USDC_GSM_RESERVE_LIMIT = 55_000_000 ether;
uint128 public constant USDT_GSM_RESERVE_LIMIT = 30_000_000 ether;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uint128 public constant USDC_GSM_RESERVE_LIMIT = 55_000_000 ether;
uint128 public constant USDT_GSM_RESERVE_LIMIT = 30_000_000 ether;
uint128 public constant RESERVE_LIMIT_GSM_USDC = 55_000_000 ether;
uint128 public constant RESERVE_LIMIT_GSM_USDT = 30_000_000 ether;

);
}

function _fund(uint256 balanceUsdc, uint256 balanceUsdt) internal {
Copy link
Contributor

@miguelmtzinf miguelmtzinf Dec 9, 2025

Choose a reason for hiding this comment

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

given that these balances are from stataUsdc and stataUsdt, are all the following operations precise? or we can incur in 1 wei diff. Also, are we ending up with 0 values in old GSM instances? can we have tests for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GHO] Upgrade GSMs Ethereum (BGD + Aave Labs)

2 participants