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
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
The text was updated successfully, but these errors were encountered:
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
changed the title
Inconsistent implementation of ecocredit fee requirements
Inconsistent implementation of basket fee requirements
Jun 17, 2022
Summary
Params.credit_class_fee
is a repeatedCoin
andMsgCreateClass.fee
is a singleCoin
. As currently implemented, a user is able to choose one of the fees listed incredit_class_fee
when multiple fees are provided inParams.credit_class_fee
.Params.basket_fee
is a repeatedCoin
andMsgCreateBasket.fee
is a repeatedCoin
. As currently implemented, a user must provide all fees listed inbasket_fee
when multiple fees are provided inParams.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
The text was updated successfully, but these errors were encountered: