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

refactor(common): Remove unused AssetPair methods #902

Merged
merged 3 commits into from
Sep 14, 2022

Conversation

NibiruHeisenberg
Copy link
Contributor

Description

  • Removes unused AssetPair methods
  • Rename Denom and Pair global variables

Purpose

Increase usability of common.AssetPair.

@NibiruHeisenberg NibiruHeisenberg requested a review from a team as a code owner September 14, 2022 05:26
@NibiruHeisenberg NibiruHeisenberg self-assigned this Sep 14, 2022
@NibiruHeisenberg NibiruHeisenberg added this to the Testnet V1 milestone Sep 14, 2022
@NibiruHeisenberg NibiruHeisenberg enabled auto-merge (squash) September 14, 2022 07:00
func (pair AssetPair) IsSortedOrder() bool {
return pair.SortedName() == pair.String()
}

func (pair AssetPair) Inverse() AssetPair {
Copy link
Contributor

Choose a reason for hiding this comment

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

Also I have mixed feelings on the inverse, looks like is not really useful in the end.

@NibiruHeisenberg NibiruHeisenberg merged commit 6e9a0b1 into master Sep 14, 2022
@NibiruHeisenberg NibiruHeisenberg deleted the refactor/common-assets branch September 14, 2022 10:18
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