yearn_treasury.rules.ignore.swaps package
Submodules
yearn_treasury.rules.ignore.swaps.aave module
Ignore rules for Aave-related transactions.
This module defines rules for identifying and ignoring Aave-related transactions in the Yearn Treasury system. It provides matching logic for deposit and withdrawal events, so these transactions can be ignored in analytics and reporting.
yearn_treasury.rules.ignore.swaps.compound module
yearn_treasury.rules.ignore.swaps.conversion_factory module
yearn_treasury.rules.ignore.swaps.cowswap module
yearn_treasury.rules.ignore.swaps.curve module
- yearn_treasury.rules.ignore.swaps.curve._get_lp_token(pool)[source]
- Parameters:
pool (Contract)
- Return type:
ChecksumAddress
- async yearn_treasury.rules.ignore.swaps.curve._is_curve_withdrawal_multi(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.curve._is_curve_withdrawal_one(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.curve._token_is_curvey(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
yearn_treasury.rules.ignore.swaps.gearbox module
Ignore rules for Gearbox protocol transactions.
This module defines matching logic for Gearbox protocol deposit and withdrawal swaps, so these transactions can be filtered from analytics and reporting.
yearn_treasury.rules.ignore.swaps.iearn module
yearn_treasury.rules.ignore.swaps.otc module
yearn_treasury.rules.ignore.swaps.pooltogether module
Ignore rules for PoolTogether protocol transactions.
This module defines matching logic for PoolTogether deposits swaps, as they can be safely ignored in analytics and reporting.
yearn_treasury.rules.ignore.swaps.synthetix module
yearn_treasury.rules.ignore.swaps.uniswap module
- async yearn_treasury.rules.ignore.swaps.uniswap.is_uniswap_deposit(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
yearn_treasury.rules.ignore.swaps.unwrapper module
Ignore rules for the Unwrapper contract.
This module defines matching logic for swaps involving the Unwrapper contract, so those transactions can be ignored from analytics and reporting.
yearn_treasury.rules.ignore.swaps.vaults module
- yearn_treasury.rules.ignore.swaps.vaults._get_underlying(vault)[source]
- Parameters:
vault (Contract)
- Return type:
ChecksumAddress
- yearn_treasury.rules.ignore.swaps.vaults.is_dola_frax_withdrawal(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.vaults.is_dolla_fed_withdrawal(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
- async yearn_treasury.rules.ignore.swaps.vaults.is_v1_or_v2_vault_deposit(tx)[source]
This code doesn’t validate amounts but so far that’s not been a problem.
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.vaults.is_v3_vault_deposit(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
yearn_treasury.rules.ignore.swaps.woofy module
- yearn_treasury.rules.ignore.swaps.woofy.is_woofy(tx)[source]
Returns True if the tx involved wrapping or unwrapping WOOFY.
https://docs.yearn.fi/resources/deprecated/woofy
- Parameters:
tx (TreasuryTx)
- Return type:
yearn_treasury.rules.ignore.swaps.yfi module
- yearn_treasury.rules.ignore.swaps.yfi.is_buyer_top_up(tx)[source]
The sell side of these transactions is in
is_buying_with_buyer()
. The buyer is topped up with DAI regularly and buys YFI at the current chainlink market price.# TODO: amortize this into a daily expense
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.yfi.is_buying_with_auction(tx)[source]
- Parameters:
tx (TreasuryTx)
- Return type:
- yearn_treasury.rules.ignore.swaps.yfi.is_buying_with_buyer(tx)[source]
The buy side of these transactions is in
is_buyer_top_up()
. The buyer is topped up with DAI regularly and buys YFI at the current chainlink market price- Parameters:
tx (TreasuryTx)
- Return type: