tx · FH84kNG1JaMxv22LTDZPpu1MQbh6BsqLUEoMpqYiAdeG 3MsjqGJqqVrFKiq1EWRtQfPi9JcWQP1Aerp: -0.01000000 Waves 2021.06.25 11:37 [1585666] smart account 3MsjqGJqqVrFKiq1EWRtQfPi9JcWQP1Aerp > SELF 0.00000000 Waves
{ "type": 13, "id": "FH84kNG1JaMxv22LTDZPpu1MQbh6BsqLUEoMpqYiAdeG", "fee": 1000000, "feeAssetId": null, "timestamp": 1624610285082, "version": 2, "chainId": 84, "sender": "3MsjqGJqqVrFKiq1EWRtQfPi9JcWQP1Aerp", "senderPublicKey": "H1e19dyoDA9rsTkz15UKRqdkueuQN9V8scjUFkWXpbo5", "proofs": [ "39251q4HxyXckDL2E8LftUCa8S2srsKjCZztsjPopTAJ4JVYqMpaqpSn78ka7kmm8ppSzAg3dLkwZAGyfaKgmri3" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQESABIDCgEBEgASABIDCgEBAAAAOgAAAAAHdmVyc2lvbgIAAAAFMS4wLjAAAAAACmtleVZlcnNpb24CAAAAB3ZlcnNpb24AAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAC2tleUJhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAAC2tleUJhbGFuY2VCAgAAAA9CX2Fzc2V0X2JhbGFuY2UAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAIa2V5Q2F1c2UCAAA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AAAAggFAAAABmludm9rZQAAAARkQXBwBQAAAA9zd29wVVNETnRvV0FWRVMJAAAAAAAAAggJAAGRAAAAAggFAAAABmludm9rZQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAR1bml0BwcHBgMDCQAB9AAAAAMIBQAAAAZpbnZva2UAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAZpbnZva2UAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABJhZG1pblB1YktleVN0YWtpbmcJAAAAAAAAAggFAAAABmludm9rZQAAAARkQXBwBQAAAAR0aGlzBwkAAAAAAAACCAUAAAAGaW52b2tlAAAACGZ1bmN0aW9uAgAAABl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkROUcG", "height": 1585666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5F5Xg97smaepBrGbqYa3W7Pcdva3uUbP7cknTM76XDZk Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "1.0.0" | |
5 | + | ||
6 | + | let b = "version" | |
7 | + | ||
8 | + | let c = "active" | |
9 | + | ||
10 | + | let d = "A_asset_id" | |
11 | + | ||
12 | + | let e = "B_asset_id" | |
13 | + | ||
14 | + | let f = "A_asset_balance" | |
15 | + | ||
16 | + | let g = "B_asset_balance" | |
17 | + | ||
18 | + | let h = "share_asset_id" | |
19 | + | ||
20 | + | let i = "share_asset_supply" | |
21 | + | ||
22 | + | let j = "commission" | |
23 | + | ||
24 | + | let k = "commission_scale_delimiter" | |
25 | + | ||
26 | + | let l = "shutdown_cause" | |
27 | + | ||
28 | + | let m = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
29 | + | ||
30 | + | let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
31 | + | ||
32 | + | let o = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
33 | + | ||
34 | + | let p = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
35 | + | ||
36 | + | let q = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
37 | + | ||
38 | + | let r = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
39 | + | ||
40 | + | let s = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
41 | + | ||
42 | + | let t = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
43 | + | ||
44 | + | let u = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
45 | + | ||
46 | + | let v = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
47 | + | ||
48 | + | let w = Address(base58'3MuDZSULkhcvXKP7YG2HbuKrBUNe324Zss5') | |
49 | + | ||
50 | + | let x = Address(base58'3MzTHd4e3yukNUURApVLVzH5uxeEsXHD6yY') | |
51 | + | ||
52 | + | let y = (9 * value(value(assetInfo(t)).minSponsoredFee)) | |
53 | + | ||
54 | + | let z = getBooleanValue(this, c) | |
55 | + | ||
56 | + | let A = getStringValue(this, d) | |
57 | + | ||
58 | + | let B = getStringValue(this, e) | |
59 | + | ||
60 | + | let C = if ((A == "WAVES")) | |
61 | + | then unit | |
62 | + | else fromBase58String(A) | |
63 | + | ||
64 | + | let D = if ((B == "WAVES")) | |
65 | + | then unit | |
66 | + | else fromBase58String(B) | |
67 | + | ||
68 | + | let E = { | |
69 | + | let F = C | |
70 | + | if ($isInstanceOf(F, "ByteVector")) | |
71 | + | then { | |
72 | + | let G = F | |
73 | + | value(assetInfo(G)).name | |
74 | + | } | |
75 | + | else if ($isInstanceOf(F, "Unit")) | |
76 | + | then { | |
77 | + | let H = F | |
78 | + | "WAVES" | |
79 | + | } | |
80 | + | else throw("Match error") | |
81 | + | } | |
82 | + | ||
83 | + | let I = { | |
84 | + | let F = D | |
85 | + | if ($isInstanceOf(F, "ByteVector")) | |
86 | + | then { | |
87 | + | let G = F | |
88 | + | value(assetInfo(G)).name | |
89 | + | } | |
90 | + | else if ($isInstanceOf(F, "Unit")) | |
91 | + | then { | |
92 | + | let H = F | |
93 | + | "WAVES" | |
94 | + | } | |
95 | + | else throw("Match error") | |
96 | + | } | |
97 | + | ||
98 | + | let J = getIntegerValue(this, f) | |
99 | + | ||
100 | + | let K = getIntegerValue(this, g) | |
101 | + | ||
102 | + | let L = fromBase58String(getStringValue(this, h)) | |
103 | + | ||
104 | + | let M = getIntegerValue(this, i) | |
105 | + | ||
106 | + | let N = 3000 | |
107 | + | ||
108 | + | let O = 1200 | |
109 | + | ||
110 | + | let P = 1000000 | |
111 | + | ||
112 | + | let Q = 1000 | |
113 | + | ||
114 | + | let R = 100000000 | |
115 | + | ||
116 | + | let S = 1000 | |
117 | + | ||
118 | + | let T = 8 | |
119 | + | ||
120 | + | func U (V) = { | |
121 | + | let F = V | |
122 | + | if ($isInstanceOf(F, "ByteVector")) | |
123 | + | then { | |
124 | + | let G = F | |
125 | + | assetBalance(this, G) | |
126 | + | } | |
127 | + | else if ($isInstanceOf(F, "Unit")) | |
128 | + | then { | |
129 | + | let H = F | |
130 | + | wavesBalance(this).available | |
131 | + | } | |
132 | + | else throw("Match error") | |
133 | + | } | |
134 | + | ||
135 | + | ||
136 | + | func W (X,Y) = { | |
137 | + | let Z = { | |
138 | + | let F = getInteger(X, ((("rpd_balance_" + Y) + "_") + toString(this))) | |
139 | + | if ($isInstanceOf(F, "Int")) | |
140 | + | then { | |
141 | + | let aa = F | |
142 | + | aa | |
143 | + | } | |
144 | + | else if ($isInstanceOf(F, "Unit")) | |
145 | + | then { | |
146 | + | let ab = F | |
147 | + | 0 | |
148 | + | } | |
149 | + | else throw("Match error") | |
150 | + | } | |
151 | + | Z | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | let ac = W(s, A) | |
156 | + | ||
157 | + | let ad = W(s, B) | |
158 | + | ||
159 | + | let ae = (J - ac) | |
160 | + | ||
161 | + | let af = (K - ad) | |
162 | + | ||
163 | + | let ag = (U(C) + ac) | |
164 | + | ||
165 | + | let ah = (U(D) + ad) | |
166 | + | ||
167 | + | let ai = if ((ag >= J)) | |
168 | + | then (ah >= K) | |
169 | + | else false | |
170 | + | ||
171 | + | func aj (V) = { | |
172 | + | let F = V | |
173 | + | if ($isInstanceOf(F, "ByteVector")) | |
174 | + | then { | |
175 | + | let G = F | |
176 | + | let ak = toBase58String(G) | |
177 | + | let al = valueOrErrorMessage(assetInfo(G), (("Asset " + ak) + " doesn't exist")) | |
178 | + | $Tuple3(ak, al.name, al.decimals) | |
179 | + | } | |
180 | + | else if ($isInstanceOf(F, "Unit")) | |
181 | + | then { | |
182 | + | let H = F | |
183 | + | $Tuple3("WAVES", "WAVES", 8) | |
184 | + | } | |
185 | + | else throw("Match error") | |
186 | + | } | |
187 | + | ||
188 | + | ||
189 | + | func am (an) = [BooleanEntry(c, false), StringEntry(l, an)] | |
190 | + | ||
191 | + | ||
192 | + | func ao () = { | |
193 | + | let ap = if ((ac > 0)) | |
194 | + | then 1 | |
195 | + | else 0 | |
196 | + | let aq = if ((ad > 0)) | |
197 | + | then 1 | |
198 | + | else 0 | |
199 | + | (ap + aq) | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func ar (as,V) = if ((V == t)) | |
204 | + | then { | |
205 | + | let at = (as - (ao() * y)) | |
206 | + | if ((0 >= at)) | |
207 | + | then throw((((("Insufficient amount " + toString(as)) + " to deduct staking fee ") + toString(y)) + " USD-N")) | |
208 | + | else at | |
209 | + | } | |
210 | + | else as | |
211 | + | ||
212 | + | ||
213 | + | func au (as,av,aw) = throw((((((((("Insufficient DApp balance to pay " + toString(as)) + " ") + aw) + " due to staking. Available: ") + toString(av)) + " ") + aw) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
214 | + | ||
215 | + | ||
216 | + | func ax (ay,az) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(ay)) + " ") + E) + " and ") + toString(az)) + " ") + I) + " due to staking. Available: ") + toString(ae)) + " ") + E) + " and ") + toString(af)) + " ") + I) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
217 | + | ||
218 | + | ||
219 | + | @Callable(aA) | |
220 | + | func init () = { | |
221 | + | let aB = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId) | |
222 | + | let aC = aB._1 | |
223 | + | let aD = aB._2 | |
224 | + | let aE = $Tuple2(aA.payments[1].amount, aA.payments[1].assetId) | |
225 | + | let aF = aE._1 | |
226 | + | let aG = aE._2 | |
227 | + | let aH = aj(aD) | |
228 | + | let aI = aH._1 | |
229 | + | let aJ = aH._2 | |
230 | + | let aK = aH._3 | |
231 | + | let aL = aj(aG) | |
232 | + | let aM = aL._1 | |
233 | + | let aN = aL._2 | |
234 | + | let aO = aL._3 | |
235 | + | if (isDefined(getBoolean(this, c))) | |
236 | + | then throw("DApp is already active") | |
237 | + | else if ((aD == aG)) | |
238 | + | then throw("Assets must be different") | |
239 | + | else { | |
240 | + | let aP = ((("s" + take(aJ, 7)) + "_") + take(aN, 7)) | |
241 | + | let aQ = ((((("ShareToken of SwopFi protocol for " + aJ) + " and ") + aN) + " at address ") + toString(this)) | |
242 | + | let aR = ((aK + aO) / 2) | |
243 | + | let aS = fraction(pow(aC, aK, 5, 1, aK, HALFDOWN), pow(aF, aO, 5, 1, aO, HALFDOWN), pow(10, 0, aR, 0, 0, HALFDOWN)) | |
244 | + | let aT = Issue(aP, aQ, aS, aR, true) | |
245 | + | let aU = calculateAssetId(aT) | |
246 | + | [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aI), StringEntry(e, aM), IntegerEntry(f, aC), IntegerEntry(g, aF), IntegerEntry(j, N), IntegerEntry(k, P), aT, StringEntry(h, toBase58String(aU)), IntegerEntry(i, aS), ScriptTransfer(aA.caller, aS, aU)] | |
247 | + | } | |
248 | + | } | |
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | @Callable(aA) | |
253 | + | func replenishWithTwoTokens (aV) = { | |
254 | + | let aD = aA.payments[0].assetId | |
255 | + | let aG = aA.payments[1].assetId | |
256 | + | let aC = ar(aA.payments[0].amount, aD) | |
257 | + | let aF = ar(aA.payments[1].amount, aG) | |
258 | + | let aW = fraction(fraction(J, R, aC), Q, fraction(K, R, aF)) | |
259 | + | let aX = fraction(aC, R, J) | |
260 | + | let aY = fraction(aF, R, K) | |
261 | + | let aZ = fraction(min([aX, aY]), M, R) | |
262 | + | if (!(z)) | |
263 | + | then throw("DApp is inactive at this moment") | |
264 | + | else if (if ((0 > aV)) | |
265 | + | then true | |
266 | + | else (aV > S)) | |
267 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(S)) + " inclusively. Actual: ") + toString(aV))) | |
268 | + | else if ((size(aA.payments) != 2)) | |
269 | + | then throw("Two attached assets expected") | |
270 | + | else if (if ((aD != C)) | |
271 | + | then true | |
272 | + | else (aG != D)) | |
273 | + | then throw(((("Incorrect assets attached. Expected: " + A) + " and ") + B)) | |
274 | + | else if (if ((((Q * (S - aV)) / S) > aW)) | |
275 | + | then true | |
276 | + | else (aW > ((Q * (S + aV)) / S))) | |
277 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
278 | + | else if ((aZ == 0)) | |
279 | + | then throw("Too small amount to replenish") | |
280 | + | else if (!(ai)) | |
281 | + | then ([ScriptTransfer(aA.caller, aC, aD), ScriptTransfer(aA.caller, aF, aG)] ++ am(((((((((((((((("Suspicious state. Actual balances: " + toString(J)) + " ") + E) + ", ") + toString(K)) + " ") + I) + ". State: ") + toString(U(C))) + " ") + E) + ", ") + toString(U(D))) + " ") + I))) | |
282 | + | else [IntegerEntry(f, (J + aC)), IntegerEntry(g, (K + aF)), IntegerEntry(i, (M + aZ)), Reissue(L, aZ, true), ScriptTransfer(aA.caller, aZ, L)] | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | @Callable(aA) | |
288 | + | func withdraw () = { | |
289 | + | let ba = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId) | |
290 | + | let bb = ba._1 | |
291 | + | let bc = ba._2 | |
292 | + | let bd = ar(fraction(bb, J, M), C) | |
293 | + | let be = ar(fraction(bb, K, M), D) | |
294 | + | if (!(z)) | |
295 | + | then throw("DApp is inactive at this moment") | |
296 | + | else if ((size(aA.payments) != 1)) | |
297 | + | then throw("One attached payment expected") | |
298 | + | else if ((bc != L)) | |
299 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(L))) | |
300 | + | else if (!(ai)) | |
301 | + | then ([ScriptTransfer(aA.caller, bb, bc)] ++ am(((((((((((((((("Suspicious state. Actual balances: " + toString(J)) + " ") + E) + ", ") + toString(K)) + " ") + I) + ". State: ") + toString(U(C))) + " ") + E) + ", ") + toString(U(D))) + " ") + I))) | |
302 | + | else if (if ((bd > ae)) | |
303 | + | then true | |
304 | + | else (be > af)) | |
305 | + | then ax(bd, be) | |
306 | + | else [IntegerEntry(f, (J - bd)), IntegerEntry(g, (K - be)), IntegerEntry(i, (M - bb)), Burn(L, bb), ScriptTransfer(aA.caller, bd, C), ScriptTransfer(aA.caller, be, D)] | |
307 | + | } | |
308 | + | ||
309 | + | ||
310 | + | ||
311 | + | @Callable(aA) | |
312 | + | func exchange (bf) = { | |
313 | + | let bg = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId) | |
314 | + | let bb = bg._1 | |
315 | + | let bc = bg._2 | |
316 | + | func bh (bi,bj) = { | |
317 | + | let bk = fraction(bj, bb, (bb + bi)) | |
318 | + | let bl = fraction(bk, (P - N), P) | |
319 | + | let bm = fraction(bk, O, P) | |
320 | + | if ((bf > bl)) | |
321 | + | then throw(((("Calculated amount to receive " + toString(bl)) + " is less than specified minimum ") + toString(bf))) | |
322 | + | else $Tuple3(bk, bl, bm) | |
323 | + | } | |
324 | + | ||
325 | + | if (!(z)) | |
326 | + | then throw("DApp is inactive at this moment") | |
327 | + | else if ((0 >= bf)) | |
328 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(bf))) | |
329 | + | else if ((size(aA.payments) != 1)) | |
330 | + | then throw("One attached payment expected") | |
331 | + | else if (!(ai)) | |
332 | + | then ([ScriptTransfer(aA.caller, bb, bc)] ++ am(((((((((((((((("Suspicious state. Actual balances: " + toString(J)) + " ") + E) + ", ") + toString(K)) + " ") + I) + ". State: ") + toString(U(C))) + " ") + E) + ", ") + toString(U(D))) + " ") + I))) | |
333 | + | else if ((bc == C)) | |
334 | + | then { | |
335 | + | let bn = D | |
336 | + | let bo = bh(J, K) | |
337 | + | let bk = bo._1 | |
338 | + | let bl = bo._2 | |
339 | + | let bm = bo._3 | |
340 | + | let bp = (J + bb) | |
341 | + | let bq = ((K - bl) - bm) | |
342 | + | if (if ((ac >= bp)) | |
343 | + | then true | |
344 | + | else (ad >= bq)) | |
345 | + | then au(bl, af, I) | |
346 | + | else [IntegerEntry(f, bp), IntegerEntry(g, bq), ScriptTransfer(aA.caller, bl, bn), ScriptTransfer(r, bm, bn)] | |
347 | + | } | |
348 | + | else if ((bc == D)) | |
349 | + | then { | |
350 | + | let bn = C | |
351 | + | let br = bh(K, J) | |
352 | + | let bk = br._1 | |
353 | + | let bl = br._2 | |
354 | + | let bm = br._3 | |
355 | + | let bp = ((J - bl) - bm) | |
356 | + | let bq = (K + bb) | |
357 | + | if (if ((ac >= bp)) | |
358 | + | then true | |
359 | + | else (ad >= bq)) | |
360 | + | then au(bl, ae, E) | |
361 | + | else [IntegerEntry(f, bp), IntegerEntry(g, bq), ScriptTransfer(aA.caller, bl, bn), ScriptTransfer(r, bm, bn)] | |
362 | + | } | |
363 | + | else throw(((("Incorrect asset attached. Expected: " + A) + " or ") + B)) | |
364 | + | } | |
365 | + | ||
366 | + | ||
367 | + | ||
368 | + | @Callable(aA) | |
369 | + | func shutdown () = if (!(z)) | |
370 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified"))) | |
371 | + | else if (!(containsElement([m, n, o, p], aA.callerPublicKey))) | |
372 | + | then throw("Only admin can call this function") | |
373 | + | else am("Paused by admin") | |
374 | + | ||
375 | + | ||
376 | + | ||
377 | + | @Callable(aA) | |
378 | + | func activate () = if (z) | |
379 | + | then throw("DApp is already active") | |
380 | + | else if (!(containsElement([m, n, o, p], aA.callerPublicKey))) | |
381 | + | then throw("Only admin can call this function") | |
382 | + | else [BooleanEntry(c, true), DeleteEntry(l)] | |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | @Callable(aA) | |
387 | + | func takeIntoAccountExtraFunds (bs) = { | |
388 | + | let bt = (ag - J) | |
389 | + | let bu = (ah - K) | |
390 | + | let bv = (bt - (if ((C == t)) | |
391 | + | then bs | |
392 | + | else 0)) | |
393 | + | let bw = (bu - (if ((D == t)) | |
394 | + | then bs | |
395 | + | else 0)) | |
396 | + | if (!(z)) | |
397 | + | then throw("DApp is inactive at this moment") | |
398 | + | else if ((aA.caller != this)) | |
399 | + | then throw("Only the DApp itself can call this function") | |
400 | + | else if ((0 > bs)) | |
401 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bs))) | |
402 | + | else if (if ((0 > bt)) | |
403 | + | then true | |
404 | + | else (0 > bu)) | |
405 | + | then am("Enroll amount negative") | |
406 | + | else if (if ((0 > bv)) | |
407 | + | then true | |
408 | + | else (0 > bw)) | |
409 | + | then throw("Too large amountLeave") | |
410 | + | else [IntegerEntry(f, (J + bv)), IntegerEntry(g, (K + bw)), IntegerEntry(("last_income_" + A), bv), IntegerEntry(("last_income_" + B), bw)] | |
411 | + | } | |
412 | + | ||
413 | + | ||
414 | + | @Verifier(bx) | |
415 | + | func by () = { | |
416 | + | let F = bx | |
417 | + | if ($isInstanceOf(F, "InvokeScriptTransaction")) | |
418 | + | then { | |
419 | + | let bz = F | |
420 | + | if (if (if (sigVerify(bz.bodyBytes, bz.proofs[0], q)) | |
421 | + | then (bz.dApp == s) | |
422 | + | else false) | |
423 | + | then true | |
424 | + | else if (if (sigVerify(bz.bodyBytes, bz.proofs[0], q)) | |
425 | + | then (bz.function == "exchange") | |
426 | + | else false) | |
427 | + | then if (if (if (if ((C == u)) | |
428 | + | then (D == t) | |
429 | + | else false) | |
430 | + | then (bz.dApp == w) | |
431 | + | else false) | |
432 | + | then (bz.payments[0].assetId == unit) | |
433 | + | else false) | |
434 | + | then true | |
435 | + | else if (if ((C == u)) | |
436 | + | then (D == v) | |
437 | + | else false) | |
438 | + | then if (if ((bz.dApp == x)) | |
439 | + | then (bz.payments[0].assetId == t) | |
440 | + | else false) | |
441 | + | then true | |
442 | + | else if ((bz.dApp == w)) | |
443 | + | then (bz.payments[0].assetId == unit) | |
444 | + | else false | |
445 | + | else false | |
446 | + | else false) | |
447 | + | then true | |
448 | + | else if (if (sigVerify(bz.bodyBytes, bz.proofs[0], q)) | |
449 | + | then (bz.dApp == this) | |
450 | + | else false) | |
451 | + | then (bz.function == "takeIntoAccountExtraFunds") | |
452 | + | else false | |
453 | + | } | |
454 | + | else sigVerify(bx.bodyBytes, bx.proofs[0], bx.senderPublicKey) | |
455 | + | } | |
456 | + |
github/deemru/w8io/169f3d6 39.12 ms ◑