Skip to content

Commit 804bf60

Browse files
committed
fix fee calculation bug
1 parent bebbae5 commit 804bf60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn App() -> Element {
142142
}else{
143143
wrapper.fees.out_bps
144144
};
145-
let mut payed_fee = curr_amount.get_absolute() * U256::from(payed_fee) / U256::from(1000);
145+
let mut payed_fee = curr_amount.get_absolute() * U256::from(payed_fee) / U256::from(10000);
146146
if from_sel.decimals > to_sel.decimals{
147147
payed_fee /= U256::from(10^(from_sel.decimals - to_sel.decimals))
148148
}else if from_sel.decimals < to_sel.decimals{

0 commit comments

Comments
 (0)