aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-08-25 07:26:48 +0800
committerRemco Bloemen <remco@wicked.ventures>2018-08-25 07:26:48 +0800
commit11328bd93d498abfcfbfa38ed69db8cb268f12be (patch)
treee51d45ed16fc07960b4a86f7d1d3f043148be2a4 /packages/contracts
parentcd5e9a51159a985508dc6223e3adb826a822e73f (diff)
downloaddexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar.gz
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar.bz2
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar.lz
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar.xz
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.tar.zst
dexon-sol-tools-11328bd93d498abfcfbfa38ed69db8cb268f12be.zip
Skip self-transfers
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/2.0.0/protocol/Exchange/MixinAssetProxyDispatcher.sol2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/MixinAssetProxyDispatcher.sol b/packages/contracts/src/2.0.0/protocol/Exchange/MixinAssetProxyDispatcher.sol
index e9f882194..80475e6e3 100644
--- a/packages/contracts/src/2.0.0/protocol/Exchange/MixinAssetProxyDispatcher.sol
+++ b/packages/contracts/src/2.0.0/protocol/Exchange/MixinAssetProxyDispatcher.sol
@@ -83,7 +83,7 @@ contract MixinAssetProxyDispatcher is
internal
{
// Do nothing if no amount should be transferred.
- if (amount > 0) {
+ if (amount > 0 && from != to) {
// Ensure assetData length is valid
require(
assetData.length > 3,