-
Notifications
You must be signed in to change notification settings - Fork 0
/
moomoo_usd.json
100 lines (100 loc) · 3.82 KB
/
moomoo_usd.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"tasks": [
{
"httpTask": {
"url": "https://api.mainnet.aptoslabs.com/v1/accounts/0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8/resource/0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::LiquidityPool%3C0xc5fbbcc4637aeebb4e732767abee8a21f2b0776f73b73e16ce13e7d31d6700da::MOOMOO::MOOMOO,0x1::aptos_coin::AptosCoin,0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated%3E",
"method": "METHOD_GET"
}
},
{
"cacheTask": {
"cacheItems": [
{
"variableName": "moomooReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.coin_x_reserve.value",
"aggregationMethod": "NONE"
}
}
]
}
},
{
"variableName": "aptMoomooReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.coin_y_reserve.value",
"aggregationMethod": "NONE"
}
}
]
}
}
]
}
},
{
"httpTask": {
"url": "https://api.mainnet.aptoslabs.com/v1/accounts/0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8/resource/0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::LiquidityPool%3C0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC,0x1::aptos_coin::AptosCoin,0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated%3E",
"method": "METHOD_GET"
}
},
{
"cacheTask": {
"cacheItems": [
{
"variableName": "usdcReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.coin_x_reserve.value",
"aggregationMethod": "NONE"
}
}
]
}
},
{
"variableName": "aptUSDCReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.coin_y_reserve.value",
"aggregationMethod": "NONE"
}
}
]
}
}
]
}
},
{
"valueTask": {
"big": "${aptMoomooReserve}"
}
},
{
"divideTask": {
"big": "${moomooReserve}"
}
},
{
"multiplyTask": {
"big": "${usdcReserve}"
}
},
{
"divideTask": {
"big": "${aptUSDCReserve}"
}
}
]
}