NexusMutual / cover-router

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

Cover router: /v2/quote/ GET endpoint #5

Closed mixplore closed 1 year ago

mixplore commented 1 year ago

Input:

productId
amount
period
coverAsset
paymentAsset // same as cover asset or NXM

Output:

premiumInCoverAsset,
premiumInNXM
PoolAllocationRequest[]
  - poolId, skip, coverAmountInAsset
roxdanila commented 1 year ago

cc @MilGard91 @mixplore

roxdanila commented 1 year ago

@MilGard91 minor update to the outputs