forked from rotki/rotki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Eigenlayer pending withdrawal balances
If the timing of the eigenlayer pending withdrawal completion came before the saving of the start of pending withdrawal was in the DB, then the pending withdrawal was never marked as complete. This resulted in those cases of completed withdrawals counting again in the balances. This commit fixes this by forcing redecoding of completion if a completed withdrawal is found without having a match to a pending withdrawal whenever eigenlayer balances are queried. Signed-off-by: Lefteris Karapetsas <[email protected]>
- Loading branch information
1 parent
9c6aa4c
commit f5a2992
Showing
30 changed files
with
284 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
|
||
from rotkehlchen.chain.arbitrum_one.modules.gearbox.constants import ( | ||
GEAR_IDENTIFIER_ARB, | ||
GEAR_STAKING_CONTRACT, | ||
) | ||
from rotkehlchen.chain.evm.decoding.gearbox.balances import GearboxCommonBalances | ||
|
||
if TYPE_CHECKING: | ||
from rotkehlchen.chain.arbitrum_one.decoding.decoder import ArbitrumOneTransactionDecoder | ||
from rotkehlchen.chain.arbitrum_one.node_inquirer import ArbitrumOneInquirer | ||
from rotkehlchen.db.dbhandler import DBHandler | ||
|
||
|
||
class GearboxBalances(GearboxCommonBalances): | ||
def __init__(self, database: 'DBHandler', evm_inquirer: 'ArbitrumOneInquirer') -> None: | ||
def __init__( | ||
self, | ||
database: 'DBHandler', | ||
evm_inquirer: 'ArbitrumOneInquirer', | ||
tx_decoder: 'ArbitrumOneTransactionDecoder', | ||
) -> None: | ||
super().__init__( | ||
database=database, | ||
evm_inquirer=evm_inquirer, | ||
tx_decoder=tx_decoder, | ||
staking_contract=GEAR_STAKING_CONTRACT, | ||
native_token_id=GEAR_IDENTIFIER_ARB, | ||
) |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.