Skip to content

Commit

Permalink
Use correct decimals number on ERC20 history processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Jul 1, 2019
1 parent d88bc19 commit b446afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm2src/coins/eth.rs
Expand Up @@ -1138,7 +1138,7 @@ impl EthCoin {
};

let amount = U256::from(event.data.0.as_slice());
let total_amount: f64 = display_u256_with_decimal_point(amount, 18).parse().unwrap();
let total_amount: f64 = display_u256_with_decimal_point(amount, self.decimals).parse().unwrap();
let mut received_by_me = 0.;
let mut spent_by_me = 0.;

Expand Down

0 comments on commit b446afc

Please sign in to comment.