yearn_treasury.rules.ignore.swaps package

Submodules

yearn_treasury.rules.ignore.swaps.aave module

yearn_treasury.rules.ignore.swaps.aave.is_aave_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

async yearn_treasury.rules.ignore.swaps.aave.is_aave_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.compound module

yearn_treasury.rules.ignore.swaps.compound.is_compound_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.compound.is_compound_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.cowswap module

yearn_treasury.rules.ignore.swaps.cowswap.is_cowswap_swap(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.gearbox module

yearn_treasury.rules.ignore.swaps.gearbox.is_gearbox_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.gearbox.is_gearbox_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.pooltogether module

yearn_treasury.rules.ignore.swaps.pooltogether.is_pooltogether_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.synthetix module

yearn_treasury.rules.ignore.swaps.synthetix.is_synthetix_swap(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.uniswap module

yearn_treasury.rules.ignore.swaps.uniswap.is_pool(pool)[source]
Parameters:

pool (Contract)

Return type:

bool

async yearn_treasury.rules.ignore.swaps.uniswap.is_uniswap_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

async yearn_treasury.rules.ignore.swaps.uniswap.is_uniswap_swap(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

async yearn_treasury.rules.ignore.swaps.uniswap.is_uniswap_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.unwrapper module

yearn_treasury.rules.ignore.swaps.unwrapper.is_unwrapper(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.vaults module

yearn_treasury.rules.ignore.swaps.vaults.is_dola_frax_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.vaults.is_dolla_fed_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

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:

bool

yearn_treasury.rules.ignore.swaps.vaults.is_v3_vault_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

async yearn_treasury.rules.ignore.swaps.vaults.is_vault_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

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:

bool

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:

bool

yearn_treasury.rules.ignore.swaps.yfi.VYPER_BUYERS: Final = ('0xdf5e4E54d212F7a01cf94B3986f40933fcfF589F', '0x6903223578806940bd3ff0C51f87aa43968424c8')

These contracts, now retired, previously were used to purchase YFI for DAI at the current chainlink market price.

yearn_treasury.rules.ignore.swaps.yla module

yearn_treasury.rules.ignore.swaps.yla.is_yla_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.swaps.yla.is_yla_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

Module contents