NexusMutual / cover-router

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

refactor: Change no capacity return value to empty object #99

Closed rackstar closed 3 weeks ago

rackstar commented 3 weeks ago

Context

Currently when there is capacity we return the allocation object, but if there is not enough capacity we return an empty array.

The return value should be consistent, hence changing it to empty object.

Changes proposed in this pull request

Test plan

Checklist

Review

When reviewing a PR, please indicate intention in comments using the following emojis: