generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 24
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
yan-man
wants to merge
46
commits into
bgd-labs:main
Choose a base branch
from
aave:feat/rescue-tokens-from-adapters
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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
changed the title
Rescue Tokens from Deprecated Debt Swap Adapters
Feat: Rescue Tokens from Deprecated Debt Swap Adapters
Sep 16, 2024
...20240916_Multi_RescueTokensFromAdapters/AaveV3Ethereum_RescueTokensFromAdapters_20240916.sol
Outdated
Show resolved
Hide resolved
...20240916_Multi_RescueTokensFromAdapters/AaveV3Ethereum_RescueTokensFromAdapters_20240916.sol
Outdated
Show resolved
Hide resolved
...20240916_Multi_RescueTokensFromAdapters/AaveV3Ethereum_RescueTokensFromAdapters_20240916.sol
Show resolved
Hide resolved
...240916_Multi_RescueTokensFromAdapters/AaveV3Ethereum_RescueTokensFromAdapters_20240916.t.sol
Show resolved
Hide resolved
src/20240916_Multi_RescueTokensFromAdapters/RescueTokensFromAdapters.md
Outdated
Show resolved
Hide resolved
missing rescue for other adapters and networks |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
V3Ethereum - DEBT_SWAP_ADAPTER (0x8761e0370f94f68Db8EaA731f4fC581f6AD0Bd68)
Owner: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A
Tokens to rescue:
V3Ethereum - REPAY_WITH_COLLATERAL_ADAPTER (0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3)
Owner: 0x5300A1a15135EA4dc7aD5a167152C01EFc9b192A
Tokens to rescue:
Tokens to Rescue via GovernanceV2 Executor (NOT included in this proposal)
Ethereum - REPAY_WITH_COLLATERAL_ADAPTER (0x1809f186D680f239420B56948C58F8DbbCdf1E18)
Owner: 0xEE56e2B3D491590B5b31738cC34d5232F378a8D5
Tokens to Rescue:
Polygon - REPAY_WITH_COLLATERAL_ADAPTER (0x10D2fA27166d94894d850a9a851EE06870F14b09)
Owner: 0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772
Tokens to Rescue:
Arbitrum - REPAY_WITH_COLLATERAL_ADAPTER (0xB0526BFb4047aE1147DC7caAF3F1653904C2D568)
Owner: 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611
Tokens to Rescue: