aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/utils.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:26:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:26:53 +0800
commit10fb6061ccf66bd117ba13ea2ed1cfe7373096d0 (patch)
treeeec62a55708805e0e714033700e6410b909f1849 /packages/website/ts/utils/utils.ts
parent223df8006a30a95db544a2af080224a4d9d2d474 (diff)
downloaddexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.gz
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.bz2
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.lz
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.xz
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.tar.zst
dexon-sol-tools-10fb6061ccf66bd117ba13ea2ed1cfe7373096d0.zip
Introduce makerToken and takerToken fields for unsigned token metadata
Diffstat (limited to 'packages/website/ts/utils/utils.ts')
-rw-r--r--packages/website/ts/utils/utils.ts28
1 files changed, 12 insertions, 16 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index cc0689868..447a92fec 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -75,27 +75,23 @@ export const utils = {
const makerToken = tokenByAddress[sideToAssetToken[Side.Deposit].address];
const takerToken = tokenByAddress[sideToAssetToken[Side.Receive].address];
const order = {
+ maker: orderMakerAddress,
+ taker: orderTakerAddress,
makerFee: makerFee.toString(),
takerFee: takerFee.toString(),
makerTokenAmount: sideToAssetToken[Side.Deposit].amount.toString(),
takerTokenAmount: sideToAssetToken[Side.Receive].amount.toString(),
- maker: {
- address: orderMakerAddress,
- token: {
- name: makerToken.name,
- symbol: makerToken.symbol,
- decimals: makerToken.decimals,
- address: makerToken.address,
- },
+ makerTokenAddress: makerToken.address,
+ takerTokenAddress: takerToken.address,
+ makerToken: {
+ name: makerToken.name,
+ symbol: makerToken.symbol,
+ decimals: makerToken.decimals,
},
- taker: {
- address: orderTakerAddress,
- token: {
- name: takerToken.name,
- symbol: takerToken.symbol,
- decimals: takerToken.decimals,
- address: takerToken.address,
- },
+ takerToken: {
+ name: takerToken.name,
+ symbol: takerToken.symbol,
+ decimals: takerToken.decimals,
},
expirationUnixTimestampSec: expirationUnixTimestampSec.toString(),
feeRecipient,