Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions