-
Notifications
You must be signed in to change notification settings - Fork 0
/
move_usd.json
105 lines (105 loc) · 3.79 KB
/
move_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
101
102
103
104
105
{
"tasks": [
{
"httpTask": {
"url": "https://api.mainnet.aptoslabs.com/v1/accounts/0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa/resource/0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa::swap::TokenPairReserve%3C0x1::aptos_coin::AptosCoin,0x27fafcc4e39daac97556af8a803dbb52bcb03f0821898dc845ac54225b9793eb::move_coin::MoveCoin%3E",
"method": "METHOD_GET"
}
},
{
"cacheTask": {
"cacheItems": [
{
"variableName": "moveAPTReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.reserve_x",
"aggregationMethod": "NONE"
}
}
]
}
},
{
"variableName": "moveReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.reserve_y",
"aggregationMethod": "NONE"
}
}
]
}
}
]
}
},
{
"httpTask": {
"url": "https://api.mainnet.aptoslabs.com/v1/accounts/0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa/resource/0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa::swap::TokenPairReserve%3C0x1::aptos_coin::AptosCoin,0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC%3E",
"method": "METHOD_GET"
}
},
{
"cacheTask": {
"cacheItems": [
{
"variableName": "aptUSDReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.reserve_x",
"aggregationMethod": "NONE"
}
}
]
}
},
{
"variableName": "usdReserve",
"job": {
"tasks": [
{
"jsonParseTask": {
"path": "data.reserve_y",
"aggregationMethod": "NONE"
}
},
{
"multiplyTask": {
"big": "100"
}
}
]
}
}
]
}
},
{
"valueTask": {
"big": "${moveAPTReserve}"
}
},
{
"divideTask": {
"big": "${moveReserve}"
}
},
{
"multiplyTask": {
"big": "${usdReserve}"
}
},
{
"divideTask": {
"big": "${aptUSDReserve}"
}
}
]
}