INNER CODE UNIT · Python

profit

OriginProtocol/origin-dollar · brownie/allocations.py:285

    profit = vault_change - supply_change

    return [
        world.vault_value_checker.checkDelta(
            profit, # expectedProfit
            500 * int(1e18), # profitVariance
            vault_change, # expectedVaultChange
            250_000 * int(1e18), # vaultChangeVariance
            {"from": world.STRATEGIST},
        )
    ]


def auto_consolidate_stables(allocation, consolidation):
    "Take all stables above target and send to consolidate strat"
    txs = []
    for strat_name in ["AAVE", "COMP", "MORPHO_COMP", "MORPHO_AAVE"]:
        if consolidation == strat_name:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…