Skip to content
docs

valueAtPrice

valueAtPrice(shares, price): bigint

Defined in: protocol-staking-liquid-near/src/math.ts:23

shares valued at price (yoctoNEAR per whole token, PRICE_SCALE = 1:1), rounded down.

bigint

bigint

bigint