Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Correct token amount
Browse files Browse the repository at this point in the history
  • Loading branch information
kikakkz committed Dec 8, 2023
1 parent 67ebcf0 commit 7ada740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundation/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl Foundation {
Ok(Some(balance)) => balance,
_ => Amount::ZERO,
};
let winner_amount = Amount::from_tokens(
let winner_amount = Amount::from_atto(
reward_amount
.saturating_mul(100 - voter_reward_percent as u128)
.saturating_div(Amount::from_atto(100)),
Expand Down Expand Up @@ -307,7 +307,7 @@ impl Foundation {
let percent = balance
.saturating_mul(100 as u128)
.saturating_div(user_balance_total);
let balance = balance.saturating_add(Amount::from_tokens(
let balance = balance.saturating_add(Amount::from_atto(
voter_amount
.saturating_div(Amount::from_atto(100))
.saturating_mul(percent),
Expand Down

0 comments on commit 7ada740

Please sign in to comment.