NexusMutual / cover-router

Computes optimal capacity allocation per Nexus Mutual staking pool on cover purchase
MIT License
1 stars 1 forks source link

Add commission to the quote #60

Closed MilGard91 closed 4 months ago

MilGard91 commented 5 months ago
  const priceWithCommission =
    (price * BigInt(BUY_COVER_PRICE_DENOMINATOR)) /
    BigInt(BUY_COVER_PRICE_DENOMINATOR - commission - slippage);