mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-06 08:15:41 -04:00
add refund mechanism for token withdrawal
This commit is contained in:
parent
c7f0ca9dfa
commit
a77c04ea5a
6 changed files with 17 additions and 14 deletions
2
cli.js
2
cli.js
|
@ -101,6 +101,7 @@ async function withdrawErc20(note, receiver, relayer) {
|
|||
receiver: bigInt(receiver),
|
||||
relayer: bigInt(relayer),
|
||||
fee: bigInt(web3.utils.toWei('0.01')),
|
||||
refund: bigInt(0),
|
||||
|
||||
// private
|
||||
nullifier: deposit.nullifier,
|
||||
|
@ -175,6 +176,7 @@ async function withdraw(note, receiver) {
|
|||
receiver: bigInt(receiver),
|
||||
relayer: bigInt(0),
|
||||
fee: bigInt(0),
|
||||
refund: bigInt(0),
|
||||
|
||||
// Private snark inputs
|
||||
nullifier: deposit.nullifier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue