Function calculateUpdatedAMMSpreadReserves
- calculateUpdatedAMMSpreadReserves(amm: AMM, direction: PositionDirection, oraclePriceData: OraclePriceData, isPrediction?: boolean): {
baseAssetReserve: BN;
newPeg: BN;
quoteAssetReserve: BN;
sqrtK: BN;
}
-
Parameters
-
-
-
-
isPrediction: boolean = false
Returns {
baseAssetReserve: BN;
newPeg: BN;
quoteAssetReserve: BN;
sqrtK: BN;
}
-
baseAssetReserve: BN
-
newPeg: BN
-
quoteAssetReserve: BN
-
sqrtK: BN