aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-18 23:24:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-18 23:24:54 +0800
commit946978e454a93b9642a9ed261229ea749e71fd2f (patch)
tree90345ddc5fd796fa34a7d5c08cd10dc94f8565a2 /src/0x.ts
parent40a0d345b5fc00d36928387cd558133358624f12 (diff)
downloaddexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.gz
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.bz2
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.lz
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.xz
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.zst
dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.zip
Add explanatory comment
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 37e25eb0f..70d0c7acf 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -315,6 +315,12 @@ export class ZeroEx {
});
return txReceiptPromise;
}
+ /*
+ * `TokenWrapper` needs a token transfer proxy address. `TokenTransferProxy` address is fetched from
+ * an `ExchnageWrapper`. `ExchangeWrapper` needs `TokenWrapper` to validate orders. Cycle.
+ * In order to break this - we create this function here and pass it as a parameter to the `TokenWrapper`
+ * and `ProxyWrapper`.
+ */
private async _getTokenTransferProxyAddressAsync(): Promise<string> {
const tokenTransferProxyAddress = await (this.exchange as any)._getTokenTransferProxyAddressAsync();
return tokenTransferProxyAddress;