diff --git a/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java b/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java index 79ceee74e..2e101bb50 100644 --- a/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java +++ b/core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java @@ -149,7 +149,7 @@ public void xTokenFallback(String _from, BigInteger _value, byte[] _data) { if (params.get("address") != null) { to = params.get("address").asString(); } - deposit(token, NetworkAddress.valueOf(to), _value); + deposit(token, NetworkAddress.valueOf(to, NATIVE_NID), _value); } else { // If no supported method was sent, revert the transaction Context.revert(100, TAG + ": Unsupported method supplied");