Closed shoom3301 closed 3 months ago
No dependency changes detected. Learn more about Socket for GitHub ↗︎
👍 No dependency changes detected in pull request
Soft approve. I agree with leandro that the price being a number is error prone. As a financial app is better to not have rounding issues
Approved, but keep in mind that even after removing the price from the response, the calculation still uses native number for deriving the returned values.
This is a refactored and improved version of:
Goals of the refactoring:
OrderParameters
which is a DTO from/quote
API.*withFee
/*withoutFee
with*afterFees
/*beforeFees
. Depending on sell/buy order we substract/add network costs to the amounts and it's not super clear whatwith/without
means.network costs
andpartner fees
. Currently,network costs
are named asfeeAmount
inOrderParameters
which is not super clear.bigint
.