-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: flexible asset min and max amounts #322
Comments
|
Polaris has an assumption that there is one minimum and maximum limit for an anchored asset no matter the rails used or fee's incurred by the anchor, and I agree this is an assumption we should remove. Without thinking too hard about it, it seems like it would be a decent amount of work and involve breaking changes, at least to the data model. This means that full support for multiple min/max pairs per asset would likely be slated for 2.0 unless we could make the change strictly additive. And unfortunately, Polaris would likely break or conflict in some way if the anchor tried forcing a different min/max pair.
That seems like a red flag. The asset should always be counted in the same units and no precision should be lost. |
You're right. The scenario I imagined doesn't really makes sense. Nevermind that. |
The min/max amounts could be properties and call integration functions, passing both the asset and the transfer type (
This would allow the anchor to customize the amounts and not require much refactor in Polaris code. But, Polaris is currently compliant with the SEPs, since both SEP-6 /info and SEP-24 /info return a single min/max amount for the asset no matter the |
I agree, reference this discussion there and we'll adjust Polaris according to the results of that discussion. |
Some Anchors might want to have different minimum and maximum deposit/withdrawal amounts for their assets, depending on the type of deposit/withdrawal.
For example, SEPA transfers might have a different
deposit_min_amount
than Cash deposits.The text was updated successfully, but these errors were encountered: