applyRate
@totemsdk/omnia-router / applyRate
Function: applyRate()
applyRate(
amountIn,rate):bigint
Apply rate to amount: amountOut = amountIn × rateScaled / SCALE
Parameters
amountIn
bigint
rate
string
Returns
bigint
@totemsdk/omnia-router / applyRate
applyRate(
amountIn,rate):bigint
Apply rate to amount: amountOut = amountIn × rateScaled / SCALE
bigint
string
bigint