Badger-Finance / badger-multisig

Badger DAO's EVM multisig operations.
GNU Affero General Public License v3.0
48 stars 32 forks source link

sweep old slp geyser #1005

Open gosuto-inzasheru opened 1 year ago

gosuto-inzasheru commented 1 year ago

0xd34C1d3853214bf049B760Ef48A580bfa7A9c8a1

i think this is an old geyser for the sushi wbtcbadger strat. still holds ~6k badger; there might be a way to retrieve these tokens.

gosuto-inzasheru commented 1 year ago

the solution used by https://github.com/Badger-Finance/badger-multisig/pull/539 might be relevant here

gosuto-inzasheru commented 1 year ago

there seems to be a discrepancy in the accounting of this contract, which makes it impossible for even the approvedStaker to claim the remaining badger through the existing funcs:

>>> geyser = Contract('0xd34C1d3853214bf049B760Ef48A580bfa7A9c8a1')
>>> geyser.balanceOf(geyser.approvedStaker())
86036837300173489
>>> geyser.totalSupply()
86036837300173489
>>> badger = Contract(geyser.rewardsToken())
>>> badger.balanceOf(geyser)
6045500000000000000000

only option i see is upgrading, and removing the following line in recoverERC20:

require(tokenAddress != address(rewardsToken), "Cannot withdraw the rewards tokens");
gosuto-inzasheru commented 1 year ago

queued: https://etherscan.io/tx/0xeee34de5f5b629487660f93bf20e8479fb12c8996abe5295391b4e4e2924ae53#eventlog

gosuto-inzasheru commented 1 year ago

would be nice to amend script so that it also send all ragequited assets in dev msig to trops: #1292

gosuto-inzasheru commented 1 year ago

posted exec of timelock at nonce 1104:

snapshot result for 0x042B32Ac6b453485e357938bdC38e0340d4b9276:
                   balance_before              balance_after             balance_delta
symbol                                                                                
BADGER  15,692.684648998711160785  21,738.184648998711160785  6,045.500000000000000000
RPL          0.000000000000000000       9.119570178825518772      9.119570178825518772
DAI     47,815.084585421722279017  48,064.208734817731947656    249.124149396009668639
STG          0.000000000000000000     354.968280236651675314    354.968280236651675314
BAL          0.000000000000000000      15.118642899356518613     15.118642899356518613
sajanrajdev commented 1 year ago

Timelock expired without execution. Needs repost.

sajanrajdev commented 1 year ago

Queue was posted once more with 4 day ETA replacing the expired execution tx at Nonce 1104.

Transaction was Mined
---------------------
Tx Hash: 0xd760dc5b5a017a624720423dd6d308d9fb50540f006170333e6305750248c417
From: 0x15b8Fe651C268cfb5b519cC7E98bd45C162313C2
To: 0xB65cef03b9B89f99517643226d76e286ee999e77
Value: 0
Function: Gnosis Safe.execTransaction
Block: 17927938
Gas Used: 61772 / 99312 (62.2%)

Events In This Transaction
--------------------------
├── IGovernanceTimelock (0x21CF9b77F88Adf8F8C98d7E33Fe601DC57bC0893)
│   └── QueueTransaction
│       ├── txHash: 0xbfe30d239cafd07f1f3e62ed4e8f72edfedc8ffbb0c4f436ce4f651a211c75ba
│       ├── target: 0x20Dce41Acca85E8222D6861Aa6D23B6C941777bF
│       ├── value: 0
│       ├── signature: upgrade(address,address)
│       ├── data: 0x000000000000000000000000d34c1d3853214bf049b760ef48a580bfa7a9c8a1000000000000000000000000c765f078139bf16953ec9eb4ad45fc43c2910e53
│       └── eta: 1692542699
│
└── Gnosis Safe (0xB65cef03b9B89f99517643226d76e286ee999e77)
    └── ExecutionSuccess
        ├── txHash: 0x022be02a652b7b226c86f0f9b40d765686cf794ec03a1826c1a219e8decd5817
        └── payment: 0

{