Pricer

The pool owner (project teams) can configure the pricer for each token pair to apply different pricing models. Native has the plan to support self-implemented pricer in the future.

On-Chain

On-chain pricer is implemented in smart contract.

When a quote is queried, Native backend calls the on-chain Pool contract using the getAmountOut function. The Pool contract will then contact the Registry contract for the price.

Constant Sum Pricer

The price calculation is based on constant sum formula.

Uniswap V2 Pricer

The price calculation is based on Uniswap v2 AMM model.

Off-Chain

Fixed Price Pricer

Pool owner can set fixed buy-sell price for the token pair. An off-chain calculation will be done within the Pricer.

Last updated