Skip to content
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

Inconsistent implementation of basket fee requirements #1165

Closed
4 tasks
Tracked by #818
ryanchristo opened this issue Jun 7, 2022 · 1 comment · Fixed by #1184
Closed
4 tasks
Tracked by #818

Inconsistent implementation of basket fee requirements #1165

ryanchristo opened this issue Jun 7, 2022 · 1 comment · Fixed by #1184
Assignees
Labels
Scope: x/ecocredit Issues that update the x/ecocredit module Status: Nice To Have

Comments

@ryanchristo
Copy link
Member

ryanchristo commented Jun 7, 2022

Summary

Params.credit_class_fee is a repeated Coin and MsgCreateClass.fee is a single Coin. As currently implemented, a user is able to choose one of the fees listed in credit_class_fee when multiple fees are provided in Params.credit_class_fee.

Params.basket_fee is a repeated Coin and MsgCreateBasket.fee is a repeated Coin. As currently implemented, a user must provide all fees listed in basket_fee when multiple fees are provided in Params.basket_fee.

Problem Definition

Inconsistent implementation of fee parameters. This is not clear in the specification and fee handling should be consistent.

Proposal

Either both should only require one of the fees listed (how credit class creation currently works) or both should require all of the fees listed (how basket creation currently works).

I would even advocate that we migrate away from multiple fees when we implement ORM tables for each of these, we would use a singleton table for a single Coin (see #960 (comment) and #962 (comment)).


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@ryanchristo ryanchristo added the Scope: x/ecocredit Issues that update the x/ecocredit module label Jun 7, 2022
@ryanchristo ryanchristo changed the title Intended use of multiple values for credit class and basket fee Inconsistent implementation of ecocredit fee requirements Jun 7, 2022
@ryanchristo ryanchristo added Status: Need More Info Need more info about a bug report Status: Nice To Have and removed Status: Need More Info Need more info about a bug report labels Jun 8, 2022
@technicallyty
Copy link
Contributor

+1 for switching basket to the way create class is implemented. I think having to pay a multi-coin fee is a bit awkward UX

@ryanchristo ryanchristo self-assigned this Jun 13, 2022
@ryanchristo ryanchristo changed the title Inconsistent implementation of ecocredit fee requirements Inconsistent implementation of basket fee requirements Jun 17, 2022
@ryanchristo ryanchristo added this to the v4.0 - Llangorse Upgrade milestone Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: x/ecocredit Issues that update the x/ecocredit module Status: Nice To Have
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants