mirror of
https://github.com/tornadocash/tornado-pool-relayer
synced 2024-02-02 15:04:09 +01:00
calculate fee percent
This commit is contained in:
parent
767c87b4d2
commit
5be9b8ad72
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pool-relayer",
|
"name": "pool-relayer",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"description": "Relayer for Tornado.cash Nova privacy solution. https://tornado.cash",
|
"description": "Relayer for Tornado.cash Nova privacy solution. https://tornado.cash",
|
||||||
"author": "tornado.cash",
|
"author": "tornado.cash",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -124,7 +124,8 @@ export class TransactionProcessor extends BaseProcessor<Transaction> {
|
|||||||
if (amount.isNegative()) {
|
if (amount.isNegative()) {
|
||||||
const oneEther = getToIntegerMultiplier();
|
const oneEther = getToIntegerMultiplier();
|
||||||
|
|
||||||
return amount.mul(toWei(serviceFee.withdrawal)).div(oneEther);
|
const share = Number(serviceFee.withdrawal) / 100;
|
||||||
|
return amount.mul(toWei(share.toString())).div(oneEther);
|
||||||
}
|
}
|
||||||
|
|
||||||
return serviceFee.transfer;
|
return serviceFee.transfer;
|
||||||
|
Loading…
Reference in New Issue
Block a user