cosmos-sdk/x/auth/middleware
Marko 45cdd908eb
fix: take in the smallest fee (#10607)
<!--
The default pull request template is for types feat, fix, or refactor.
For other templates, add one of the following parameters to the url:
- template=docs.md
- template=other.md
-->

## Description

Follow up to have the priority middleware take the smallest fee to avoid gaming the system. 

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2021-11-29 11:38:42 +00:00
..
basic_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
basic.go chore: bump TM to v0.35.0 release candidate (#10210) 2021-11-16 11:24:38 -08:00
expected_keepers.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
ext_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
ext.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
fee_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
fee.go feat: CheckTX Priority (#10507) 2021-11-23 09:21:28 -05:00
feegrant_test.go revert: Remove SIGN_MODE_AMINO_AUX (#10322) 2021-10-18 10:32:43 +00:00
gas_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
gas.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
index_events.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
legacy_router_test.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
legacy_router.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
middleware_test.go feat: Add Tips middleware (#10208) 2021-11-16 17:55:12 +00:00
middleware.go feat: CheckTX Priority (#10507) 2021-11-23 09:21:28 -05:00
msg_service_router_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
msg_service_router.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
priority_test.go fix: take in the smallest fee (#10607) 2021-11-29 11:38:42 +00:00
priority.go fix: take in the smallest fee (#10607) 2021-11-29 11:38:42 +00:00
recovery.go refactor!: BaseApp {Check,Deliver}Tx with middleware design (#9920) 2021-08-25 14:40:33 +00:00
run_msgs_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
run_msgs.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
sigverify_benchmark_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
sigverify_test.go refactor: migrate ante hanlders to middlewares (#10028) 2021-10-01 14:30:22 +00:00
sigverify.go style: lint go and markdown (#10060) 2021-10-30 13:43:04 +00:00
testutil_test.go feat: Add Tips middleware (#10208) 2021-11-16 17:55:12 +00:00
tips_test.go feat: Add Tips middleware (#10208) 2021-11-16 17:55:12 +00:00
tips.go feat: Add Tips middleware (#10208) 2021-11-16 17:55:12 +00:00