yearn_treasury.rules.ignore.swaps package
Submodules
yearn_treasury.rules.ignore.swaps.aave module
yearn_treasury.rules.ignore.swaps.compound module
yearn_treasury.rules.ignore.swaps.cowswap module
yearn_treasury.rules.ignore.swaps.gearbox module
yearn_treasury.rules.ignore.swaps.pooltogether module
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
yearn_treasury.rules.ignore.swaps.vaults module
- 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.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_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: