From d42b953c51e66948d7a6563042f7a521ee2d557a Mon Sep 17 00:00:00 2001 From: David <104078303+davidtaikocha@users.noreply.github.com> Date: Wed, 14 Dec 2022 06:07:39 +0800 Subject: [PATCH] fix(protocol): fix `TokenVault.sendERC20` (#420) --- packages/protocol/contracts/bridge/TokenVault.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protocol/contracts/bridge/TokenVault.sol b/packages/protocol/contracts/bridge/TokenVault.sol index ede396b2181..3c74b349d02 100644 --- a/packages/protocol/contracts/bridge/TokenVault.sol +++ b/packages/protocol/contracts/bridge/TokenVault.sol @@ -220,7 +220,7 @@ contract TokenVault is EssentialContract { message.gasLimit = gasLimit; message.processingFee = processingFee; - message.depositValue = msg.value; + message.depositValue = msg.value - processingFee; message.refundAddress = refundAddress; message.memo = memo;