pendulum-chain / vortex

1 stars 0 forks source link

Bugfix: calculate Mykobo fee correctly #118

Closed TorstenStueber closed 1 month ago

TorstenStueber commented 1 month ago

Currently we define a 5% fee for Mykobo in order to calculate the final amount the user will receive. This is incorrect.

TODO

vadaynujra commented 1 month ago

@TorstenStueber For the implementation of this fix, we should do it in a way that is not fixed for all off ramping currencies but different for each as each anchor that is off ramping the asset is expected to have a different fee.

TorstenStueber commented 1 month ago

The fee is not hardcoded but defined by anchor asset.

For other anchors we might need to extend the fee calculation as they might use a combination of fixed and relative fees.