Skip to content

Curve.sol function _helper #3

@tangkefu

Description

@tangkefu

the desc
@return x^32/_MARKET_OPENING_SUPPLY^5

        for (uint256 index = 1; index <= _N; index++) {
            x = (x.mul(x)).div(_MARKET_OPENING_SUPPLY);
        }

with index = 1, x = x^2 / _MARKET_OPENING_SUPPLY
when run to next iteration, x = x^4/(_MARKET_OPENING_SUPPLY^2) / _MARKET_OPENING_SUPPLY

the doc is wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions