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

Burn 20% of fees in shibuya (same as shiden) #516

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

akru
Copy link
Contributor

@akru akru commented Nov 22, 2021

Pull Request Summary

Describe what changes this pull request makes to the repository

Check list

  • contains breaking changes
  • adds new feature
  • modifies existing feature (bug fix or improvements)
  • updated spec version
  • relies on other tasks
  • documentation changes
  • tests and/or benchmarks are included
  • changed API client type definition or chain metadata

This pull request makes the following changes:

Adds

  • (ex: Add feature A)

Fixes

  • (ex: Fix validation function)

Changes

  • (ex: Change document B)

To-dos

*Feel free to remove this section if it's not applicable

  • (ex: add user list)

@akru akru requested a review from Dinonard November 22, 2021 05:23
@akru akru force-pushed the feature/shibuya-burn-fees branch from f3fcd8f to 86babdc Compare November 22, 2021 05:36
Copy link
Member

@Dinonard Dinonard left a comment

Choose a reason for hiding this comment

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

LGTM


// burn part of fees
let burned = Balances::burn(to_burn.peek());
assert!(
Copy link
Member

Choose a reason for hiding this comment

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

can you use error instead of assert?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately we can’t, but we can escape of using assert here

@akru akru force-pushed the feature/shibuya-burn-fees branch from 86babdc to 1cd329c Compare November 23, 2021 15:00
@akru akru merged commit 8324d79 into development/shiden Nov 23, 2021
@akru akru deleted the feature/shibuya-burn-fees branch November 23, 2021 15:01
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.

3 participants