Skip to content

Commit 491d08d

Browse files
authored
Merge pull request #136 from curvefi/feat/stablechain_router
add router for stablechain
2 parents 6e2fa1c + 58ea375 commit 491d08d

File tree

4 files changed

+590
-1
lines changed

4 files changed

+590
-1
lines changed
Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
[
2+
{
3+
"name": "Exchange",
4+
"inputs": [
5+
{
6+
"name": "sender",
7+
"type": "address",
8+
"indexed": true
9+
},
10+
{
11+
"name": "receiver",
12+
"type": "address",
13+
"indexed": true
14+
},
15+
{
16+
"name": "route",
17+
"type": "address[11]",
18+
"indexed": false
19+
},
20+
{
21+
"name": "swap_params",
22+
"type": "uint256[4][5]",
23+
"indexed": false
24+
},
25+
{
26+
"name": "in_amount",
27+
"type": "uint256",
28+
"indexed": false
29+
},
30+
{
31+
"name": "out_amount",
32+
"type": "uint256",
33+
"indexed": false
34+
}
35+
],
36+
"anonymous": false,
37+
"type": "event"
38+
},
39+
{
40+
"stateMutability": "payable",
41+
"type": "fallback"
42+
},
43+
{
44+
"stateMutability": "nonpayable",
45+
"type": "constructor",
46+
"inputs": [
47+
{
48+
"name": "_weth",
49+
"type": "address"
50+
},
51+
{
52+
"name": "_eth",
53+
"type": "address"
54+
}
55+
],
56+
"outputs": []
57+
},
58+
{
59+
"stateMutability": "payable",
60+
"type": "function",
61+
"name": "exchange",
62+
"inputs": [
63+
{
64+
"name": "_route",
65+
"type": "address[11]"
66+
},
67+
{
68+
"name": "_swap_params",
69+
"type": "uint256[4][5]"
70+
},
71+
{
72+
"name": "_amount",
73+
"type": "uint256"
74+
},
75+
{
76+
"name": "_min_dy",
77+
"type": "uint256"
78+
}
79+
],
80+
"outputs": [
81+
{
82+
"name": "",
83+
"type": "uint256"
84+
}
85+
]
86+
},
87+
{
88+
"stateMutability": "payable",
89+
"type": "function",
90+
"name": "exchange",
91+
"inputs": [
92+
{
93+
"name": "_route",
94+
"type": "address[11]"
95+
},
96+
{
97+
"name": "_swap_params",
98+
"type": "uint256[4][5]"
99+
},
100+
{
101+
"name": "_amount",
102+
"type": "uint256"
103+
},
104+
{
105+
"name": "_min_dy",
106+
"type": "uint256"
107+
},
108+
{
109+
"name": "_receiver",
110+
"type": "address"
111+
}
112+
],
113+
"outputs": [
114+
{
115+
"name": "",
116+
"type": "uint256"
117+
}
118+
]
119+
},
120+
{
121+
"stateMutability": "view",
122+
"type": "function",
123+
"name": "get_dy",
124+
"inputs": [
125+
{
126+
"name": "_route",
127+
"type": "address[11]"
128+
},
129+
{
130+
"name": "_swap_params",
131+
"type": "uint256[4][5]"
132+
},
133+
{
134+
"name": "_amount",
135+
"type": "uint256"
136+
}
137+
],
138+
"outputs": [
139+
{
140+
"name": "",
141+
"type": "uint256"
142+
}
143+
]
144+
},
145+
{
146+
"stateMutability": "view",
147+
"type": "function",
148+
"name": "get_dx",
149+
"inputs": [
150+
{
151+
"name": "_route",
152+
"type": "address[11]"
153+
},
154+
{
155+
"name": "_swap_params",
156+
"type": "uint256[4][5]"
157+
},
158+
{
159+
"name": "_out_amount",
160+
"type": "uint256"
161+
}
162+
],
163+
"outputs": [
164+
{
165+
"name": "",
166+
"type": "uint256"
167+
}
168+
]
169+
},
170+
{
171+
"stateMutability": "view",
172+
"type": "function",
173+
"name": "get_dx",
174+
"inputs": [
175+
{
176+
"name": "_route",
177+
"type": "address[11]"
178+
},
179+
{
180+
"name": "_swap_params",
181+
"type": "uint256[4][5]"
182+
},
183+
{
184+
"name": "_out_amount",
185+
"type": "uint256"
186+
},
187+
{
188+
"name": "_base_pools",
189+
"type": "address[5]"
190+
}
191+
],
192+
"outputs": [
193+
{
194+
"name": "",
195+
"type": "uint256"
196+
}
197+
]
198+
},
199+
{
200+
"stateMutability": "view",
201+
"type": "function",
202+
"name": "version",
203+
"inputs": [],
204+
"outputs": [
205+
{
206+
"name": "",
207+
"type": "string"
208+
}
209+
]
210+
}
211+
]

0 commit comments

Comments
 (0)