-
Notifications
You must be signed in to change notification settings - Fork 5
/
models.ts
36 lines (33 loc) · 675 Bytes
/
models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export interface Token {
symbol: string;
pair: string;
name: string;
decimals: string;
address: string;
logoURI: string;
price: number;
balance: number;
allowance: number;
}
export interface TradeParam {
id: number;
symbol: string;
quote: string;
chain: Chain;
type: "BUY" | "SELL" | "STOPSELL" | "STOPBUY";
price: number;
amount: number;
slippage?: 1;
recurring?: boolean;
force?: boolean;
status: "PENDING" | "EXECUTING" | "EXECUTED";
}
export enum Chain {
"Ethereum" = 1,
"Polygon" = 137,
"BinanceSmartChain" = 56,
}
export const baseCurrency = {
name: `USDC`,
address: `0x2791bca1f2de4661ed88a30c99a7a9449aa84174`,
};