Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Rescue Tokens from Deprecated Debt Swap Adapters #454

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

yan-man
Copy link

@yan-man yan-man commented Sep 16, 2024

Rescue tokens from Paraswap debt swap adapters which have been deprecated due to the exploit from August 28, 2024. Only rescue tokens from the networks where the accumulated token value stuck in the contracts is >=$10.

Transfer rescued tokens to treasury.

Summary (all values approximate):

V2Ethereum - DEBT_SWAP_ADAPTER (0x6A6FA664D4Fa49a6a780a1D6143f079f8dd7C33d)
Owner: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A
Tokens to rescue:

  • sUSD: $52
  • USDC: $10

V3Ethereum - DEBT_SWAP_ADAPTER (0x8761e0370f94f68Db8EaA731f4fC581f6AD0Bd68)
Owner: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A
Tokens to rescue:

  • USDT: $78
  • crvUSD: $33

V3Ethereum - REPAY_WITH_COLLATERAL_ADAPTER (0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3)
Owner: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A
Tokens to rescue:

  • GHO: $3,120
  • rETH: $31
  • WBTC: $23

Tokens to Rescue via GovernanceV2 Executor (NOT included in this proposal)

Ethereum - REPAY_WITH_COLLATERAL_ADAPTER (0x1809f186D680f239420B56948C58F8DbbCdf1E18)
Owner: 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5
Tokens to Rescue:

  • LUSD: $12

Polygon - REPAY_WITH_COLLATERAL_ADAPTER (0x10D2fA27166d94894d850a9a851EE06870F14b09)
Owner: 0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772
Tokens to Rescue:

  • agEUR: $75
  • CRV: $47
  • miMATIC: $14

Arbitrum - REPAY_WITH_COLLATERAL_ADAPTER (0xB0526BFb4047aE1147DC7caAF3F1653904C2D568)
Owner: 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611
Tokens to Rescue:

  • MAI: $31

parth-15 and others added 20 commits December 5, 2023 23:04
* chore: add payload and deploy script for update of GHO variable debt token

* forge install: gho-core

* chore: add gho-core to dependency

* test: Add tests for update of gho variable token

* test: Add tests for update of gho variable token

* fix: add modifier in method of interface

* fix: remove gho dependency from repo and fix test

* fix: Remove unnecesary dependency

* fix: Add latest details

---------

Co-authored-by: miguelmtzinf <miguelmtz.mail@gmail.com>
* fix: Make new impl constant

* fix: Fix AIP text
@yan-man yan-man changed the title Rescue Tokens from Deprecated Debt Swap Adapters Feat: Rescue Tokens from Deprecated Debt Swap Adapters Sep 16, 2024
@miguelmtzinf
Copy link
Contributor

missing rescue for other adapters and networks

@miguelmtzinf
Copy link
Contributor

Implementation looks good to me. Thanks for the code and analysis @yan-man

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.

3 participants