tx · CTq35vSZKDMqLcV5i3U1b6gv6P5kYihQwbCmifhqbqW1 3NB8EK63rzHfJzv6tQaHgbaUotzTUd6NtVw: -0.01400000 Waves 2023.01.24 14:02 [2418957] smart account 3NB8EK63rzHfJzv6tQaHgbaUotzTUd6NtVw > SELF 0.00000000 Waves
{ "type": 13, "id": "CTq35vSZKDMqLcV5i3U1b6gv6P5kYihQwbCmifhqbqW1", "fee": 1400000, "feeAssetId": null, "timestamp": 1674558155956, "version": 2, "chainId": 84, "sender": "3NB8EK63rzHfJzv6tQaHgbaUotzTUd6NtVw", "senderPublicKey": "MyikFpSXjC2zCj7sX9V9t8P9qGxTG7MM37abMRQ1DEJ", "proofs": [ "2rwwCYRsAV6bRoJAMjvUpSNYpd9qZBp6hjhSbbneuwU95eEDtFh3XukMZJMZsRBHJygUkNSJ8Y4jkNkKHizy5F3W", "4DKN6p6ojCtEKAAt2ooTN2ELfiN4mR1JmqBZWXoXnJfKjajRU8QNTUL1PuwK5AUJEjSBQPhhksBxLyUuZDMSNRwP" ], "script": "base64:BgIQCAISCAoGGBgRERgBEgASACYAB2tBY3RpdmUCBmFjdGl2ZQAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1Bvb2xJbk9yYWNsZQIFcG9vbF8ADmtVc2VyU3dvcEluR292AgxfU1dPUF9hbW91bnQACmtEaXNjb3VudHMCCWRpc2NvdW50cwAPa0Rpc2NvdW50VmFsdWVzAg9kaXNjb3VudF92YWx1ZXMAC2tSb3V0aW5nRmVlAgtyb3V0aW5nX2ZlZQANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfMwAQa01vbmV5Qm94QWRkcmVzcwIRbW9uZXlfYm94X2FkZHJlc3MAC2tHb3ZBZGRyZXNzAhJnb3Zlcm5hbmNlX2FkZHJlc3MABGtGZWUCCmNvbW1pc3Npb24AEmtNdWx0eUFzc2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AnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIEByRtYXRjaDAFAnR4BRNtdWx0aVNpZ25lZEJ5QWRtaW5zEcBatg==", "height": 2418957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2qnG5gCc7DN6muJ7x1D8faAS28mj4ocDj6vj2v9VPCTe Next: 9oE63DEZFKbzaqkDHPiFxXY5Hkde2Qbt3i6ZpBL7wTsc Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "shutdown_cause" | |
7 | 7 | ||
8 | 8 | let c = "pool_" | |
9 | 9 | ||
10 | 10 | let d = "_SWOP_amount" | |
11 | 11 | ||
12 | 12 | let e = "discounts" | |
13 | 13 | ||
14 | 14 | let f = "discount_values" | |
15 | 15 | ||
16 | 16 | let g = "routing_fee" | |
17 | 17 | ||
18 | 18 | let h = "admin_pub_1" | |
19 | 19 | ||
20 | 20 | let i = "admin_pub_2" | |
21 | 21 | ||
22 | 22 | let j = "admin_pub_3" | |
23 | 23 | ||
24 | 24 | let k = "money_box_address" | |
25 | 25 | ||
26 | 26 | let l = "governance_address" | |
27 | 27 | ||
28 | 28 | let m = "commission" | |
29 | 29 | ||
30 | 30 | let n = "_balance" | |
31 | 31 | ||
32 | 32 | let o = 8 | |
33 | 33 | ||
34 | 34 | let p = 100000000 | |
35 | 35 | ||
36 | 36 | let q = 10000000000000000 | |
37 | 37 | ||
38 | 38 | let r = 50 | |
39 | 39 | ||
40 | 40 | let s = 2 | |
41 | 41 | ||
42 | 42 | let t = 4600000000000000 | |
43 | 43 | ||
44 | 44 | let u = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
45 | 45 | ||
46 | 46 | func v (w) = { | |
47 | 47 | let x = getString(u, w) | |
48 | 48 | if ($isInstanceOf(x, "String")) | |
49 | 49 | then { | |
50 | 50 | let y = x | |
51 | 51 | fromBase58String(y) | |
52 | 52 | } | |
53 | 53 | else { | |
54 | 54 | let z = x | |
55 | 55 | throw((w + "is empty")) | |
56 | 56 | } | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | let A = v(h) | |
61 | 61 | ||
62 | 62 | let B = v(i) | |
63 | 63 | ||
64 | 64 | let C = v(j) | |
65 | 65 | ||
66 | 66 | let D = Address(v(k)) | |
67 | 67 | ||
68 | 68 | let E = Address(v(l)) | |
69 | 69 | ||
70 | 70 | let F = valueOrElse(getBoolean(this, a), true) | |
71 | 71 | ||
72 | 72 | let G = valueOrErrorMessage(getInteger(u, g), "routing_fee is empty") | |
73 | 73 | ||
74 | 74 | let H = 1000000 | |
75 | 75 | ||
76 | 76 | func I () = if (F) | |
77 | 77 | then unit | |
78 | 78 | else throw("DApp is inactive at this moment") | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func J (K) = if (containsElement([A, B, C], K.callerPublicKey)) | |
82 | 82 | then unit | |
83 | 83 | else throw("Only admin can call this function") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func L () = throw("DApp is already active") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func M (N) = [BooleanEntry(a, false), StringEntry(b, N)] | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func O (P,Q) = ((fraction(q, P, Q) + fraction(q, Q, P)) / 2) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func R (P,Q) = { | |
96 | 96 | let S = O(P, Q) | |
97 | 97 | (fraction((P + Q), q, pow(S, o, r, s, o, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(P), toBigInt(Q), toBigInt(p)), 0, toBigInt(5), 1, (o / 2), DOWN)), pow((S - t), o, r, s, o, DOWN), p))) | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func T (U) = { | |
102 | 102 | let V = valueOrElse(getInteger(E, (toString(U) + d)), 0) | |
103 | 103 | let W = split(getStringValue(u, f), ",") | |
104 | 104 | let X = split(getStringValue(u, e), ",") | |
105 | 105 | if (if ((V >= parseIntValue(W[0]))) | |
106 | 106 | then (parseIntValue(W[1]) > V) | |
107 | 107 | else false) | |
108 | 108 | then (H - parseIntValue(X[0])) | |
109 | 109 | else if (if ((V >= parseIntValue(W[1]))) | |
110 | 110 | then (parseIntValue(W[2]) > V) | |
111 | 111 | else false) | |
112 | 112 | then (H - parseIntValue(X[1])) | |
113 | 113 | else if (if ((V >= parseIntValue(W[2]))) | |
114 | 114 | then (parseIntValue(W[3]) > V) | |
115 | 115 | else false) | |
116 | 116 | then (H - parseIntValue(X[2])) | |
117 | 117 | else if (if ((V >= parseIntValue(W[3]))) | |
118 | 118 | then (parseIntValue(W[4]) > V) | |
119 | 119 | else false) | |
120 | 120 | then (H - parseIntValue(X[3])) | |
121 | 121 | else if ((V >= parseIntValue(W[4]))) | |
122 | 122 | then (H - parseIntValue(X[4])) | |
123 | 123 | else H | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func Y (Z,aa,ab,ac,ad,ae,af,ag) = { | |
128 | 128 | let ah = T(Z) | |
129 | 129 | let ai = if ((ad[0] == "curveMultyFlat")) | |
130 | 130 | then { | |
131 | 131 | let aj = { | |
132 | 132 | let ak = invoke(addressFromStringValue(ac[0]), "getDy", [ae[0], ae[1], aa, toString(Z)], nil) | |
133 | 133 | if ($isInstanceOf(ak, "(Int, Int)")) | |
134 | 134 | then ak | |
135 | 135 | else throw(($getType(ak) + " couldn't be cast to (Int, Int)")) | |
136 | 136 | } | |
137 | 137 | if ((aj == aj)) | |
138 | 138 | then aj._1 | |
139 | 139 | else throw("Strict value is not equal to itself.") | |
140 | 140 | } | |
141 | 141 | else { | |
142 | 142 | let al = getIntegerValue(addressFromStringValue(ac[0]), ae[0]) | |
143 | 143 | let am = getIntegerValue(addressFromStringValue(ac[0]), ae[1]) | |
144 | 144 | if ((ad[0] == "cpmm")) | |
145 | 145 | then { | |
146 | 146 | let an = getIntegerValue(addressFromStringValue(ac[0]), m) | |
147 | 147 | let ao = fraction(am, aa, (aa + al)) | |
148 | 148 | fraction(ao, (H - fraction(an, ah, H)), H) | |
149 | 149 | } | |
150 | 150 | else if ((ad[0] == "flat")) | |
151 | 151 | then { | |
152 | 152 | let ap = R(al, am) | |
153 | 153 | let aq = ag[0] | |
154 | 154 | let ar = R((al + aa), (am - aq)) | |
155 | 155 | if ((ar >= ap)) | |
156 | 156 | then aq | |
157 | 157 | else throw("Flat contract: invariantNew < invariant") | |
158 | 158 | } | |
159 | 159 | else throw("Incorrect exchange type") | |
160 | 160 | } | |
161 | 161 | let as = if ((ad[1] == "curveMultyFlat")) | |
162 | 162 | then { | |
163 | 163 | let aj = { | |
164 | 164 | let ak = invoke(addressFromStringValue(ac[1]), "getDy", [ae[2], ae[3], ai, toString(Z)], nil) | |
165 | 165 | if ($isInstanceOf(ak, "(Int, Int)")) | |
166 | 166 | then ak | |
167 | 167 | else throw(($getType(ak) + " couldn't be cast to (Int, Int)")) | |
168 | 168 | } | |
169 | 169 | if ((aj == aj)) | |
170 | 170 | then aj._1 | |
171 | 171 | else throw("Strict value is not equal to itself.") | |
172 | 172 | } | |
173 | 173 | else { | |
174 | 174 | let at = getIntegerValue(addressFromStringValue(ac[1]), ae[2]) | |
175 | 175 | let au = getIntegerValue(addressFromStringValue(ac[1]), ae[3]) | |
176 | 176 | if ((ad[1] == "cpmm")) | |
177 | 177 | then { | |
178 | 178 | let av = fraction(au, ai, (ai + at)) | |
179 | 179 | let an = getIntegerValue(addressFromStringValue(ac[1]), m) | |
180 | 180 | fraction(av, (H - fraction(an, ah, H)), H) | |
181 | 181 | } | |
182 | 182 | else if ((ad[1] == "flat")) | |
183 | 183 | then { | |
184 | 184 | let ap = R(at, au) | |
185 | 185 | let aw = ag[1] | |
186 | 186 | let ar = R((at + ai), (au - aw)) | |
187 | 187 | if ((ar >= ap)) | |
188 | 188 | then aw | |
189 | 189 | else throw("Flat contract: invariantNew < invariant") | |
190 | 190 | } | |
191 | 191 | else throw("Incorrect exchange type") | |
192 | 192 | } | |
193 | 193 | (as >= ab) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | @Callable(K) | |
198 | 198 | func routingTrade (ac,ad,af,ag,ae,ab) = valueOrElse(I(), { | |
199 | 199 | let ax = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
200 | 200 | let aa = ax._1 | |
201 | 201 | let ay = ax._2 | |
202 | 202 | if (!(Y(K.caller, aa, ab, ac, ad, ae, af, ag))) | |
203 | 203 | then throw("Check transaction possibilty: declined") | |
204 | 204 | else if (if (!(isDefined(getString(u, (c + ac[0]))))) | |
205 | 205 | then true | |
206 | 206 | else !(isDefined(getString(u, (c + ac[1]))))) | |
207 | 207 | then throw("Pool is not in oracle") | |
208 | 208 | else { | |
209 | 209 | let az = size(ac) | |
210 | 210 | func aA (aB,aC) = { | |
211 | 211 | let aD = aB | |
212 | 212 | let aE = aD._1 | |
213 | 213 | let aF = aD._2 | |
214 | 214 | let aG = aD._3 | |
215 | 215 | let aH = if ((aE == 0)) | |
216 | 216 | then $Tuple2(ay, aa) | |
217 | 217 | else $Tuple2(aG, aF) | |
218 | 218 | let aI = aH._1 | |
219 | 219 | let aJ = aH._2 | |
220 | 220 | if (((if ((aE >= 0)) | |
221 | 221 | then (az > aE) | |
222 | 222 | else false) == true)) | |
223 | 223 | then { | |
224 | 224 | let aK = addressFromStringValue(aC) | |
225 | 225 | let aj = if ((ad[aE] == "cpmm")) | |
226 | 226 | then invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)]) | |
227 | 227 | else if ((ad[aE] == "flat")) | |
228 | 228 | then invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)]) | |
229 | 229 | else if ((ad[aE] == "curveMultyFlat")) | |
230 | 230 | then invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)]) | |
231 | 231 | else throw("Incorrect exchange type") | |
232 | 232 | if ((aj == aj)) | |
233 | 233 | then { | |
234 | 234 | let aL = { | |
235 | 235 | let x = aj | |
236 | 236 | if ($isInstanceOf(x, "List[Any]")) | |
237 | 237 | then { | |
238 | 238 | let aj = x | |
239 | 239 | let aM = $Tuple2(aj[0], aj[1]) | |
240 | 240 | if (if ($isInstanceOf(aM, "(Int, Unit)")) | |
241 | 241 | then true | |
242 | 242 | else $isInstanceOf(aM, "(Int, ByteVector)")) | |
243 | 243 | then { | |
244 | 244 | let aN = aM | |
245 | 245 | $Tuple2(aN._1, aN._2) | |
246 | 246 | } | |
247 | 247 | else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend") | |
248 | 248 | } | |
249 | 249 | else if (if ($isInstanceOf(x, "(Int, Unit)")) | |
250 | 250 | then true | |
251 | 251 | else $isInstanceOf(x, "(Int, ByteVector)")) | |
252 | 252 | then { | |
253 | 253 | let aj = x | |
254 | 254 | $Tuple2(aj._1, aj._2) | |
255 | 255 | } | |
256 | 256 | else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend") | |
257 | 257 | } | |
258 | 258 | let aO = aL._1 | |
259 | 259 | let aP = aL._2 | |
260 | 260 | $Tuple3((aE + 1), aO, aP) | |
261 | 261 | } | |
262 | 262 | else throw("Strict value is not equal to itself.") | |
263 | 263 | } | |
264 | 264 | else aB | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | let aQ = { | |
268 | 268 | let aR = ac | |
269 | 269 | let aS = size(aR) | |
270 | 270 | let aT = $Tuple3(0, 0, base58'') | |
271 | 271 | func aU (aV,aW) = if ((aW >= aS)) | |
272 | 272 | then aV | |
273 | 273 | else aA(aV, aR[aW]) | |
274 | 274 | ||
275 | 275 | func aX (aV,aW) = if ((aW >= aS)) | |
276 | 276 | then aV | |
277 | 277 | else throw("List size exceeds 3") | |
278 | 278 | ||
279 | 279 | aX(aU(aU(aU(aT, 0), 1), 2), 3) | |
280 | 280 | } | |
281 | 281 | let aE = aQ._1 | |
282 | 282 | let aY = aQ._2 | |
283 | 283 | let aP = aQ._3 | |
284 | 284 | let aO = fraction(aY, (H - G), H) | |
285 | 285 | if (if ((aE == az)) | |
286 | 286 | then (aO >= ab) | |
287 | 287 | else false) | |
288 | 288 | then [ScriptTransfer(K.caller, aO, aP), ScriptTransfer(D, (aY - aO), aP)] | |
289 | 289 | else throw("routing != routingSize or amountToRecieve < minAmountToReceive") | |
290 | 290 | } | |
291 | 291 | }) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(K) | |
296 | 296 | func shutdown () = valueOrElse(J(K), if (!(F)) | |
297 | 297 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, b), "the cause wasn't specified"))) | |
298 | 298 | else M("Paused by admin")) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(K) | |
303 | 303 | func activate () = valueOrElse(J(K), if (F) | |
304 | 304 | then L() | |
305 | 305 | else [BooleanEntry(a, true), DeleteEntry(b)]) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Verifier(aZ) | |
309 | 309 | func ba () = { | |
310 | 310 | let bb = { | |
311 | 311 | let bc = if (sigVerify(aZ.bodyBytes, aZ.proofs[0], A)) | |
312 | 312 | then 1 | |
313 | 313 | else 0 | |
314 | 314 | let bd = if (sigVerify(aZ.bodyBytes, aZ.proofs[1], B)) | |
315 | 315 | then 1 | |
316 | 316 | else 0 | |
317 | 317 | let be = if (sigVerify(aZ.bodyBytes, aZ.proofs[2], C)) | |
318 | 318 | then 1 | |
319 | 319 | else 0 | |
320 | 320 | (((bc + bd) + be) >= 2) | |
321 | 321 | } | |
322 | 322 | let x = aZ | |
323 | 323 | bb | |
324 | 324 | } | |
325 | 325 |
github/deemru/w8io/026f985 41.77 ms ◑