Closed MilGard91 closed 4 months ago
This doesn't feel like the proper place for the slippage and commission calculation but we agreed to merge it and revisit this later. One of the issues with the code right now is the presence of business logic inside the controller - controllers should be skinny as they're not reusable and testing is weirder. Same applies for annualPrice
which is calculated in the controller as well. A proper place for the commission and slippage would be inside the sdk. The annual price on the other hand should probably be inside the quote engine itself.
LGTM
Won't merge as we decided to move this to the SDK.
Context
Issue: #60 #61
Changes proposed in this pull request
Test plan
Checklist
Review
When reviewing a PR, please indicate intention in comments using the following emojis: