tx · BEbxrNz7J4F1dE5LjzhQQ6oDh2h6Vwo16zsoTRa4GsKF

3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62:  -0.02000000 Waves

2020.07.28 15:41 [1107444] smart account 3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62 > SELF 0.00000000 Waves

{ "type": 13, "id": "BEbxrNz7J4F1dE5LjzhQQ6oDh2h6Vwo16zsoTRa4GsKF", "fee": 2000000, "feeAssetId": null, "timestamp": 1595940123980, "version": 1, "sender": "3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62", "senderPublicKey": "6PBV8fVJwLaUQbCyG7iqoKR3x1nqFRZFNeuN9qodoiTu", "proofs": [ "3cJAAjuhTS79HuZRvFFWjANrhWUkyX8vTKRqs5gheq9SQGz8PyqNJVkoEuseG413dJo1TDp6xUBJPy7SxsEAaNrT", "2LNMGthLKkzVgDcCsaDEo1PfwRQCJFkavvzDkeC6BKHxDHGkZxqxfwVfkWFQCX2pp1DjrowYeEmEUDptT54txvq8", "2yeRvEtv54uCJeo5CHHXWNJFsryF8fTznVmLrouM8CUTHaHb47AjeUXsK663yf5khtBBHPAAD6LoGXXJs6T1ndky" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIBCBIAEgMKAQgSABIAAAAAOQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAA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B25 Next: 51vNC5dKpKsd6aahk5aZbbZKKMT5vHpbDmz9JV6frXRv Diff:
OldNewDifferences
333333 then ""
334334 else S), DataEntry(x, if ((aW == o))
335335 then ao
336- else S), DataEntry(F(S), (aM + aS)), DataEntry(E(S), aW), DataEntry(y, aD(S))]), TransferSet([ScriptTransfer(addressFromStringValue(ad(S)), aR, Q), ScriptTransfer(N, aS, R)]))
336+ else S), DataEntry(F(S), (aM + aS)), DataEntry(E(S), aW), DataEntry(y, if ((aW == n))
337+ then aj
338+ else aD(S))]), TransferSet([ScriptTransfer(addressFromStringValue(ad(S)), aR, Q), ScriptTransfer(N, aS, R)]))
337339 }
338340 }
339341 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getInteger(this, b)
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else 0
1212 }
1313
1414
1515 func e (b) = {
1616 let c = getString(this, b)
1717 if ($isInstanceOf(c, "String"))
1818 then {
1919 let d = c
2020 d
2121 }
2222 else ""
2323 }
2424
2525
2626 func f (g,b) = {
2727 let c = getBoolean(g, b)
2828 if ($isInstanceOf(c, "Boolean"))
2929 then {
3030 let d = c
3131 d
3232 }
3333 else false
3434 }
3535
3636
3737 func h (g,b) = {
3838 let c = getString(g, b)
3939 if ($isInstanceOf(c, "String"))
4040 then {
4141 let d = c
4242 d
4343 }
4444 else ""
4545 }
4646
4747
4848 func i (g,b) = {
4949 let c = getInteger(g, b)
5050 if ($isInstanceOf(c, "Int"))
5151 then {
5252 let d = c
5353 d
5454 }
5555 else 0
5656 }
5757
5858
5959 let j = 100000000
6060
6161 let k = 1000000
6262
6363 let l = 1000000
6464
6565 let m = "canceled"
6666
6767 let n = "new"
6868
6969 let o = "filled"
7070
7171 let p = "neutrino_contract"
7272
7373 let q = "price"
7474
7575 let r = "bond_asset_id"
7676
7777 let s = "neutrino_asset_id"
7878
7979 let t = "control_contract"
8080
8181 let u = "balance_lock_"
8282
8383 let v = (u + "waves")
8484
8585 let w = (u + "neutrino")
8686
8787 let x = "order_first"
8888
8989 let y = "order_default"
9090
9191 func z (A) = ("order_price_" + A)
9292
9393
9494 func B (A) = ("order_total_" + A)
9595
9696
9797 func C (A) = ("order_owner_" + A)
9898
9999
100100 func D (A) = ("order_height_" + A)
101101
102102
103103 func E (A) = ("order_status_" + A)
104104
105105
106106 func F (A) = ("order_filled_total_" + A)
107107
108108
109109 func G (A) = ("order_prev_" + A)
110110
111111
112112 func H (A) = ("order_next_" + A)
113113
114114
115115 func I (J,K) = fraction(fraction(J, l, K), j, k)
116116
117117
118118 func L (J,K) = fraction(fraction(J, K, l), k, j)
119119
120120
121121 func M (J,K) = L(J, K)
122122
123123
124124 let N = addressFromStringValue(e(p))
125125
126126 let O = addressFromStringValue(h(N, t))
127127
128128 let P = this
129129
130130 let Q = fromBase58String(h(N, s))
131131
132132 let R = fromBase58String("BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH")
133133
134134 let S = e(x)
135135
136136 let T = f(O, "is_blocked")
137137
138138 let U = i(O, q)
139139
140140 let V = i(N, w)
141141
142142 let W = i(N, v)
143143
144144 let X = (wavesBalance(N) - W)
145145
146146 let Y = (((V + extract(assetInfo(Q)).quantity) - assetBalance(N, Q)) - assetBalance(P, Q))
147147
148148 let Z = (L(X, U) - Y)
149149
150150 func aa (ab) = a(z(ab))
151151
152152
153153 func ac (ab) = a(B(ab))
154154
155155
156156 func ad (ab) = e(C(ab))
157157
158158
159159 func ae (ab) = e(E(ab))
160160
161161
162162 func af (ab) = a(F(ab))
163163
164164
165165 func ag (ab) = a(D(ab))
166166
167167
168168 func ah (ab) = e(G(ab))
169169
170170
171171 func ai (ab) = e(H(ab))
172172
173173
174174 let aj = e(y)
175175
176176 func ak (K,al,am,an,ao,S) = {
177177 let J = extract(am.payment).amount
178178 let ap = (K == 100)
179179 let aq = (S == "")
180180 let ar = (aa(S) > K)
181181 let as = if (aq)
182182 then al
183183 else if (ar)
184184 then al
185185 else S
186186 [DataEntry(G(al), an), DataEntry(H(al), ao), DataEntry(H(an), if ((an == ""))
187187 then an
188188 else al), DataEntry(G(ao), if ((ao == ""))
189189 then ao
190190 else al), DataEntry(x, as), DataEntry(z(al), K), DataEntry(B(al), J), DataEntry(C(al), toString(am.caller)), DataEntry(D(al), height), DataEntry(E(al), n), DataEntry(y, if (ap)
191191 then al
192192 else aj)]
193193 }
194194
195195
196196 func at (am,K,an) = {
197197 let au = extract(am.payment)
198198 let al = toBase58String(keccak256((((toBytes(au.amount) + am.caller.bytes) + toBytes(height)) + am.transactionId)))
199199 let av = toString(am.caller)
200200 let aw = (an == "")
201201 let ax = (S == "")
202202 if (T)
203203 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
204204 else if ((k > au.amount))
205205 then throw("order amount should be higher than 1 NSBT")
206206 else if ((100 > K))
207207 then throw(("price should be equal or higher than 1 nsbt for 1 usdn. i.e. >= 100; price: " + toString(K)))
208208 else if ((au.assetId != R))
209209 then throw("can use appropriate neutrino base tokens (nsbt) only")
210210 else if ((ad(al) != ""))
211211 then throw("the order already exists")
212212 else if (if (!(aw))
213213 then (ae(an) != n)
214214 else false)
215215 then throw("prev order status is not new")
216216 else if (if (ax)
217217 then !(aw)
218218 else false)
219219 then throw("wrong prev order parameter")
220220 else {
221221 let ao = if (aw)
222222 then S
223223 else ai(an)
224224 let ay = (ao == "")
225225 if (ax)
226226 then WriteSet(ak(K, al, am, an, ao, S))
227227 else {
228228 let az = a(z(ao))
229229 let aA = a(z(an))
230230 let aB = if (!(ay))
231231 then (K >= az)
232232 else false
233233 let aC = if (!(aw))
234234 then (aA > K)
235235 else false
236236 if (if (aB)
237237 then true
238238 else aC)
239239 then throw(((("invalid order isPrevOrderError:" + toString(aC)) + " isNextOrderError:") + toString(aB)))
240240 else WriteSet(ak(K, al, am, an, ao, S))
241241 }
242242 }
243243 }
244244
245245
246246 func aD (ab) = if ((ab != aj))
247247 then aj
248248 else ""
249249
250250
251251 @Callable(am)
252252 func addLiquidationOrderWithPrice (K,an) = at(am, K, an)
253253
254254
255255
256256 @Callable(am)
257257 func addLiquidationOrder () = at(am, 100, aj)
258258
259259
260260
261261 @Callable(am)
262262 func cancelOrder (A) = {
263263 let av = ad(A)
264264 let J = (ac(A) - af(A))
265265 let aE = toString(am.caller)
266266 let ao = ai(A)
267267 let an = ah(A)
268268 let aF = (A == aj)
269269 let aG = (ae(an) == n)
270270 let aH = if (aF)
271271 then if (aG)
272272 then an
273273 else ""
274274 else aj
275275 if (T)
276276 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
277277 else if ((av != aE))
278278 then throw("permission denied")
279279 else if ((ae(A) != n))
280280 then throw("invalid order status")
281281 else ScriptResult(WriteSet([DataEntry(y, aH), DataEntry(x, if ((S == A))
282282 then ao
283283 else S), DataEntry(H(an), ao), DataEntry(G(ao), an), DataEntry(E(A), m)]), TransferSet([ScriptTransfer(am.caller, J, R)]))
284284 }
285285
286286
287287
288288 @Callable(am)
289289 func liquidateBond () = {
290290 let aI = assetBalance(this, Q)
291291 let aJ = if ((0 >= Z))
292292 then 0
293293 else Z
294294 let aK = if ((aJ >= aI))
295295 then aI
296296 else aJ
297297 let aL = if ((aJ >= aI))
298298 then 0
299299 else (aI - aJ)
300300 if (T)
301301 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
302302 else if ((aI == 0))
303303 then throw("without base tokens to liquidate")
304304 else if ((aL > 0))
305305 then TransferSet([ScriptTransfer(N, aL, Q)])
306306 else if ((S == ""))
307307 then throw("empty orderbook")
308308 else {
309309 let ao = ai(S)
310310 let aM = af(S)
311311 let aN = aa(S)
312312 let aO = (ac(S) - aM)
313313 let aP = fraction(aO, aN, 100)
314314 let aQ = (aK >= aP)
315315 let aR = if (aQ)
316316 then aP
317317 else aK
318318 let aS = fraction(aR, 100, aN)
319319 let aT = (fraction((Z + Y), 100, Y) >= aN)
320320 if (!(aT))
321321 then throw(("innapropriate surplus: " + toString(Z)))
322322 else {
323323 let aU = (aO == 0)
324324 let aV = ((aM + aS) == ac(S))
325325 let aW = if (if (aQ)
326326 then if (aU)
327327 then true
328328 else aV
329329 else false)
330330 then o
331331 else n
332332 ScriptResult(WriteSet([DataEntry(G(ao), if ((aW == o))
333333 then ""
334334 else S), DataEntry(x, if ((aW == o))
335335 then ao
336- else S), DataEntry(F(S), (aM + aS)), DataEntry(E(S), aW), DataEntry(y, aD(S))]), TransferSet([ScriptTransfer(addressFromStringValue(ad(S)), aR, Q), ScriptTransfer(N, aS, R)]))
336+ else S), DataEntry(F(S), (aM + aS)), DataEntry(E(S), aW), DataEntry(y, if ((aW == n))
337+ then aj
338+ else aD(S))]), TransferSet([ScriptTransfer(addressFromStringValue(ad(S)), aR, Q), ScriptTransfer(N, aS, R)]))
337339 }
338340 }
339341 }
340342
341343
342344
343345 @Callable(am)
344346 func updateReservesAndNeutrinoSupply () = {
345347 func aX (b) = {
346348 let c = getInteger(this, b)
347349 if ($isInstanceOf(c, "Int"))
348350 then {
349351 let d = c
350352 d
351353 }
352354 else 0
353355 }
354356
355357 let aY = aX("updateReservesAndNeutrinoSupplyIdx")
356358 let aZ = (aY + 1)
357359 WriteSet([DataEntry("updateReservesAndNeutrinoSupplyIdx", aZ), DataEntry("reserve", X), DataEntry("neutrinoSupply", Y), DataEntry("surplus", Z)])
358360 }
359361
360362
361363 @Verifier(ba)
362364 func bb () = {
363365 let bc = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"]
364366 let bd = ((((if (sigVerify(ba.bodyBytes, ba.proofs[0], fromBase58String(bc[0])))
365367 then 1
366368 else 0) + (if (sigVerify(ba.bodyBytes, ba.proofs[1], fromBase58String(bc[1])))
367369 then 1
368370 else 0)) + (if (sigVerify(ba.bodyBytes, ba.proofs[2], fromBase58String(bc[2])))
369371 then 1
370372 else 0)) + (if (sigVerify(ba.bodyBytes, ba.proofs[3], fromBase58String(bc[3])))
371373 then 2
372374 else 0))
373375 (bd >= 3)
374376 }
375377

github/deemru/w8io/169f3d6 
58.04 ms