Skip to content

minimum redemption amount required to conversionRate UT Wei - #41

Merged
jasonklein merged 1 commit into
masterfrom
benjaminbollen/gh39/minimumredemption
Dec 6, 2017
Merged

minimum redemption amount required to conversionRate UT Wei#41
jasonklein merged 1 commit into
masterfrom
benjaminbollen/gh39/minimumredemption

Conversation

@benjaminbollen

Copy link
Copy Markdown
Contributor

for minimal precision of unstaking 1 ST Wei, we require minimum redemption amount to be required to be conversionRate UT Wei

fixes #39

@jasonklein jasonklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for value chain.

Should something also be changed on the utility chain side? If not logic, then presumably at least a comment. When an account attempts to redeem a too-small-to-unstake-amount on the utility chain, all else being OK, that amount will be transferred from the account to the protocol, despite the account not being able to ultimately unstake for that amount on the value chain.

There is also the issue of rounding (i.e., 11/10 == 1, not 1.1) that we previously discussed. I accept that it's a crazy small amount of value, but it is not clear to me that users will be OK with value being lost without having been given any warning (especially if microtransactions start to add up). At this point, a comment should satisfy users. But I will leave the decision of whether and how to address the issue to you.

Perhaps ultimately the best solution is a comment rather than any change to the code, particularly given that OpenSTUtility does not retain conversion rate information post-proposal. Without additional coding changes, there's no way for OpenSTUtility to logically prevent accounts from essentially making donations to the protocol because they attempt to redeem un-unstakeable amounts.

@jasonklein

Copy link
Copy Markdown
Contributor

@benjaminbollen, I struck out my discussion above w/r/t rounding because I just came to where you came to the same conclusion elsewhere.

@benjaminbollen

Copy link
Copy Markdown
Contributor Author

Yes, @jasonklein current logic does not hold the conversionRate on the utilitychain side; this is a bit of an unfortunate UX; but we are still talking about negligible amounts; so negligible that it is hard to phantom how small; I would rather put in a more reasonable minimum redemption amount related to the actual cost to unstake; so we can open an issue for that:

microtransactions in BT is not the same as unstaking micro-amounts; even unstaking O(1) BT will not be cost effective.

@jasonklein

Copy link
Copy Markdown
Contributor

@benjaminbollen, to confirm: (1) the solution is to place a requirement on the value chain that is not mirrored on the utility chain and (2) that solution is preferred over a comment about rounding/floating point math?

@benjaminbollen

Copy link
Copy Markdown
Contributor Author

Correct; also very explicitly lets discuss this as a new issue and move this forward; merge and move

@jasonklein
jasonklein merged commit fb30598 into master Dec 6, 2017
@benjaminbollen
benjaminbollen deleted the benjaminbollen/gh39/minimumredemption branch December 11, 2017 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants