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
refs: #10390
## Description
- Add `FeeConfig` to `privateArgs` so deployers can adjust fees over time (terms are immutable)
- Adds `FeeTools` for calculating net advance and fee splits
- Integrates `FeeTools` with `Advancer`
### Security Considerations
- None really for these specific changes. We might need to think about timing from when the `Advancer` calls `calculateAdvance` and the `Settler` calls `calculateSplit`, as the `FeeConfig` values might change.
- From a product POV, users might pay more in fees than the net advance they receive. So we might consider a config parameter for a "minimum request amount".
### Scaling Considerations
None really, mainly contains AmountMath computation.
### Documentation Considerations
Includes jsdoc and code comments
### Testing Considerations
Includes unit tests for FeeTools, attempting to cover all foreseeable scenarios. A bit light on testing integrations with the advancer and settler.
### Upgrade Considerations
N/A, unreleased
0 commit comments