You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
core.GetModeratorFee accesses internal profile state which is already nicely exposed via repo.Profile.GetFixedFee.
It would be good to refactor this to use existing repo.Profile.GetFixedFee
Bonus: Expose a new function which provides (repo.Profile).GetModeratorFee(orderTotal *CurrencyValue, cc *CurrencyConverter) (feeTotal *CurrencyValue, error) which takes in the orderTotal (in the currency of the order) and converts the local moderator state into a feeTotal converted to match the same currency/divisibility of the orderTotal.
Note: This depends on *CurrencyConverter being delivered as part of #1949
The text was updated successfully, but these errors were encountered:
core.GetModeratorFee
accesses internal profile state which is already nicely exposed viarepo.Profile.GetFixedFee
.repo.Profile.GetFixedFee
(repo.Profile).GetModeratorFee(orderTotal *CurrencyValue, cc *CurrencyConverter) (feeTotal *CurrencyValue, error)
which takes in theorderTotal
(in the currency of the order) and converts the local moderator state into afeeTotal
converted to match the same currency/divisibility of theorderTotal
.Note: This depends on
*CurrencyConverter
being delivered as part of #1949The text was updated successfully, but these errors were encountered: