Skip to content

Commit f78d36d

Browse files
committed
comments
Signed-off-by: bennett <[email protected]>
1 parent 74398c6 commit f78d36d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/hyperliquid/HyperliquidExecutor.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class HyperliquidExecutor {
107107
chainId: this.chainId,
108108
method: "submitLimitOrderFromBot",
109109
args: [finalToken.toNative(), price, size, cloid],
110-
message: "Submitted limit order to Hypercore.",
110+
message: `Submitted limit order of ${l2TokenInfo.symbol} -> ${finalTokenInfo.symbol} to Hypercore.`,
111111
mrkdwn,
112112
nonMulticall: true, // Cannot multicall this since it is a permissioned action.
113113
});
@@ -148,9 +148,10 @@ export class HyperliquidExecutor {
148148

149149
private _getTokenInfo(token: EvmAddress, chainId: number) {
150150
const tokenInfo = getTokenInfo(token, chainId);
151-
if (tokenInfo.symbol === "USDT") {
152-
tokenInfo.symbol = "USDT0";
153-
}
154-
return tokenInfo;
151+
const updatedSymbol = tokenInfo.symbol === "USDT" ? "USDT0" : tokenInfo.symbol;
152+
return {
153+
...tokenInfo,
154+
symbol: updatedSymbol,
155+
};
155156
}
156157
}

0 commit comments

Comments
 (0)