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:BgIQCAISCAoGGBgRERgBEgASACYAB2tBY3RpdmUCBmFjdGl2ZQAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1Bvb2xJbk9yYWNsZQIFcG9vbF8ADmtVc2VyU3dvcEluR292AgxfU1dPUF9hbW91bnQACmtEaXNjb3VudHMCCWRpc2NvdW50cwAPa0Rpc2NvdW50VmFsdWVzAg9kaXNjb3VudF92YWx1ZXMAC2tSb3V0aW5nRmVlAgtyb3V0aW5nX2ZlZQANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfMwAQa01vbmV5Qm94QWRkcmVzcwIRbW9uZXlfYm94X2FkZHJlc3MAC2tHb3ZBZGRyZXNzAhJnb3Zlcm5hbmNlX2FkZHJlc3MABGtGZWUCCmNvbW1pc3Npb24AEmtNdWx0eUFzc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FAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIEByRtYXRjaDAFAnR4BRNtdWx0aVNpZ25lZEJ5QWRtaW5zEcBatg==", "height": 2418957, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2qnG5gCc7DN6muJ7x1D8faAS28mj4ocDj6vj2v9VPCTe Next: 9oE63DEZFKbzaqkDHPiFxXY5Hkde2Qbt3i6ZpBL7wTsc 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'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
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(ak) + " 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(ak) + " 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 let aj = if ((ad[aE] == "cpmm"))
226226 then invoke(aK, "callFunction", ["exchange", [toString(af[aE])]], [AttachedPayment(aI, aJ)])
227227 else if ((ad[aE] == "flat"))
228228 then invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)])
229229 else if ((ad[aE] == "curveMultyFlat"))
230230 then invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)])
231231 else throw("Incorrect exchange type")
232232 if ((aj == aj))
233233 then {
234234 let aL = {
235235 let x = aj
236236 if ($isInstanceOf(x, "List[Any]"))
237237 then {
238238 let aj = x
239239 let aM = $Tuple2(aj[0], aj[1])
240240 if (if ($isInstanceOf(aM, "(Int, Unit)"))
241241 then true
242242 else $isInstanceOf(aM, "(Int, ByteVector)"))
243243 then {
244244 let aN = aM
245245 $Tuple2(aN._1, aN._2)
246246 }
247247 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
248248 }
249249 else if (if ($isInstanceOf(x, "(Int, Unit)"))
250250 then true
251251 else $isInstanceOf(x, "(Int, ByteVector)"))
252252 then {
253253 let aj = x
254254 $Tuple2(aj._1, aj._2)
255255 }
256256 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
257257 }
258258 let aO = aL._1
259259 let aP = aL._2
260260 $Tuple3((aE + 1), aO, aP)
261261 }
262262 else throw("Strict value is not equal to itself.")
263263 }
264264 else aB
265265 }
266266
267267 let aQ = {
268268 let aR = ac
269269 let aS = size(aR)
270270 let aT = $Tuple3(0, 0, base58'')
271271 func aU (aV,aW) = if ((aW >= aS))
272272 then aV
273273 else aA(aV, aR[aW])
274274
275275 func aX (aV,aW) = if ((aW >= aS))
276276 then aV
277277 else throw("List size exceeds 3")
278278
279279 aX(aU(aU(aU(aT, 0), 1), 2), 3)
280280 }
281281 let aE = aQ._1
282282 let aY = aQ._2
283283 let aP = aQ._3
284284 let aO = fraction(aY, (H - G), H)
285285 if (if ((aE == az))
286286 then (aO >= ab)
287287 else false)
288288 then [ScriptTransfer(K.caller, aO, aP), ScriptTransfer(D, (aY - aO), aP)]
289289 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
290290 }
291291 })
292292
293293
294294
295295 @Callable(K)
296296 func shutdown () = valueOrElse(J(K), if (!(F))
297297 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, b), "the cause wasn't specified")))
298298 else M("Paused by admin"))
299299
300300
301301
302302 @Callable(K)
303303 func activate () = valueOrElse(J(K), if (F)
304304 then L()
305305 else [BooleanEntry(a, true), DeleteEntry(b)])
306306
307307
308308 @Verifier(aZ)
309309 func ba () = {
310310 let bb = {
311311 let bc = if (sigVerify(aZ.bodyBytes, aZ.proofs[0], A))
312312 then 1
313313 else 0
314314 let bd = if (sigVerify(aZ.bodyBytes, aZ.proofs[1], B))
315315 then 1
316316 else 0
317317 let be = if (sigVerify(aZ.bodyBytes, aZ.proofs[2], C))
318318 then 1
319319 else 0
320320 (((bc + bd) + be) >= 2)
321321 }
322322 let x = aZ
323323 bb
324324 }
325325

github/deemru/w8io/026f985 
41.77 ms