import { BN } from '@project-serum/anchor' ; import { Market } from '../types' ; import { calculatePrice } from './amm' ; param market return export function calculateMarkPrice ( market ) { return calculatePrice ( market . amm . baseAssetReserve , market . amm . quoteAssetReserve , market . amm . pegMultiplier ) ; }