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

Use denom for amounts #26

Merged
merged 3 commits into from
May 19, 2023
Merged

Use denom for amounts #26

merged 3 commits into from
May 19, 2023

Conversation

ethanfrey
Copy link
Collaborator

Closes #22

Update both the docs as well as the current code stubs.

Also rename remaining "lein" -> "lien"

@ethanfrey ethanfrey force-pushed the 22-use-denom-for-amounts branch from 5e1d6e7 to 477ca18 Compare May 18, 2023 11:11
Copy link
Collaborator

@maurolacy maurolacy left a comment

Choose a reason for hiding this comment

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

LGTM.

cfg.stake_denom,
amount.denom,
StakingError::WrongDenom(cfg.stake_denom)
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍🏼much safer.

@ethanfrey ethanfrey merged commit 1c2fe45 into main May 19, 2023
@ethanfrey ethanfrey deleted the 22-use-denom-for-amounts branch May 19, 2023 10:54
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.

Always use denom with currency amounts
2 participants