update

This method updates the reserve and weight. On the first call per block updates cumulative states. Only the latest core contract can call it.

Function

function update(
    uint _balance, 
    uint _r, 
    uint _w
) external;

Parameters

ParameterDescription

_balance

The balance of the pool.

_r

The reserve of the pool.

_w

The weight of the pool.

Last updated