Skip to content

Add docstrings for the balancer_math.py #79

Description

@danlessa

It would be useful to have docstrings for each function explicitly telling what each operation means. This would make it easier to people use the model as a source of truth and as a educational material.

It could be something like that:

defcalc_out_given_in(*args):
"""
CalculatetheamountofoutputtokensretrievedwhensellingainputamountoftokensArgumentstoken_amount_in: amountofinputtokenstobesold (...)
Outputtoken_amount_out: resultingoutputtokensfromtradingtoken_amount_in_fee: feetobepaidoninputtokensMath
$$
(latexhere)
$$
References-https://balancer.finance/whitepaper/#out-given-inExamples>>>calc_out_given_in(...)
BalancerMathResult(...)

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