yearn_treasury.rules.ignore package

Subpackages

Submodules

yearn_treasury.rules.ignore.general module

yearn_treasury.rules.ignore.general.is_returned_fundus(tx)[source]

A user accientally refunded their yield to yChad, yChad sent it back.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.maker module

Ignore rules for Maker protocol.

This module defines matching logic for Maker protocol transactions, including DAI minting/burning, DSR deposit/withdrawal, and CDP deposit/withdrawal for YFI and USDC.

yearn_treasury.rules.ignore.maker.is_usdc_cdp_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.maker.is_usdc_cdp_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.maker.is_yfi_cdp_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.maker.is_yfi_cdp_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru module

yearn_treasury.rules.ignore.passthru.is_aura(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_cowswap_migration(tx)[source]

A one-time tx that transferred tokens from an old contract to its replacement.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_curve_bribe(tx)[source]

All present and future curve bribes are committed to yveCRV holders.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_dola_bribe(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_factory_vault_yield(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_idle(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_inverse_fees_from_yearn_fed(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_misc_passthru_fantom(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_misc_passthru_mainnet(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_rkp3r(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_sent_to_dinoswap(tx)[source]

These tokens are dumpped and the proceeds sent back to the origin strategy.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_stkaave(tx)[source]

stkAAVE is sent from a strategy to ychad, then to sms for unwrapping.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_ycrv(tx)[source]

These are routed thru cowswap with dai as the purchase token.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.passthru.is_yprisma_migration(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.staking module

yearn_treasury.rules.ignore.staking.is_curve_gauge(tx)[source]

Ignore DAO staking into Curve gauge contracts on Mainnet.

These deposit transactions into Curve gauges are infrequent and are excluded from automatic categorization.

Parameters:

tx (TreasuryTx)

Return type:

bool

async yearn_treasury.rules.ignore.staking.is_solidex_staking(tx)[source]

Ignore Solidex staking and unstaking lifecycle transactions on Fantom.

This rule matches each stage of the Solidex LP flow: - Stake deposits: DAO wallet deposits tokens into the LP depositor contract (Deposited event). - Reward claims: Claim tokens minted to DAO (Deposited event with ZERO_ADDRESS as sender). - Claim token burns: DAO wallet burns claim tokens to redeem rewards (Withdrawn event). - Unstake withdrawals: DAO wallet receives original LP tokens back (Withdrawn event).

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.unit module

Ignore rules for Unit.xyz protocol.

This module defines matching logic for Unit.xyz protocol transactions, so they can be ignored in analytics and reporting.

yearn_treasury.rules.ignore.unit.is_burning_usdp(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.unit.is_minting_usdp(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.unit.is_unit_yfi_deposit(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.unit.is_unit_yfi_withdrawal(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.weth module

Ignore rules for WETH minting and burning.

This module defines matching logic for WETH minting and burning transactions, so those transactions can be ignored in analytics and reporting.

yearn_treasury.rules.ignore.weth.is_weth(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.weth.is_weth_mint(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.ignore.ygov module

yearn_treasury.rules.ignore.ygov.is_sent_to_ygov(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

Module contents