tx · 5zrpFvNCd7yqrNN11Jwn8mjWKqdu2QRLug7d8fV8P3iL

3MqDf9VgoL9eqrCPx8F74Au6xBpvdTm9UP8:  -0.01400000 Waves

2022.09.13 19:20 [2227557] smart account 3MqDf9VgoL9eqrCPx8F74Au6xBpvdTm9UP8 > SELF 0.00000000 Waves

{ "type": 13, "id": "5zrpFvNCd7yqrNN11Jwn8mjWKqdu2QRLug7d8fV8P3iL", "fee": 1400000, "feeAssetId": null, "timestamp": 1663085978897, "version": 2, "chainId": 84, "sender": "3MqDf9VgoL9eqrCPx8F74Au6xBpvdTm9UP8", "senderPublicKey": "4ja2PX5eqM576zv9KGzu5Qe7M92Z3jbuSmkLPdGjK4ue", "proofs": [ "3PSyqJi8i7KtVktKR9nNZiEcj2Xx2aCmr12vi9m4WxjgWtf6jQSCvF9YD8iDMHsxNM3f7zEdJQW9bxkJapFXnVMd", "4TvbFyJDQXqneAzp1NqT5cz3qtGnDKjA9UD55y9XoQSQgYdSG463YfEBGJMjNqztfSupTsubfAy23eMN68vtUhMT" ], "script": "base64:BgIQCAISCAoGGBgRERgBEgASACYAB2tBY3RpdmUCBmFjdGl2ZQAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1Bvb2xJbk9yYWNsZQIFcG9vbF8ADmtVc2VyU3dvcEluR292AgxfU1dPUF9hbW91bnQACmtEaXNjb3VudHMCCWRpc2NvdW50cwAPa0Rpc2NvdW50VmFsdWVzAg9kaXNjb3VudF92YWx1ZXMAC2tSb3V0aW5nRmVlAgtyb3V0aW5nX2ZlZQANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfMwAQa01vbmV5Qm94QWRkcmVzcwIRbW9uZXlfYm94X2FkZHJlc3MAC2tHb3ZBZGRyZXNzAhJnb3Zlcm5hbmNlX2FkZHJlc3MABGtGZWUCCmNvbW1pc3Npb24AEmtNdWx0e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nbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgQHJG1hdGNoMAUCdHgFE211bHRpU2lnbmVkQnlBZG1pbnN/X8i/", "height": 2227557, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vFKdhmGUxSsokoE4VFujj8kfTtwSrSmEZdJqiE8QooB Next: 7ey2rcdTfprTrGfjTJP2jW7dAySqH8iXTzyQKFe1nCFn Diff:
OldNewDifferences
225225 if ((ad[aE] == "cpmm"))
226226 then {
227227 let aj = {
228- let ak = invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)])
229- if ($isInstanceOf(ak, "List[Any]"))
228+ let ak = invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)])
229+ if ($isInstanceOf(ak, "(Int, Int)"))
230230 then ak
231- else throw(($getType(invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]"))
231+ else throw(($getType(invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to (Int, Int)"))
232232 }
233233 if ((aj == aj))
234- then $Tuple3((aE + 1), aj[0], aj[1])
234+ then $Tuple2(aj._1, aj._2)
235235 else throw("Strict value is not equal to itself.")
236236 }
237237 else if ((ad[aE] == "flat"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "active"
55
66 let b = "shutdown_cause"
77
88 let c = "pool_"
99
1010 let d = "_SWOP_amount"
1111
1212 let e = "discounts"
1313
1414 let f = "discount_values"
1515
1616 let g = "routing_fee"
1717
1818 let h = "admin_pub_1"
1919
2020 let i = "admin_pub_2"
2121
2222 let j = "admin_pub_3"
2323
2424 let k = "money_box_address"
2525
2626 let l = "governance_address"
2727
2828 let m = "commission"
2929
3030 let n = "_balance"
3131
3232 let o = 8
3333
3434 let p = 100000000
3535
3636 let q = 10000000000000000
3737
3838 let r = 50
3939
4040 let s = 2
4141
4242 let t = 4600000000000000
4343
4444 let u = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
4545
4646 func v (w) = {
4747 let x = getString(u, w)
4848 if ($isInstanceOf(x, "String"))
4949 then {
5050 let y = x
5151 fromBase58String(y)
5252 }
5353 else {
5454 let z = x
5555 throw((w + "is empty"))
5656 }
5757 }
5858
5959
6060 let A = v(h)
6161
6262 let B = v(i)
6363
6464 let C = v(j)
6565
6666 let D = Address(v(k))
6767
6868 let E = Address(v(l))
6969
7070 let F = valueOrElse(getBoolean(this, a), true)
7171
7272 let G = valueOrErrorMessage(getInteger(u, g), "routing_fee is empty")
7373
7474 let H = 1000000
7575
7676 func I () = if (F)
7777 then unit
7878 else throw("DApp is inactive at this moment")
7979
8080
8181 func J (K) = if (containsElement([A, B, C], K.callerPublicKey))
8282 then unit
8383 else throw("Only admin can call this function")
8484
8585
8686 func L () = throw("DApp is already active")
8787
8888
8989 func M (N) = [BooleanEntry(a, false), StringEntry(b, N)]
9090
9191
9292 func O (P,Q) = ((fraction(q, P, Q) + fraction(q, Q, P)) / 2)
9393
9494
9595 func R (P,Q) = {
9696 let S = O(P, Q)
9797 (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)))
9898 }
9999
100100
101101 func T (U) = {
102102 let V = valueOrElse(getInteger(E, (toString(U) + d)), 0)
103103 let W = split(getStringValue(u, f), ",")
104104 let X = split(getStringValue(u, e), ",")
105105 if (if ((V >= parseIntValue(W[0])))
106106 then (parseIntValue(W[1]) > V)
107107 else false)
108108 then (H - parseIntValue(X[0]))
109109 else if (if ((V >= parseIntValue(W[1])))
110110 then (parseIntValue(W[2]) > V)
111111 else false)
112112 then (H - parseIntValue(X[1]))
113113 else if (if ((V >= parseIntValue(W[2])))
114114 then (parseIntValue(W[3]) > V)
115115 else false)
116116 then (H - parseIntValue(X[2]))
117117 else if (if ((V >= parseIntValue(W[3])))
118118 then (parseIntValue(W[4]) > V)
119119 else false)
120120 then (H - parseIntValue(X[3]))
121121 else if ((V >= parseIntValue(W[4])))
122122 then (H - parseIntValue(X[4]))
123123 else H
124124 }
125125
126126
127127 func Y (Z,aa,ab,ac,ad,ae,af,ag) = {
128128 let ah = T(Z)
129129 let ai = if ((ad[0] == "curveMultyFlat"))
130130 then {
131131 let aj = {
132132 let ak = invoke(addressFromStringValue(ac[0]), "getDy", [ae[0], ae[1], aa, toString(Z)], nil)
133133 if ($isInstanceOf(ak, "(Int, Int)"))
134134 then ak
135135 else throw(($getType(invoke(addressFromStringValue(ac[0]), "getDy", [ae[0], ae[1], aa, toString(Z)], nil)) + " couldn't be cast to (Int, Int)"))
136136 }
137137 if ((aj == aj))
138138 then aj._1
139139 else throw("Strict value is not equal to itself.")
140140 }
141141 else {
142142 let al = getIntegerValue(addressFromStringValue(ac[0]), ae[0])
143143 let am = getIntegerValue(addressFromStringValue(ac[0]), ae[1])
144144 if ((ad[0] == "cpmm"))
145145 then {
146146 let an = getIntegerValue(addressFromStringValue(ac[0]), m)
147147 let ao = fraction(am, aa, (aa + al))
148148 fraction(ao, (H - fraction(an, ah, H)), H)
149149 }
150150 else if ((ad[0] == "flat"))
151151 then {
152152 let ap = R(al, am)
153153 let aq = ag[0]
154154 let ar = R((al + aa), (am - aq))
155155 if ((ar >= ap))
156156 then aq
157157 else throw("Flat contract: invariantNew < invariant")
158158 }
159159 else throw("Incorrect exchange type")
160160 }
161161 let as = if ((ad[1] == "curveMultyFlat"))
162162 then {
163163 let aj = {
164164 let ak = invoke(addressFromStringValue(ac[1]), "getDy", [ae[2], ae[3], ai, toString(Z)], nil)
165165 if ($isInstanceOf(ak, "(Int, Int)"))
166166 then ak
167167 else throw(($getType(invoke(addressFromStringValue(ac[1]), "getDy", [ae[2], ae[3], ai, toString(Z)], nil)) + " couldn't be cast to (Int, Int)"))
168168 }
169169 if ((aj == aj))
170170 then aj._1
171171 else throw("Strict value is not equal to itself.")
172172 }
173173 else {
174174 let at = getIntegerValue(addressFromStringValue(ac[1]), ae[2])
175175 let au = getIntegerValue(addressFromStringValue(ac[1]), ae[3])
176176 if ((ad[1] == "cpmm"))
177177 then {
178178 let av = fraction(au, ai, (ai + at))
179179 let an = getIntegerValue(addressFromStringValue(ac[1]), m)
180180 fraction(av, (H - fraction(an, ah, H)), H)
181181 }
182182 else if ((ad[1] == "flat"))
183183 then {
184184 let ap = R(at, au)
185185 let aw = ag[1]
186186 let ar = R((at + ai), (au - aw))
187187 if ((ar >= ap))
188188 then aw
189189 else throw("Flat contract: invariantNew < invariant")
190190 }
191191 else throw("Incorrect exchange type")
192192 }
193193 (as >= ab)
194194 }
195195
196196
197197 @Callable(K)
198198 func routingTrade (ac,ad,af,ag,ae,ab) = valueOrElse(I(), {
199199 let ax = $Tuple2(K.payments[0].amount, K.payments[0].assetId)
200200 let aa = ax._1
201201 let ay = ax._2
202202 if (!(Y(K.caller, aa, ab, ac, ad, ae, af, ag)))
203203 then throw("Check transaction possibilty: declined")
204204 else if (if (!(isDefined(getString(u, (c + ac[0])))))
205205 then true
206206 else !(isDefined(getString(u, (c + ac[1])))))
207207 then throw("Pool is not in oracle")
208208 else {
209209 let az = size(ac)
210210 func aA (aB,aC) = {
211211 let aD = aB
212212 let aE = aD._1
213213 let aF = aD._2
214214 let aG = aD._3
215215 let aH = if ((aE == 0))
216216 then $Tuple2(ay, aa)
217217 else $Tuple2(aG, aF)
218218 let aI = aH._1
219219 let aJ = aH._2
220220 if (((if ((aE >= 0))
221221 then (az > aE)
222222 else false) == true))
223223 then {
224224 let aK = addressFromStringValue(aC)
225225 if ((ad[aE] == "cpmm"))
226226 then {
227227 let aj = {
228- let ak = invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)])
229- if ($isInstanceOf(ak, "List[Any]"))
228+ let ak = invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)])
229+ if ($isInstanceOf(ak, "(Int, Int)"))
230230 then ak
231- else throw(($getType(invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]"))
231+ else throw(($getType(invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to (Int, Int)"))
232232 }
233233 if ((aj == aj))
234- then $Tuple3((aE + 1), aj[0], aj[1])
234+ then $Tuple2(aj._1, aj._2)
235235 else throw("Strict value is not equal to itself.")
236236 }
237237 else if ((ad[aE] == "flat"))
238238 then {
239239 let aj = {
240240 let ak = invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)])
241241 if ($isInstanceOf(ak, "List[Any]"))
242242 then ak
243243 else throw(($getType(invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]"))
244244 }
245245 if ((aj == aj))
246246 then $Tuple3((aE + 1), aj[0], aj[1])
247247 else throw("Strict value is not equal to itself.")
248248 }
249249 else if ((ad[aE] == "curveMultyFlat"))
250250 then {
251251 let aj = {
252252 let ak = invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)])
253253 if ($isInstanceOf(ak, "List[Any]"))
254254 then ak
255255 else throw(($getType(invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]"))
256256 }
257257 if ((aj == aj))
258258 then $Tuple3((aE + 1), aj[0], aj[1])
259259 else throw("Strict value is not equal to itself.")
260260 }
261261 else throw("Incorrect exchange type")
262262 }
263263 else aB
264264 }
265265
266266 let aL = {
267267 let aM = ac
268268 let aN = size(aM)
269269 let aO = $Tuple3(0, 0, base58'')
270270 func aP (aQ,aR) = if ((aR >= aN))
271271 then aQ
272272 else aA(aQ, aM[aR])
273273
274274 func aS (aQ,aR) = if ((aR >= aN))
275275 then aQ
276276 else throw("List size exceeds 3")
277277
278278 aS(aP(aP(aP(aO, 0), 1), 2), 3)
279279 }
280280 let aE = aL._1
281281 let aT = aL._2
282282 let aU = aL._3
283283 let aV = fraction(aT, (H - G), H)
284284 if (if ((aE == az))
285285 then (aV >= ab)
286286 else false)
287287 then [ScriptTransfer(K.caller, aV, aU), ScriptTransfer(D, (aT - aV), aU)]
288288 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
289289 }
290290 })
291291
292292
293293
294294 @Callable(K)
295295 func shutdown () = valueOrElse(J(K), if (!(F))
296296 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, b), "the cause wasn't specified")))
297297 else M("Paused by admin"))
298298
299299
300300
301301 @Callable(K)
302302 func activate () = valueOrElse(J(K), if (F)
303303 then L()
304304 else [BooleanEntry(a, true), DeleteEntry(b)])
305305
306306
307307 @Verifier(aW)
308308 func aX () = {
309309 let aY = {
310310 let aZ = if (sigVerify(aW.bodyBytes, aW.proofs[0], A))
311311 then 1
312312 else 0
313313 let ba = if (sigVerify(aW.bodyBytes, aW.proofs[1], B))
314314 then 1
315315 else 0
316316 let bb = if (sigVerify(aW.bodyBytes, aW.proofs[2], C))
317317 then 1
318318 else 0
319319 (((aZ + ba) + bb) >= 2)
320320 }
321321 let x = aW
322322 aY
323323 }
324324

github/deemru/w8io/169f3d6 
50.86 ms