yearn_treasury.rules.other_expense package

Submodules

yearn_treasury.rules.other_expense.boost module

yearn_treasury.rules.other_expense.boost.is_buying_crv_for_boost(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs module

yearn_treasury.rules.other_expense.bugs.is_dai_vault_reimbursement(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_double_fee_reimbursement(tx)[source]

Due to new single-sided strats that deposit into other vaults, some users were accidentally charged 2x the expected withdrawal fee.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_gusd_vault_bug_reimbursement(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_lossy_fee_reimbursement(tx)[source]

old vault code doesn’t prevent fees from making harvest lossy. so here we airdrop the fee-take back to vault and do some housekeeper to prevent this from happening on other strats.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_slippage_bug_reimbursement(tx)[source]

a swap tx was messed up so Yearn sent treasury funds to the relevant strategy to compensate

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_stycrv(tx)[source]

Some user lost some funds in a minor issue, then was reimbursed.

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.bugs.is_yyfi_fee_reimbursement(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.donations module

Other expense rules for donations in Yearn Treasury.

This module defines matching logic for donation transactions, including Gitcoin matching rounds, 4626 Alliance, Vyper Compiler Audit Contest, Warroom Games, and more.

yearn_treasury.rules.other_expense.donations.is_gitcoin_matching_donation(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.donations.is_warroom_games(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.dyfi module

yearn_treasury.rules.other_expense.dyfi.is_dyfi_launch(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.dyfi.is_dyfi_redemptions(tx)[source]

YFI going to the dyfi redemptions contract

Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.events module

yearn_treasury.rules.other_expense.events.is_eth_denver(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.misc module

Other expense rules for miscellaneous cases in Yearn Treasury.

This module defines matching logic for miscellaneous other expenses. If it doesn’t really fit anywhere else in other_expenses, it will end up in here.

yearn_treasury.rules.other_expense.misc.is_one_yfi_for_signers(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.misc.is_ybudget_reward(tx)[source]
Parameters:

tx (TreasuryTx)

Return type:

bool

yearn_treasury.rules.other_expense.revshare module

These predate the yteam revshare splitting implementation so were done manually

Module contents