NexusMutual / cover-router

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

assetId inconsistency in /capacity and /quote (breaking change - fix in v3?) #88

Open rackstar opened 1 month ago

rackstar commented 1 month ago

Overview

assetId should be in number format because Pool.getAsset(uint assetId)

Fix assetId inconsistency in v3? (BREAKING CHANGE)

/capacity (assetId: Integer)

{"assetId":255,"amount":"195995240000000000000000"}

/quote (assetId: IntegerString) - fix to be integer

{"assetId":"255","amount":"81071620000000000000000"}