quantadex / distributed_quanta_bridge

The distributed version of the quanta bridge
1 stars 0 forks source link

Withdrawal fee. #54

Closed quocble closed 5 years ago

quocble commented 5 years ago

Each coin will have a new configuration called:

BtcWithdrawMin: 0.00075
BtcWithdrawFee: 0.00025
BchWithdrawMin: 0.0015
BchWithdrawFee: 0.0005
EthWithdrawMin: 0.015
EthWithdrawFee: 0.005
LtcWithdrawFee: 0.0015
LtcWithdrawFee: 0.0005

If withdrawal amount is below the min, bounce it back with reason: too_small When you're withdrawing:

Input -> output 1 - the user (amount minus fee) output 2 - remaining amount

input = output1 + output2 (included withdraw fee) + tx fee

remaining amount contains the withdraw fee, implicitly.

quocble commented 5 years ago

marking as done.