Skip to content

Simplify interface to include tribute #5

@LinuxIsCool

Description

@LinuxIsCool

In practice for the arb bot:

# have 1 TEC -> velodrome sell for rETH -> mint > 1 TEC
velo_sell = max(velo_tec_to_reth_1[-1], velo_tec_to_reth_2[-1])/1e18
abc_mint = bonding_curve.get_mint_amount(velo_sell) * (1 - buyFeePct)

# have 1 TEC -> burn for rETH -> sell > 1 TEC on velo
abc_burn = bonding_curve.get_balance_return(tec_order_amount) * (1 - sellFeePct)

Can we simplify the API so that user does not need to manually apply the fees?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions