tx · C3ZFD5MvuhYXhGkZXn3KvJLy7UXnf2XtpkP3wN4itE2X 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37: -0.01400000 Waves 2021.08.16 16:28 [1660965] smart account 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37 > SELF 0.00000000 Waves
{ "type": 13, "id": "C3ZFD5MvuhYXhGkZXn3KvJLy7UXnf2XtpkP3wN4itE2X", "fee": 1400000, "feeAssetId": null, "timestamp": 1629120504757, "version": 2, "chainId": 84, "sender": "3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37", "senderPublicKey": "4bwUHdA4vTBJ1k43dYKiPYTDqm3QqiZXNGXoQstGAD1k", "proofs": [ "2hoNdo5L6LxXKe5acAj99QGpaTSgAy3SoPnMpbpYyeAszhpm8qjY24ikCiiURrLTebS5cSdoV9RjHw6uWMDtFToJ", "5eNsWpPA1hB15FS5WkRUtbKVTDGE4jvCu8dqZU7pfD8ig2PSDQoSBxKaVexJWZmSumPz1zDtqBC8UdnoNoEX1rmh" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2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U3Rha2luZwMDAwMDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAFmNhbGxFbmFibGVGaXJzdEhhcnZlc3QGBQAAAAtjYWxsU3Rha2luZwYFAAAAD2V4Y2hhbmdlVG9XYXZlcwYFAAAAD2V4Y2hhbmdlVG9OU0JUcwUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5ztbOpaw==", "height": 1660965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2eoK9GQgWW5K2imh8paCwLr9nMsCQKbtXd2rCrUEzMBH Next: FFi95nbRcZwVM8XqpTEEH7LamNAcxB9t3H9NCff4ni6R Diff:
Old | New | Differences | |
---|---|---|---|
41 | 41 | ||
42 | 42 | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "asset_priority_" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "script_hash_cpmm" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "init_pool_height_" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "admin_pub_1" | |
51 | 51 | ||
52 | - | let y = "admin_pub_ | |
52 | + | let y = "admin_pub_2" | |
53 | 53 | ||
54 | - | let z = "admin_pub_ | |
54 | + | let z = "admin_pub_3" | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
57 | 57 | ||
58 | - | let B = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
59 | - | ||
60 | - | func C (D) = { | |
61 | - | let E = getString(B, D) | |
62 | - | if ($isInstanceOf(E, "String")) | |
58 | + | func B (C) = { | |
59 | + | let D = getString(A, C) | |
60 | + | if ($isInstanceOf(D, "String")) | |
63 | 61 | then { | |
64 | - | let | |
65 | - | fromBase58String( | |
62 | + | let E = D | |
63 | + | fromBase58String(E) | |
66 | 64 | } | |
67 | 65 | else { | |
68 | - | let | |
66 | + | let F = D | |
69 | 67 | throw("Admin public key is empty") | |
70 | 68 | } | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 | ||
74 | - | let | |
72 | + | let G = B(x) | |
75 | 73 | ||
76 | - | let | |
74 | + | let H = B(y) | |
77 | 75 | ||
78 | - | let J = C(A) | |
76 | + | let I = B(z) | |
77 | + | ||
78 | + | let J = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | 79 | ||
80 | 80 | let K = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
81 | 81 | ||
82 | - | let L = base58' | |
82 | + | let L = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
83 | 83 | ||
84 | - | let M = Address(base58' | |
84 | + | let M = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
85 | 85 | ||
86 | - | let N = | |
86 | + | let N = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
87 | 87 | ||
88 | - | let O = base58' | |
88 | + | let O = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
89 | 89 | ||
90 | - | let P = base58' | |
90 | + | let P = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
91 | 91 | ||
92 | - | let Q = base58' | |
92 | + | let Q = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
93 | 93 | ||
94 | - | let R = base58' | |
94 | + | let R = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
95 | 95 | ||
96 | - | let S = Address(base58' | |
96 | + | let S = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE') | |
97 | 97 | ||
98 | - | let T = Address(base58' | |
98 | + | let T = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
99 | 99 | ||
100 | - | let U = Address(base58' | |
100 | + | let U = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA') | |
101 | 101 | ||
102 | - | let V = | |
102 | + | let V = 270000 | |
103 | 103 | ||
104 | - | let W = | |
104 | + | let W = 234000 | |
105 | 105 | ||
106 | - | let X = | |
106 | + | let X = valueOrErrorMessage(getInteger(M, r), "Empty keyBasePeriod") | |
107 | 107 | ||
108 | - | let Y = valueOrErrorMessage(getInteger( | |
108 | + | let Y = valueOrErrorMessage(getInteger(M, t), "Empty keyStartHeight") | |
109 | 109 | ||
110 | - | let Z = valueOrErrorMessage(getInteger( | |
110 | + | let Z = valueOrErrorMessage(getInteger(M, s), "Empty keyPeriodLength") | |
111 | 111 | ||
112 | - | let aa = | |
112 | + | let aa = ((X + ((height - Y) / Z)) + 1) | |
113 | 113 | ||
114 | - | let ab = ( | |
114 | + | let ab = getBooleanValue(this, c) | |
115 | 115 | ||
116 | - | let ac = | |
116 | + | let ac = getStringValue(this, d) | |
117 | 117 | ||
118 | - | let ad = getStringValue(this, | |
118 | + | let ad = getStringValue(this, e) | |
119 | 119 | ||
120 | - | let ae = getStringValue(this, e) | |
120 | + | let ae = if ((ac == "WAVES")) | |
121 | + | then unit | |
122 | + | else fromBase58String(ac) | |
121 | 123 | ||
122 | 124 | let af = if ((ad == "WAVES")) | |
123 | 125 | then unit | |
124 | 126 | else fromBase58String(ad) | |
125 | 127 | ||
126 | - | let ag = if ((ae == "WAVES")) | |
127 | - | then unit | |
128 | - | else fromBase58String(ae) | |
129 | - | ||
130 | - | let ah = { | |
131 | - | let E = af | |
132 | - | if ($isInstanceOf(E, "ByteVector")) | |
128 | + | let ag = { | |
129 | + | let D = ae | |
130 | + | if ($isInstanceOf(D, "ByteVector")) | |
133 | 131 | then { | |
134 | - | let | |
135 | - | value(assetInfo( | |
132 | + | let ah = D | |
133 | + | value(assetInfo(ah)).name | |
136 | 134 | } | |
137 | - | else if ($isInstanceOf( | |
135 | + | else if ($isInstanceOf(D, "Unit")) | |
138 | 136 | then { | |
139 | - | let | |
137 | + | let ai = D | |
140 | 138 | "WAVES" | |
141 | 139 | } | |
142 | 140 | else throw("Match error") | |
143 | 141 | } | |
144 | 142 | ||
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
143 | + | let aj = { | |
144 | + | let D = af | |
145 | + | if ($isInstanceOf(D, "ByteVector")) | |
148 | 146 | then { | |
149 | - | let | |
150 | - | value(assetInfo( | |
147 | + | let ah = D | |
148 | + | value(assetInfo(ah)).name | |
151 | 149 | } | |
152 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(D, "Unit")) | |
153 | 151 | then { | |
154 | - | let | |
152 | + | let ai = D | |
155 | 153 | "WAVES" | |
156 | 154 | } | |
157 | 155 | else throw("Match error") | |
158 | 156 | } | |
159 | 157 | ||
160 | - | let | |
158 | + | let ak = getIntegerValue(this, f) | |
161 | 159 | ||
162 | - | let | |
160 | + | let al = getIntegerValue(this, g) | |
163 | 161 | ||
164 | - | let | |
162 | + | let am = fromBase58String(getStringValue(this, j)) | |
165 | 163 | ||
166 | - | let | |
164 | + | let an = getIntegerValue(this, k) | |
167 | 165 | ||
168 | - | let | |
166 | + | let ao = 3000 | |
169 | 167 | ||
170 | - | let | |
168 | + | let ap = 1200 | |
171 | 169 | ||
172 | - | let | |
170 | + | let aq = 1000000 | |
173 | 171 | ||
174 | - | let | |
172 | + | let ar = 1000 | |
175 | 173 | ||
176 | - | let | |
174 | + | let as = 100000000 | |
177 | 175 | ||
178 | - | let | |
176 | + | let at = 1000 | |
179 | 177 | ||
180 | - | let | |
178 | + | let au = 8 | |
181 | 179 | ||
182 | - | let | |
180 | + | let av = 1000000000 | |
183 | 181 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
182 | + | func aw (ax) = { | |
183 | + | let D = ax | |
184 | + | if ($isInstanceOf(D, "ByteVector")) | |
187 | 185 | then { | |
188 | - | let | |
189 | - | assetBalance(this, | |
186 | + | let ah = D | |
187 | + | assetBalance(this, ah) | |
190 | 188 | } | |
191 | - | else if ($isInstanceOf( | |
189 | + | else if ($isInstanceOf(D, "Unit")) | |
192 | 190 | then { | |
193 | - | let | |
191 | + | let ai = D | |
194 | 192 | wavesBalance(this).available | |
195 | 193 | } | |
196 | 194 | else throw("Match error") | |
197 | 195 | } | |
198 | 196 | ||
199 | 197 | ||
200 | - | func | |
201 | - | let | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
198 | + | func ay (ax) = { | |
199 | + | let az = { | |
200 | + | let D = ax | |
201 | + | if ($isInstanceOf(D, "ByteVector")) | |
204 | 202 | then { | |
205 | - | let | |
206 | - | if (if (( | |
203 | + | let aA = D | |
204 | + | if (if ((aA == N)) | |
207 | 205 | then true | |
208 | - | else ( | |
209 | - | then getInteger( | |
210 | - | else if (( | |
211 | - | then getInteger( | |
206 | + | else (aA == O)) | |
207 | + | then getInteger(R, ((("rpd_balance_" + toBase58String(aA)) + "_") + toString(this))) | |
208 | + | else if ((aA == Q)) | |
209 | + | then getInteger(S, ((("%s%s%s__stakingBalance__" + toBase58String(aA)) + "__") + toString(this))) | |
212 | 210 | else 0 | |
213 | 211 | } | |
214 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(D, "Unit")) | |
215 | 213 | then 0 | |
216 | 214 | else throw("Match error") | |
217 | 215 | } | |
218 | - | let | |
219 | - | if ($isInstanceOf( | |
216 | + | let D = az | |
217 | + | if ($isInstanceOf(D, "Int")) | |
220 | 218 | then { | |
221 | - | let | |
222 | - | | |
219 | + | let aB = D | |
220 | + | aB | |
223 | 221 | } | |
224 | 222 | else 0 | |
225 | 223 | } | |
226 | 224 | ||
227 | 225 | ||
228 | - | func | |
229 | - | let | |
230 | - | if ($isInstanceOf( | |
226 | + | func aC (ax) = { | |
227 | + | let D = ax | |
228 | + | if ($isInstanceOf(D, "ByteVector")) | |
231 | 229 | then { | |
232 | - | let | |
233 | - | if (if (( | |
230 | + | let ah = D | |
231 | + | if (if ((ah == N)) | |
234 | 232 | then true | |
235 | - | else ( | |
233 | + | else (ah == P)) | |
236 | 234 | then true | |
237 | 235 | else false | |
238 | 236 | } | |
239 | - | else if ($isInstanceOf( | |
237 | + | else if ($isInstanceOf(D, "Unit")) | |
240 | 238 | then { | |
241 | - | let | |
239 | + | let ai = D | |
242 | 240 | true | |
243 | 241 | } | |
244 | 242 | else throw("Match error") | |
245 | 243 | } | |
246 | 244 | ||
247 | 245 | ||
248 | - | let | |
246 | + | let aD = ay(ae) | |
249 | 247 | ||
250 | - | let | |
248 | + | let aE = ay(af) | |
251 | 249 | ||
252 | - | let | |
250 | + | let aF = getIntegerValue(this, h) | |
253 | 251 | ||
254 | - | let aH = getIntegerValue(this, i) | |
252 | + | let aG = getIntegerValue(this, i) | |
253 | + | ||
254 | + | let aH = (ak - aD) | |
255 | 255 | ||
256 | 256 | let aI = (al - aE) | |
257 | 257 | ||
258 | - | let aJ = ( | |
258 | + | let aJ = (aw(ae) + aD) | |
259 | 259 | ||
260 | - | let aK = ( | |
260 | + | let aK = (aw(af) + aE) | |
261 | 261 | ||
262 | - | let aL = (ax(ag) + aF) | |
263 | - | ||
264 | - | let aM = if ((aK >= al)) | |
265 | - | then (aL >= am) | |
262 | + | let aL = if ((aJ >= ak)) | |
263 | + | then (aK >= al) | |
266 | 264 | else false | |
267 | 265 | ||
268 | - | func | |
269 | - | let | |
270 | - | if ($isInstanceOf( | |
266 | + | func aM (ax) = { | |
267 | + | let D = ax | |
268 | + | if ($isInstanceOf(D, "ByteVector")) | |
271 | 269 | then { | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | $Tuple3( | |
270 | + | let ah = D | |
271 | + | let aN = toBase58String(ah) | |
272 | + | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
273 | + | $Tuple3(aN, aO.name, aO.decimals) | |
276 | 274 | } | |
277 | - | else if ($isInstanceOf( | |
275 | + | else if ($isInstanceOf(D, "Unit")) | |
278 | 276 | then { | |
279 | - | let | |
277 | + | let ai = D | |
280 | 278 | $Tuple3("WAVES", "WAVES", 8) | |
281 | 279 | } | |
282 | 280 | else throw("Match error") | |
283 | 281 | } | |
284 | 282 | ||
285 | 283 | ||
286 | - | func | |
284 | + | func aP (aQ) = if ((aQ == "WAVES")) | |
287 | 285 | then $Tuple3("WAVES", "WAVES", 8) | |
288 | 286 | else { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | $Tuple3( | |
287 | + | let aN = aQ | |
288 | + | let ah = fromBase58String(aQ) | |
289 | + | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
290 | + | $Tuple3(aN, aO.name, aO.decimals) | |
293 | 291 | } | |
294 | 292 | ||
295 | 293 | ||
296 | - | func | |
294 | + | func aR (aS) = [BooleanEntry(c, false), StringEntry(n, aS)] | |
297 | 295 | ||
298 | 296 | ||
299 | - | func | |
297 | + | func aT (aU,ax,aV) = if (if ((ax == N)) | |
300 | 298 | then true | |
301 | - | else ( | |
299 | + | else (ax == Q)) | |
302 | 300 | then { | |
303 | - | let | |
304 | - | then ( | |
301 | + | let aW = if ((ax == N)) | |
302 | + | then (V * (if ((aV == O)) | |
305 | 303 | then 2 | |
306 | 304 | else 1)) | |
307 | - | else if (( | |
308 | - | then | |
305 | + | else if ((ax == Q)) | |
306 | + | then W | |
309 | 307 | else 0 | |
310 | - | let | |
311 | - | if ((0 >= | |
312 | - | then throw((((("Insufficient amount " + toString( | |
313 | - | else | |
308 | + | let aX = (aU - aW) | |
309 | + | if ((0 >= aX)) | |
310 | + | then throw((((("Insufficient amount " + toString(aU)) + " to deduct staking fee ") + toString(aW)) + "USDN/EURN")) | |
311 | + | else aX | |
314 | 312 | } | |
315 | - | else | |
313 | + | else aU | |
316 | 314 | ||
317 | 315 | ||
318 | - | func | |
319 | - | then ( | |
316 | + | func aY (ax,aV) = if ((ax == N)) | |
317 | + | then (V * (if ((aV == O)) | |
320 | 318 | then 2 | |
321 | 319 | else 1)) | |
322 | - | else if (( | |
323 | - | then | |
320 | + | else if ((ax == Q)) | |
321 | + | then W | |
324 | 322 | else 0 | |
325 | 323 | ||
326 | 324 | ||
327 | - | func | |
325 | + | func aZ (aU,ba,bb) = throw((((((((("Insufficient DApp balance to pay " + toString(aU)) + " ") + bb) + " due to staking. Available: ") + toString(ba)) + " ") + bb) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
328 | 326 | ||
329 | 327 | ||
330 | - | func | |
328 | + | func bc (bd,be) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bd)) + " ") + ag) + " and ") + toString(be)) + " ") + aj) + " due to staking. Available: ") + toString(aH)) + " ") + ag) + " and ") + toString(aI)) + " ") + aj) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
331 | 329 | ||
332 | 330 | ||
333 | - | func | |
331 | + | func bf () = aR(((((((((((((((("Suspicious state. Actual balances: " + toString(aJ)) + " ") + ag) + ", ") + toString(aK)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj)) | |
334 | 332 | ||
335 | 333 | ||
336 | - | @Callable(aC) | |
337 | - | func init (bh) = { | |
338 | - | let bi = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
339 | - | let bj = bi._1 | |
340 | - | let bk = bi._2 | |
341 | - | let bl = $Tuple2(aC.payments[1].amount, aC.payments[1].assetId) | |
342 | - | let bm = bl._1 | |
343 | - | let bn = bl._2 | |
344 | - | let bo = $Tuple2(aC.payments[2].amount, aC.payments[2].assetId) | |
345 | - | let bp = bo._1 | |
346 | - | let bq = bo._2 | |
347 | - | let br = isDataStorageUntouched(this) | |
348 | - | let bs = scriptHash(this) | |
349 | - | if ((aC.caller == this)) | |
334 | + | @Callable(aB) | |
335 | + | func init (bg) = { | |
336 | + | let bh = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
337 | + | let bi = bh._1 | |
338 | + | let bj = bh._2 | |
339 | + | let bk = $Tuple2(aB.payments[1].amount, aB.payments[1].assetId) | |
340 | + | let bl = bk._1 | |
341 | + | let bm = bk._2 | |
342 | + | let bn = $Tuple2(aB.payments[2].amount, aB.payments[2].assetId) | |
343 | + | let bo = bn._1 | |
344 | + | let bp = bn._2 | |
345 | + | let bq = isDataStorageUntouched(this) | |
346 | + | let br = scriptHash(this) | |
347 | + | let bs = addressFromStringValue(bg) | |
348 | + | if ((aB.caller == this)) | |
350 | 349 | then throw("You can't call yourself") | |
351 | - | else if (if (( | |
350 | + | else if (if ((bp != P)) | |
352 | 351 | then true | |
353 | - | else ( | |
352 | + | else (bo != av)) | |
354 | 353 | then throw("You need to attach 10 SWOP tokens") | |
355 | - | else if (if (!( | |
356 | - | then !( | |
354 | + | else if (if (!(aC(bj))) | |
355 | + | then !(aC(bm)) | |
357 | 356 | else false) | |
358 | 357 | then throw("One of assets must be USDN, WAVES or SWOP") | |
359 | - | else if (if (( | |
358 | + | else if (if ((br == value(getBinary(A, v)))) | |
360 | 359 | then true | |
361 | - | else !( | |
360 | + | else !(bq)) | |
362 | 361 | then throw("Unexpected script was found.") | |
363 | 362 | else if (isDefined(getBoolean(this, c))) | |
364 | 363 | then throw("DApp is already active") | |
365 | - | else if (( | |
364 | + | else if ((bj == bm)) | |
366 | 365 | then throw("Assets must be different") | |
367 | 366 | else { | |
368 | 367 | let bt = { | |
369 | - | let | |
370 | - | if ($isInstanceOf( | |
368 | + | let D = bj | |
369 | + | if ($isInstanceOf(D, "ByteVector")) | |
371 | 370 | then { | |
372 | - | let | |
373 | - | toBase58String( | |
371 | + | let ah = D | |
372 | + | toBase58String(ah) | |
374 | 373 | } | |
375 | - | else if ($isInstanceOf( | |
374 | + | else if ($isInstanceOf(D, "Unit")) | |
376 | 375 | then { | |
377 | - | let | |
376 | + | let ai = D | |
378 | 377 | "WAVES" | |
379 | 378 | } | |
380 | 379 | else throw("Match error") | |
381 | 380 | } | |
382 | 381 | let bu = { | |
383 | - | let | |
384 | - | if ($isInstanceOf( | |
382 | + | let D = bm | |
383 | + | if ($isInstanceOf(D, "ByteVector")) | |
385 | 384 | then { | |
386 | - | let | |
387 | - | toBase58String( | |
385 | + | let ah = D | |
386 | + | toBase58String(ah) | |
388 | 387 | } | |
389 | - | else if ($isInstanceOf( | |
388 | + | else if ($isInstanceOf(D, "Unit")) | |
390 | 389 | then { | |
391 | - | let | |
390 | + | let ai = D | |
392 | 391 | "WAVES" | |
393 | 392 | } | |
394 | 393 | else throw("Match error") | |
395 | 394 | } | |
396 | - | let bv = valueOrElse(getInteger( | |
397 | - | let bw = valueOrElse(getInteger( | |
395 | + | let bv = valueOrElse(getInteger(A, (u + bt)), 999999) | |
396 | + | let bw = valueOrElse(getInteger(A, (u + bu)), 999999) | |
398 | 397 | let bx = if ((bw > bv)) | |
399 | - | then $Tuple4(bm, | |
400 | - | else $Tuple4(bj, | |
398 | + | then $Tuple4(bl, bm, bi, bj) | |
399 | + | else $Tuple4(bi, bj, bl, bm) | |
401 | 400 | let by = bx._1 | |
402 | 401 | let bz = bx._2 | |
403 | 402 | let bA = bx._3 | |
404 | 403 | let bB = bx._4 | |
405 | - | let bC = | |
404 | + | let bC = aM(bz) | |
406 | 405 | let bD = bC._1 | |
407 | 406 | let bE = bC._2 | |
408 | 407 | let bF = bC._3 | |
409 | - | let bG = | |
408 | + | let bG = aM(bB) | |
410 | 409 | let bH = bG._1 | |
411 | 410 | let bI = bG._2 | |
412 | 411 | let bJ = bG._3 | |
413 | - | let bK = invoke( | |
412 | + | let bK = invoke(A, "addPool", [this, ((bE + "_") + bI)], nil) | |
414 | 413 | if ((bK == bK)) | |
415 | - | then if (!(isDefined(getString( | |
414 | + | then if (!(isDefined(getString(A, ("pool_" + toString(this)))))) | |
416 | 415 | then throw("Pool is not added") | |
417 | 416 | else { | |
418 | 417 | let bL = ((("s" + take(bE, 7)) + "_") + take(bI, 7)) | |
424 | 423 | let bR = fraction(bO, bP, bQ) | |
425 | 424 | let bS = Issue(bL, bM, bR, bN, true) | |
426 | 425 | let bT = calculateAssetId(bS) | |
427 | - | let bU = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bD), StringEntry(e, bH), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(l, | |
426 | + | let bU = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bD), StringEntry(e, bH), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(l, ao), IntegerEntry(m, aq), bS, StringEntry(j, toBase58String(bT)), IntegerEntry(k, bR), IntegerEntry(w, height), ScriptTransfer(bs, bR, bT), ScriptTransfer(L, av, P)] | |
428 | 427 | bU | |
429 | 428 | } | |
430 | 429 | else throw("Strict value is not equal to itself.") | |
433 | 432 | ||
434 | 433 | ||
435 | 434 | ||
436 | - | @Callable( | |
437 | - | func keepLimitForFirstHarvest (bV) = if (!( | |
435 | + | @Callable(aB) | |
436 | + | func keepLimitForFirstHarvest (bV) = if (!(ab)) | |
438 | 437 | then throw("DApp is inactive at this moment") | |
439 | - | else if (!(containsElement([H, I, | |
438 | + | else if (!(containsElement([G, H, I, K], aB.callerPublicKey))) | |
440 | 439 | then throw("Only admin can call this function") | |
441 | 440 | else [IntegerEntry(q, bV)] | |
442 | 441 | ||
443 | 442 | ||
444 | 443 | ||
445 | - | @Callable( | |
444 | + | @Callable(aB) | |
446 | 445 | func replenishWithTwoTokens (bW) = { | |
447 | - | let bz = | |
448 | - | let bB = | |
449 | - | let by = | |
450 | - | let bA = | |
451 | - | if (if (( | |
452 | - | then ( | |
446 | + | let bz = aB.payments[0].assetId | |
447 | + | let bB = aB.payments[1].assetId | |
448 | + | let by = aT(aB.payments[0].amount, bz, bB) | |
449 | + | let bA = aT(aB.payments[1].amount, bB, bz) | |
450 | + | if (if ((ak == 0)) | |
451 | + | then (al == 0) | |
453 | 452 | else false) | |
454 | 453 | then { | |
455 | - | let bX = | |
454 | + | let bX = aM(bz) | |
456 | 455 | let bD = bX._1 | |
457 | 456 | let bE = bX._2 | |
458 | 457 | let bF = bX._3 | |
459 | - | let bY = | |
458 | + | let bY = aM(bB) | |
460 | 459 | let bH = bY._1 | |
461 | 460 | let bI = bY._2 | |
462 | 461 | let bJ = bY._3 | |
463 | - | let bZ = fraction(fraction( | |
462 | + | let bZ = fraction(fraction(aF, as, by), ar, fraction(aG, as, bA)) | |
464 | 463 | if ((bz == bB)) | |
465 | 464 | then throw("Assets must be different") | |
466 | 465 | else { | |
467 | 466 | let bN = ((bF + bJ) / 2) | |
468 | 467 | let bR = fraction(pow(by, bF, 5, 1, bF, DOWN), pow(bA, bJ, 5, 1, bJ, DOWN), pow(10, 0, bN, 0, 0, DOWN)) | |
469 | - | if (!( | |
468 | + | if (!(ab)) | |
470 | 469 | then throw("DApp is inactive at this moment") | |
471 | 470 | else if (if ((0 > bW)) | |
472 | 471 | then true | |
473 | - | else (bW > | |
474 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
475 | - | else if ((size( | |
472 | + | else (bW > at)) | |
473 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bW))) | |
474 | + | else if ((size(aB.payments) != 2)) | |
476 | 475 | then throw("Two attached assets expected") | |
477 | - | else if (if (((( | |
476 | + | else if (if ((((ar * (at - bW)) / at) > bZ)) | |
478 | 477 | then true | |
479 | - | else (bZ > (( | |
478 | + | else (bZ > ((ar * (at + bW)) / at))) | |
480 | 479 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
481 | - | else if (if ((bz != | |
480 | + | else if (if ((bz != ae)) | |
482 | 481 | then true | |
483 | - | else (bB != | |
484 | - | then throw(((("Incorrect assets attached. Expected: " + | |
482 | + | else (bB != af)) | |
483 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
485 | 484 | else if ((bR == 0)) | |
486 | 485 | then throw("Too small amount to replenish") | |
487 | - | else if (!( | |
488 | - | then ([ScriptTransfer( | |
489 | - | else [Reissue( | |
486 | + | else if (!(aL)) | |
487 | + | then ([ScriptTransfer(aB.caller, by, bz), ScriptTransfer(aB.caller, bA, bB)] ++ bf()) | |
488 | + | else [Reissue(am, bR, true), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(k, bR), ScriptTransfer(aB.caller, bR, am)] | |
490 | 489 | } | |
491 | 490 | } | |
492 | 491 | else { | |
493 | - | let bZ = fraction(fraction( | |
494 | - | let ca = fraction(by, | |
495 | - | let cb = fraction(bA, | |
496 | - | let cc = fraction(min([ca, cb]), | |
497 | - | if (!( | |
492 | + | let bZ = fraction(fraction(ak, as, by), ar, fraction(al, as, bA)) | |
493 | + | let ca = fraction(by, as, ak) | |
494 | + | let cb = fraction(bA, as, al) | |
495 | + | let cc = fraction(min([ca, cb]), an, as) | |
496 | + | if (!(ab)) | |
498 | 497 | then throw("DApp is inactive at this moment") | |
499 | 498 | else if (if ((0 > bW)) | |
500 | 499 | then true | |
501 | - | else (bW > | |
502 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
503 | - | else if ((size( | |
500 | + | else (bW > at)) | |
501 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bW))) | |
502 | + | else if ((size(aB.payments) != 2)) | |
504 | 503 | then throw("Two attached assets expected") | |
505 | - | else if (if ((bz != | |
504 | + | else if (if ((bz != ae)) | |
506 | 505 | then true | |
507 | - | else (bB != | |
508 | - | then throw(((("Incorrect assets attached. Expected: " + | |
509 | - | else if (if (((( | |
506 | + | else (bB != af)) | |
507 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
508 | + | else if (if ((((ar * (at - bW)) / at) > bZ)) | |
510 | 509 | then true | |
511 | - | else (bZ > (( | |
510 | + | else (bZ > ((ar * (at + bW)) / at))) | |
512 | 511 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
513 | 512 | else if ((cc == 0)) | |
514 | 513 | then throw("Too small amount to replenish") | |
515 | - | else if (!( | |
516 | - | then ([ScriptTransfer( | |
517 | - | else [IntegerEntry(f, ( | |
514 | + | else if (!(aL)) | |
515 | + | then ([ScriptTransfer(aB.caller, by, bz), ScriptTransfer(aB.caller, bA, bB)] ++ bf()) | |
516 | + | else [IntegerEntry(f, (ak + by)), IntegerEntry(g, (al + bA)), IntegerEntry(k, (an + cc)), Reissue(am, cc, true), ScriptTransfer(aB.caller, cc, am)] | |
518 | 517 | } | |
519 | 518 | } | |
520 | 519 | ||
521 | 520 | ||
522 | 521 | ||
523 | - | @Callable( | |
522 | + | @Callable(aB) | |
524 | 523 | func withdraw () = { | |
525 | - | let cd = $Tuple2( | |
524 | + | let cd = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
526 | 525 | let ce = cd._1 | |
527 | 526 | let cf = cd._2 | |
528 | - | let cg = | |
529 | - | let ch = | |
530 | - | if (!( | |
527 | + | let cg = aT(fraction(ce, ak, an), ae, af) | |
528 | + | let ch = aT(fraction(ce, al, an), af, ae) | |
529 | + | if (!(ab)) | |
531 | 530 | then throw("DApp is inactive at this moment") | |
532 | - | else if ((size( | |
531 | + | else if ((size(aB.payments) != 1)) | |
533 | 532 | then throw("One attached payment expected") | |
534 | - | else if ((cf != | |
535 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
536 | - | else if (!( | |
537 | - | then ([ScriptTransfer( | |
538 | - | else if (if ((cg > | |
533 | + | else if ((cf != am)) | |
534 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
535 | + | else if (!(aL)) | |
536 | + | then ([ScriptTransfer(aB.caller, ce, cf)] ++ bf()) | |
537 | + | else if (if ((cg > aH)) | |
539 | 538 | then true | |
540 | - | else (ch > | |
541 | - | then | |
542 | - | else [IntegerEntry(f, ( | |
539 | + | else (ch > aI)) | |
540 | + | then bc(cg, ch) | |
541 | + | else [IntegerEntry(f, (ak - cg)), IntegerEntry(g, (al - ch)), IntegerEntry(k, (an - ce)), Burn(am, ce), ScriptTransfer(aB.caller, cg, ae), ScriptTransfer(aB.caller, ch, af)] | |
543 | 542 | } | |
544 | 543 | ||
545 | 544 | ||
546 | 545 | ||
547 | - | @Callable( | |
546 | + | @Callable(aB) | |
548 | 547 | func exchange (ci) = { | |
549 | - | let cj = $Tuple2( | |
548 | + | let cj = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
550 | 549 | let ce = cj._1 | |
551 | 550 | let cf = cj._2 | |
552 | 551 | func ck (cl,cm) = { | |
553 | 552 | let cn = fraction(cm, ce, (ce + cl)) | |
554 | - | let co = fraction(cn, ( | |
555 | - | let cp = fraction(cn, | |
553 | + | let co = fraction(cn, (aq - ao), aq) | |
554 | + | let cp = fraction(cn, ap, aq) | |
556 | 555 | if ((ci > co)) | |
557 | 556 | then throw(((("Calculated amount to receive " + toString(co)) + " is less than specified minimum ") + toString(ci))) | |
558 | 557 | else $Tuple3(cn, co, cp) | |
559 | 558 | } | |
560 | 559 | ||
561 | - | if (!( | |
560 | + | if (!(ab)) | |
562 | 561 | then throw("DApp is inactive at this moment") | |
563 | - | else if (if (( | |
562 | + | else if (if ((ak == 0)) | |
564 | 563 | then true | |
565 | - | else ( | |
564 | + | else (al == 0)) | |
566 | 565 | then throw("Can't exchange with zero balance") | |
567 | 566 | else if ((0 >= ci)) | |
568 | 567 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(ci))) | |
569 | - | else if ((size( | |
568 | + | else if ((size(aB.payments) != 1)) | |
570 | 569 | then throw("One attached payment expected") | |
571 | - | else if (!( | |
572 | - | then ([ScriptTransfer( | |
573 | - | else if ((cf == | |
570 | + | else if (!(aL)) | |
571 | + | then ([ScriptTransfer(aB.caller, ce, cf)] ++ bf()) | |
572 | + | else if ((cf == ae)) | |
574 | 573 | then { | |
575 | - | let cq = | |
576 | - | let cr = ck( | |
574 | + | let cq = af | |
575 | + | let cr = ck(ak, al) | |
577 | 576 | let cn = cr._1 | |
578 | 577 | let co = cr._2 | |
579 | 578 | let cp = cr._3 | |
580 | - | let cs = ( | |
581 | - | let ct = (( | |
582 | - | if (if (( | |
579 | + | let cs = (ak + ce) | |
580 | + | let ct = ((al - co) - cp) | |
581 | + | if (if ((aD >= cs)) | |
583 | 582 | then true | |
584 | - | else ( | |
585 | - | then | |
586 | - | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer( | |
583 | + | else (aE >= ct)) | |
584 | + | then aZ(co, aI, aj) | |
585 | + | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer(aB.caller, co, cq), ScriptTransfer(L, cp, cq)] | |
587 | 586 | } | |
588 | - | else if ((cf == | |
587 | + | else if ((cf == af)) | |
589 | 588 | then { | |
590 | - | let cq = | |
591 | - | let cu = ck( | |
589 | + | let cq = ae | |
590 | + | let cu = ck(al, ak) | |
592 | 591 | let cn = cu._1 | |
593 | 592 | let co = cu._2 | |
594 | 593 | let cp = cu._3 | |
595 | - | let cs = (( | |
596 | - | let ct = ( | |
597 | - | if (if (( | |
594 | + | let cs = ((ak - co) - cp) | |
595 | + | let ct = (al + ce) | |
596 | + | if (if ((aD >= cs)) | |
598 | 597 | then true | |
599 | - | else ( | |
600 | - | then | |
601 | - | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer( | |
598 | + | else (aE >= ct)) | |
599 | + | then aZ(co, aH, ag) | |
600 | + | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer(aB.caller, co, cq), ScriptTransfer(L, cp, cq)] | |
602 | 601 | } | |
603 | - | else throw(((("Incorrect asset attached. Expected: " + | |
602 | + | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
604 | 603 | } | |
605 | 604 | ||
606 | 605 | ||
607 | 606 | ||
608 | - | @Callable( | |
609 | - | func shutdown () = if (!( | |
607 | + | @Callable(aB) | |
608 | + | func shutdown () = if (!(ab)) | |
610 | 609 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
611 | - | else if (!(containsElement([H, I, J | |
610 | + | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
612 | 611 | then throw("Only admin can call this function") | |
613 | - | else | |
612 | + | else aR("Paused by admin") | |
614 | 613 | ||
615 | 614 | ||
616 | 615 | ||
617 | - | @Callable( | |
618 | - | func activate () = if ( | |
616 | + | @Callable(aB) | |
617 | + | func activate () = if (ab) | |
619 | 618 | then throw("DApp is already active") | |
620 | - | else if (!(containsElement([H, I, J | |
619 | + | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
621 | 620 | then throw("Only admin can call this function") | |
622 | 621 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
623 | 622 | ||
624 | 623 | ||
625 | 624 | ||
626 | - | @Callable( | |
625 | + | @Callable(aB) | |
627 | 626 | func takeIntoAccountExtraFunds (cv) = { | |
628 | - | let cw = ( | |
629 | - | let cx = ( | |
630 | - | let cy = (cw - (if (( | |
627 | + | let cw = (aJ - ak) | |
628 | + | let cx = (aK - al) | |
629 | + | let cy = (cw - (if ((ae == unit)) | |
631 | 630 | then cv | |
632 | 631 | else 0)) | |
633 | - | let cz = (cx - (if (( | |
632 | + | let cz = (cx - (if ((af == unit)) | |
634 | 633 | then cv | |
635 | 634 | else 0)) | |
636 | - | if (!( | |
635 | + | if (!(ab)) | |
637 | 636 | then throw("DApp is inactive at this moment") | |
638 | - | else if (( | |
637 | + | else if ((aB.caller != this)) | |
639 | 638 | then throw("Only the DApp itself can call this function") | |
640 | 639 | else if ((0 > cv)) | |
641 | 640 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cv))) | |
642 | 641 | else if (if ((0 > cw)) | |
643 | 642 | then true | |
644 | 643 | else (0 > cx)) | |
645 | - | then | |
644 | + | then aR("Enroll amount negative") | |
646 | 645 | else if (if ((0 > cy)) | |
647 | 646 | then true | |
648 | 647 | else (0 > cz)) | |
649 | 648 | then throw("Too large amountLeave") | |
650 | - | else [IntegerEntry(f, ( | |
649 | + | else [IntegerEntry(f, (ak + cy)), IntegerEntry(g, (al + cz)), IntegerEntry(("last_income_" + ac), cy), IntegerEntry(("last_income_" + ad), cz)] | |
651 | 650 | } | |
652 | 651 | ||
653 | 652 | ||
654 | 653 | ||
655 | - | @Callable( | |
656 | - | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, ( | |
654 | + | @Callable(aB) | |
655 | + | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, (Y + (aa * Z)))] | |
657 | 656 | ||
658 | 657 | ||
659 | 658 | @Verifier(cA) | |
660 | 659 | func cB () = { | |
661 | 660 | let cC = { | |
662 | - | let cD = if (sigVerify(cA.bodyBytes, cA.proofs[0], | |
661 | + | let cD = if (sigVerify(cA.bodyBytes, cA.proofs[0], G)) | |
663 | 662 | then 1 | |
664 | 663 | else 0 | |
665 | - | let cE = if (sigVerify(cA.bodyBytes, cA.proofs[1], | |
664 | + | let cE = if (sigVerify(cA.bodyBytes, cA.proofs[1], H)) | |
666 | 665 | then 1 | |
667 | 666 | else 0 | |
668 | - | let cF = if (sigVerify(cA.bodyBytes, cA.proofs[2], | |
667 | + | let cF = if (sigVerify(cA.bodyBytes, cA.proofs[2], I)) | |
669 | 668 | then 1 | |
670 | 669 | else 0 | |
671 | 670 | (((cD + cE) + cF) >= 2) | |
672 | 671 | } | |
673 | - | let | |
674 | - | if ($isInstanceOf( | |
672 | + | let D = cA | |
673 | + | if ($isInstanceOf(D, "InvokeScriptTransaction")) | |
675 | 674 | then { | |
676 | - | let cG = | |
675 | + | let cG = D | |
677 | 676 | let cH = if ((cG.dApp == this)) | |
678 | 677 | then (cG.function == "takeIntoAccountExtraFunds") | |
679 | 678 | else false | |
680 | 679 | let cI = if ((cG.dApp == this)) | |
681 | 680 | then (cG.function == "enableFirstHarvest") | |
682 | 681 | else false | |
683 | - | let cJ = if (if ((cG.dApp == | |
682 | + | let cJ = if (if ((cG.dApp == R)) | |
684 | 683 | then if (if (if ((cG.function == "lockNeutrino")) | |
685 | 684 | then (size(cG.payments) == 1) | |
686 | 685 | else false) | |
687 | - | then if ((cG.payments[0].assetId == | |
686 | + | then if ((cG.payments[0].assetId == N)) | |
688 | 687 | then true | |
689 | - | else (cG.payments[0].assetId == | |
688 | + | else (cG.payments[0].assetId == O) | |
690 | 689 | else false) | |
691 | 690 | then true | |
692 | 691 | else if ((cG.function == "unlockNeutrino")) | |
694 | 693 | else false | |
695 | 694 | else false) | |
696 | 695 | then true | |
697 | - | else if ((cG.dApp == | |
696 | + | else if ((cG.dApp == S)) | |
698 | 697 | then if (if (if ((cG.function == "startStaking")) | |
699 | 698 | then (size(cG.payments) == 1) | |
700 | 699 | else false) | |
701 | - | then (cG.payments[0].assetId == | |
700 | + | then (cG.payments[0].assetId == Q) | |
702 | 701 | else false) | |
703 | 702 | then true | |
704 | 703 | else if ((cG.function == "stopStaking")) | |
705 | 704 | then (size(cG.payments) == 0) | |
706 | 705 | else false | |
707 | 706 | else false | |
708 | - | let cK = if (if (if ((cG.dApp == | |
707 | + | let cK = if (if (if ((cG.dApp == T)) | |
709 | 708 | then (cG.function == "exchange") | |
710 | 709 | else false) | |
711 | - | then ( | |
710 | + | then (ae == N) | |
712 | 711 | else false) | |
713 | 712 | then true | |
714 | - | else if (if (( | |
713 | + | else if (if ((af == N)) | |
715 | 714 | then (size(cG.payments) == 1) | |
716 | 715 | else false) | |
717 | - | then (cG.payments[0].assetId == | |
716 | + | then (cG.payments[0].assetId == N) | |
718 | 717 | else false | |
719 | - | let cL = if (if (if ((cG.dApp == | |
718 | + | let cL = if (if (if ((cG.dApp == U)) | |
720 | 719 | then (cG.function == "exchange") | |
721 | 720 | else false) | |
722 | - | then ( | |
721 | + | then (ae == O) | |
723 | 722 | else false) | |
724 | 723 | then true | |
725 | - | else if (if (( | |
724 | + | else if (if ((af == O)) | |
726 | 725 | then (size(cG.payments) == 1) | |
727 | 726 | else false) | |
728 | - | then (cG.payments[0].assetId == | |
727 | + | then (cG.payments[0].assetId == N) | |
729 | 728 | else false | |
730 | - | let cM = if (if (if (sigVerify(cA.bodyBytes, cA.proofs[0], H)) | |
729 | + | let cM = if (if (if (sigVerify(cA.bodyBytes, cA.proofs[0], G)) | |
730 | + | then true | |
731 | + | else sigVerify(cA.bodyBytes, cA.proofs[0], H)) | |
731 | 732 | then true | |
732 | 733 | else sigVerify(cA.bodyBytes, cA.proofs[0], I)) | |
733 | 734 | then true | |
734 | - | else sigVerify(cA.bodyBytes, cA.proofs[0], J)) | |
735 | - | then true | |
736 | - | else sigVerify(cA.bodyBytes, cA.proofs[0], L) | |
735 | + | else sigVerify(cA.bodyBytes, cA.proofs[0], K) | |
737 | 736 | if (if (if (if (if (if (cH) | |
738 | 737 | then true | |
739 | 738 | else cI) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let e = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let g = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let i = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let j = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let k = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "first_harvest" | |
33 | 33 | ||
34 | 34 | let p = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let q = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let r = "base_period" | |
39 | 39 | ||
40 | 40 | let s = "period_length" | |
41 | 41 | ||
42 | 42 | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "asset_priority_" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "script_hash_cpmm" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "init_pool_height_" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "admin_pub_1" | |
51 | 51 | ||
52 | - | let y = "admin_pub_ | |
52 | + | let y = "admin_pub_2" | |
53 | 53 | ||
54 | - | let z = "admin_pub_ | |
54 | + | let z = "admin_pub_3" | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
57 | 57 | ||
58 | - | let B = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
59 | - | ||
60 | - | func C (D) = { | |
61 | - | let E = getString(B, D) | |
62 | - | if ($isInstanceOf(E, "String")) | |
58 | + | func B (C) = { | |
59 | + | let D = getString(A, C) | |
60 | + | if ($isInstanceOf(D, "String")) | |
63 | 61 | then { | |
64 | - | let | |
65 | - | fromBase58String( | |
62 | + | let E = D | |
63 | + | fromBase58String(E) | |
66 | 64 | } | |
67 | 65 | else { | |
68 | - | let | |
66 | + | let F = D | |
69 | 67 | throw("Admin public key is empty") | |
70 | 68 | } | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 | ||
74 | - | let | |
72 | + | let G = B(x) | |
75 | 73 | ||
76 | - | let | |
74 | + | let H = B(y) | |
77 | 75 | ||
78 | - | let J = C(A) | |
76 | + | let I = B(z) | |
77 | + | ||
78 | + | let J = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | 79 | ||
80 | 80 | let K = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
81 | 81 | ||
82 | - | let L = base58' | |
82 | + | let L = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
83 | 83 | ||
84 | - | let M = Address(base58' | |
84 | + | let M = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
85 | 85 | ||
86 | - | let N = | |
86 | + | let N = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
87 | 87 | ||
88 | - | let O = base58' | |
88 | + | let O = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
89 | 89 | ||
90 | - | let P = base58' | |
90 | + | let P = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
91 | 91 | ||
92 | - | let Q = base58' | |
92 | + | let Q = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
93 | 93 | ||
94 | - | let R = base58' | |
94 | + | let R = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
95 | 95 | ||
96 | - | let S = Address(base58' | |
96 | + | let S = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE') | |
97 | 97 | ||
98 | - | let T = Address(base58' | |
98 | + | let T = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
99 | 99 | ||
100 | - | let U = Address(base58' | |
100 | + | let U = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA') | |
101 | 101 | ||
102 | - | let V = | |
102 | + | let V = 270000 | |
103 | 103 | ||
104 | - | let W = | |
104 | + | let W = 234000 | |
105 | 105 | ||
106 | - | let X = | |
106 | + | let X = valueOrErrorMessage(getInteger(M, r), "Empty keyBasePeriod") | |
107 | 107 | ||
108 | - | let Y = valueOrErrorMessage(getInteger( | |
108 | + | let Y = valueOrErrorMessage(getInteger(M, t), "Empty keyStartHeight") | |
109 | 109 | ||
110 | - | let Z = valueOrErrorMessage(getInteger( | |
110 | + | let Z = valueOrErrorMessage(getInteger(M, s), "Empty keyPeriodLength") | |
111 | 111 | ||
112 | - | let aa = | |
112 | + | let aa = ((X + ((height - Y) / Z)) + 1) | |
113 | 113 | ||
114 | - | let ab = ( | |
114 | + | let ab = getBooleanValue(this, c) | |
115 | 115 | ||
116 | - | let ac = | |
116 | + | let ac = getStringValue(this, d) | |
117 | 117 | ||
118 | - | let ad = getStringValue(this, | |
118 | + | let ad = getStringValue(this, e) | |
119 | 119 | ||
120 | - | let ae = getStringValue(this, e) | |
120 | + | let ae = if ((ac == "WAVES")) | |
121 | + | then unit | |
122 | + | else fromBase58String(ac) | |
121 | 123 | ||
122 | 124 | let af = if ((ad == "WAVES")) | |
123 | 125 | then unit | |
124 | 126 | else fromBase58String(ad) | |
125 | 127 | ||
126 | - | let ag = if ((ae == "WAVES")) | |
127 | - | then unit | |
128 | - | else fromBase58String(ae) | |
129 | - | ||
130 | - | let ah = { | |
131 | - | let E = af | |
132 | - | if ($isInstanceOf(E, "ByteVector")) | |
128 | + | let ag = { | |
129 | + | let D = ae | |
130 | + | if ($isInstanceOf(D, "ByteVector")) | |
133 | 131 | then { | |
134 | - | let | |
135 | - | value(assetInfo( | |
132 | + | let ah = D | |
133 | + | value(assetInfo(ah)).name | |
136 | 134 | } | |
137 | - | else if ($isInstanceOf( | |
135 | + | else if ($isInstanceOf(D, "Unit")) | |
138 | 136 | then { | |
139 | - | let | |
137 | + | let ai = D | |
140 | 138 | "WAVES" | |
141 | 139 | } | |
142 | 140 | else throw("Match error") | |
143 | 141 | } | |
144 | 142 | ||
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
143 | + | let aj = { | |
144 | + | let D = af | |
145 | + | if ($isInstanceOf(D, "ByteVector")) | |
148 | 146 | then { | |
149 | - | let | |
150 | - | value(assetInfo( | |
147 | + | let ah = D | |
148 | + | value(assetInfo(ah)).name | |
151 | 149 | } | |
152 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(D, "Unit")) | |
153 | 151 | then { | |
154 | - | let | |
152 | + | let ai = D | |
155 | 153 | "WAVES" | |
156 | 154 | } | |
157 | 155 | else throw("Match error") | |
158 | 156 | } | |
159 | 157 | ||
160 | - | let | |
158 | + | let ak = getIntegerValue(this, f) | |
161 | 159 | ||
162 | - | let | |
160 | + | let al = getIntegerValue(this, g) | |
163 | 161 | ||
164 | - | let | |
162 | + | let am = fromBase58String(getStringValue(this, j)) | |
165 | 163 | ||
166 | - | let | |
164 | + | let an = getIntegerValue(this, k) | |
167 | 165 | ||
168 | - | let | |
166 | + | let ao = 3000 | |
169 | 167 | ||
170 | - | let | |
168 | + | let ap = 1200 | |
171 | 169 | ||
172 | - | let | |
170 | + | let aq = 1000000 | |
173 | 171 | ||
174 | - | let | |
172 | + | let ar = 1000 | |
175 | 173 | ||
176 | - | let | |
174 | + | let as = 100000000 | |
177 | 175 | ||
178 | - | let | |
176 | + | let at = 1000 | |
179 | 177 | ||
180 | - | let | |
178 | + | let au = 8 | |
181 | 179 | ||
182 | - | let | |
180 | + | let av = 1000000000 | |
183 | 181 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
182 | + | func aw (ax) = { | |
183 | + | let D = ax | |
184 | + | if ($isInstanceOf(D, "ByteVector")) | |
187 | 185 | then { | |
188 | - | let | |
189 | - | assetBalance(this, | |
186 | + | let ah = D | |
187 | + | assetBalance(this, ah) | |
190 | 188 | } | |
191 | - | else if ($isInstanceOf( | |
189 | + | else if ($isInstanceOf(D, "Unit")) | |
192 | 190 | then { | |
193 | - | let | |
191 | + | let ai = D | |
194 | 192 | wavesBalance(this).available | |
195 | 193 | } | |
196 | 194 | else throw("Match error") | |
197 | 195 | } | |
198 | 196 | ||
199 | 197 | ||
200 | - | func | |
201 | - | let | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
198 | + | func ay (ax) = { | |
199 | + | let az = { | |
200 | + | let D = ax | |
201 | + | if ($isInstanceOf(D, "ByteVector")) | |
204 | 202 | then { | |
205 | - | let | |
206 | - | if (if (( | |
203 | + | let aA = D | |
204 | + | if (if ((aA == N)) | |
207 | 205 | then true | |
208 | - | else ( | |
209 | - | then getInteger( | |
210 | - | else if (( | |
211 | - | then getInteger( | |
206 | + | else (aA == O)) | |
207 | + | then getInteger(R, ((("rpd_balance_" + toBase58String(aA)) + "_") + toString(this))) | |
208 | + | else if ((aA == Q)) | |
209 | + | then getInteger(S, ((("%s%s%s__stakingBalance__" + toBase58String(aA)) + "__") + toString(this))) | |
212 | 210 | else 0 | |
213 | 211 | } | |
214 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(D, "Unit")) | |
215 | 213 | then 0 | |
216 | 214 | else throw("Match error") | |
217 | 215 | } | |
218 | - | let | |
219 | - | if ($isInstanceOf( | |
216 | + | let D = az | |
217 | + | if ($isInstanceOf(D, "Int")) | |
220 | 218 | then { | |
221 | - | let | |
222 | - | | |
219 | + | let aB = D | |
220 | + | aB | |
223 | 221 | } | |
224 | 222 | else 0 | |
225 | 223 | } | |
226 | 224 | ||
227 | 225 | ||
228 | - | func | |
229 | - | let | |
230 | - | if ($isInstanceOf( | |
226 | + | func aC (ax) = { | |
227 | + | let D = ax | |
228 | + | if ($isInstanceOf(D, "ByteVector")) | |
231 | 229 | then { | |
232 | - | let | |
233 | - | if (if (( | |
230 | + | let ah = D | |
231 | + | if (if ((ah == N)) | |
234 | 232 | then true | |
235 | - | else ( | |
233 | + | else (ah == P)) | |
236 | 234 | then true | |
237 | 235 | else false | |
238 | 236 | } | |
239 | - | else if ($isInstanceOf( | |
237 | + | else if ($isInstanceOf(D, "Unit")) | |
240 | 238 | then { | |
241 | - | let | |
239 | + | let ai = D | |
242 | 240 | true | |
243 | 241 | } | |
244 | 242 | else throw("Match error") | |
245 | 243 | } | |
246 | 244 | ||
247 | 245 | ||
248 | - | let | |
246 | + | let aD = ay(ae) | |
249 | 247 | ||
250 | - | let | |
248 | + | let aE = ay(af) | |
251 | 249 | ||
252 | - | let | |
250 | + | let aF = getIntegerValue(this, h) | |
253 | 251 | ||
254 | - | let aH = getIntegerValue(this, i) | |
252 | + | let aG = getIntegerValue(this, i) | |
253 | + | ||
254 | + | let aH = (ak - aD) | |
255 | 255 | ||
256 | 256 | let aI = (al - aE) | |
257 | 257 | ||
258 | - | let aJ = ( | |
258 | + | let aJ = (aw(ae) + aD) | |
259 | 259 | ||
260 | - | let aK = ( | |
260 | + | let aK = (aw(af) + aE) | |
261 | 261 | ||
262 | - | let aL = (ax(ag) + aF) | |
263 | - | ||
264 | - | let aM = if ((aK >= al)) | |
265 | - | then (aL >= am) | |
262 | + | let aL = if ((aJ >= ak)) | |
263 | + | then (aK >= al) | |
266 | 264 | else false | |
267 | 265 | ||
268 | - | func | |
269 | - | let | |
270 | - | if ($isInstanceOf( | |
266 | + | func aM (ax) = { | |
267 | + | let D = ax | |
268 | + | if ($isInstanceOf(D, "ByteVector")) | |
271 | 269 | then { | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | $Tuple3( | |
270 | + | let ah = D | |
271 | + | let aN = toBase58String(ah) | |
272 | + | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
273 | + | $Tuple3(aN, aO.name, aO.decimals) | |
276 | 274 | } | |
277 | - | else if ($isInstanceOf( | |
275 | + | else if ($isInstanceOf(D, "Unit")) | |
278 | 276 | then { | |
279 | - | let | |
277 | + | let ai = D | |
280 | 278 | $Tuple3("WAVES", "WAVES", 8) | |
281 | 279 | } | |
282 | 280 | else throw("Match error") | |
283 | 281 | } | |
284 | 282 | ||
285 | 283 | ||
286 | - | func | |
284 | + | func aP (aQ) = if ((aQ == "WAVES")) | |
287 | 285 | then $Tuple3("WAVES", "WAVES", 8) | |
288 | 286 | else { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | $Tuple3( | |
287 | + | let aN = aQ | |
288 | + | let ah = fromBase58String(aQ) | |
289 | + | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
290 | + | $Tuple3(aN, aO.name, aO.decimals) | |
293 | 291 | } | |
294 | 292 | ||
295 | 293 | ||
296 | - | func | |
294 | + | func aR (aS) = [BooleanEntry(c, false), StringEntry(n, aS)] | |
297 | 295 | ||
298 | 296 | ||
299 | - | func | |
297 | + | func aT (aU,ax,aV) = if (if ((ax == N)) | |
300 | 298 | then true | |
301 | - | else ( | |
299 | + | else (ax == Q)) | |
302 | 300 | then { | |
303 | - | let | |
304 | - | then ( | |
301 | + | let aW = if ((ax == N)) | |
302 | + | then (V * (if ((aV == O)) | |
305 | 303 | then 2 | |
306 | 304 | else 1)) | |
307 | - | else if (( | |
308 | - | then | |
305 | + | else if ((ax == Q)) | |
306 | + | then W | |
309 | 307 | else 0 | |
310 | - | let | |
311 | - | if ((0 >= | |
312 | - | then throw((((("Insufficient amount " + toString( | |
313 | - | else | |
308 | + | let aX = (aU - aW) | |
309 | + | if ((0 >= aX)) | |
310 | + | then throw((((("Insufficient amount " + toString(aU)) + " to deduct staking fee ") + toString(aW)) + "USDN/EURN")) | |
311 | + | else aX | |
314 | 312 | } | |
315 | - | else | |
313 | + | else aU | |
316 | 314 | ||
317 | 315 | ||
318 | - | func | |
319 | - | then ( | |
316 | + | func aY (ax,aV) = if ((ax == N)) | |
317 | + | then (V * (if ((aV == O)) | |
320 | 318 | then 2 | |
321 | 319 | else 1)) | |
322 | - | else if (( | |
323 | - | then | |
320 | + | else if ((ax == Q)) | |
321 | + | then W | |
324 | 322 | else 0 | |
325 | 323 | ||
326 | 324 | ||
327 | - | func | |
325 | + | func aZ (aU,ba,bb) = throw((((((((("Insufficient DApp balance to pay " + toString(aU)) + " ") + bb) + " due to staking. Available: ") + toString(ba)) + " ") + bb) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
328 | 326 | ||
329 | 327 | ||
330 | - | func | |
328 | + | func bc (bd,be) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bd)) + " ") + ag) + " and ") + toString(be)) + " ") + aj) + " due to staking. Available: ") + toString(aH)) + " ") + ag) + " and ") + toString(aI)) + " ") + aj) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
331 | 329 | ||
332 | 330 | ||
333 | - | func | |
331 | + | func bf () = aR(((((((((((((((("Suspicious state. Actual balances: " + toString(aJ)) + " ") + ag) + ", ") + toString(aK)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj)) | |
334 | 332 | ||
335 | 333 | ||
336 | - | @Callable(aC) | |
337 | - | func init (bh) = { | |
338 | - | let bi = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
339 | - | let bj = bi._1 | |
340 | - | let bk = bi._2 | |
341 | - | let bl = $Tuple2(aC.payments[1].amount, aC.payments[1].assetId) | |
342 | - | let bm = bl._1 | |
343 | - | let bn = bl._2 | |
344 | - | let bo = $Tuple2(aC.payments[2].amount, aC.payments[2].assetId) | |
345 | - | let bp = bo._1 | |
346 | - | let bq = bo._2 | |
347 | - | let br = isDataStorageUntouched(this) | |
348 | - | let bs = scriptHash(this) | |
349 | - | if ((aC.caller == this)) | |
334 | + | @Callable(aB) | |
335 | + | func init (bg) = { | |
336 | + | let bh = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
337 | + | let bi = bh._1 | |
338 | + | let bj = bh._2 | |
339 | + | let bk = $Tuple2(aB.payments[1].amount, aB.payments[1].assetId) | |
340 | + | let bl = bk._1 | |
341 | + | let bm = bk._2 | |
342 | + | let bn = $Tuple2(aB.payments[2].amount, aB.payments[2].assetId) | |
343 | + | let bo = bn._1 | |
344 | + | let bp = bn._2 | |
345 | + | let bq = isDataStorageUntouched(this) | |
346 | + | let br = scriptHash(this) | |
347 | + | let bs = addressFromStringValue(bg) | |
348 | + | if ((aB.caller == this)) | |
350 | 349 | then throw("You can't call yourself") | |
351 | - | else if (if (( | |
350 | + | else if (if ((bp != P)) | |
352 | 351 | then true | |
353 | - | else ( | |
352 | + | else (bo != av)) | |
354 | 353 | then throw("You need to attach 10 SWOP tokens") | |
355 | - | else if (if (!( | |
356 | - | then !( | |
354 | + | else if (if (!(aC(bj))) | |
355 | + | then !(aC(bm)) | |
357 | 356 | else false) | |
358 | 357 | then throw("One of assets must be USDN, WAVES or SWOP") | |
359 | - | else if (if (( | |
358 | + | else if (if ((br == value(getBinary(A, v)))) | |
360 | 359 | then true | |
361 | - | else !( | |
360 | + | else !(bq)) | |
362 | 361 | then throw("Unexpected script was found.") | |
363 | 362 | else if (isDefined(getBoolean(this, c))) | |
364 | 363 | then throw("DApp is already active") | |
365 | - | else if (( | |
364 | + | else if ((bj == bm)) | |
366 | 365 | then throw("Assets must be different") | |
367 | 366 | else { | |
368 | 367 | let bt = { | |
369 | - | let | |
370 | - | if ($isInstanceOf( | |
368 | + | let D = bj | |
369 | + | if ($isInstanceOf(D, "ByteVector")) | |
371 | 370 | then { | |
372 | - | let | |
373 | - | toBase58String( | |
371 | + | let ah = D | |
372 | + | toBase58String(ah) | |
374 | 373 | } | |
375 | - | else if ($isInstanceOf( | |
374 | + | else if ($isInstanceOf(D, "Unit")) | |
376 | 375 | then { | |
377 | - | let | |
376 | + | let ai = D | |
378 | 377 | "WAVES" | |
379 | 378 | } | |
380 | 379 | else throw("Match error") | |
381 | 380 | } | |
382 | 381 | let bu = { | |
383 | - | let | |
384 | - | if ($isInstanceOf( | |
382 | + | let D = bm | |
383 | + | if ($isInstanceOf(D, "ByteVector")) | |
385 | 384 | then { | |
386 | - | let | |
387 | - | toBase58String( | |
385 | + | let ah = D | |
386 | + | toBase58String(ah) | |
388 | 387 | } | |
389 | - | else if ($isInstanceOf( | |
388 | + | else if ($isInstanceOf(D, "Unit")) | |
390 | 389 | then { | |
391 | - | let | |
390 | + | let ai = D | |
392 | 391 | "WAVES" | |
393 | 392 | } | |
394 | 393 | else throw("Match error") | |
395 | 394 | } | |
396 | - | let bv = valueOrElse(getInteger( | |
397 | - | let bw = valueOrElse(getInteger( | |
395 | + | let bv = valueOrElse(getInteger(A, (u + bt)), 999999) | |
396 | + | let bw = valueOrElse(getInteger(A, (u + bu)), 999999) | |
398 | 397 | let bx = if ((bw > bv)) | |
399 | - | then $Tuple4(bm, | |
400 | - | else $Tuple4(bj, | |
398 | + | then $Tuple4(bl, bm, bi, bj) | |
399 | + | else $Tuple4(bi, bj, bl, bm) | |
401 | 400 | let by = bx._1 | |
402 | 401 | let bz = bx._2 | |
403 | 402 | let bA = bx._3 | |
404 | 403 | let bB = bx._4 | |
405 | - | let bC = | |
404 | + | let bC = aM(bz) | |
406 | 405 | let bD = bC._1 | |
407 | 406 | let bE = bC._2 | |
408 | 407 | let bF = bC._3 | |
409 | - | let bG = | |
408 | + | let bG = aM(bB) | |
410 | 409 | let bH = bG._1 | |
411 | 410 | let bI = bG._2 | |
412 | 411 | let bJ = bG._3 | |
413 | - | let bK = invoke( | |
412 | + | let bK = invoke(A, "addPool", [this, ((bE + "_") + bI)], nil) | |
414 | 413 | if ((bK == bK)) | |
415 | - | then if (!(isDefined(getString( | |
414 | + | then if (!(isDefined(getString(A, ("pool_" + toString(this)))))) | |
416 | 415 | then throw("Pool is not added") | |
417 | 416 | else { | |
418 | 417 | let bL = ((("s" + take(bE, 7)) + "_") + take(bI, 7)) | |
419 | 418 | let bM = ((((("ShareToken of SwopFi protocol for " + bE) + " and ") + bI) + " at address ") + toString(this)) | |
420 | 419 | let bN = ((bF + bJ) / 2) | |
421 | 420 | let bO = pow(by, bF, 5, 1, bF, DOWN) | |
422 | 421 | let bP = pow(bA, bJ, 5, 1, bJ, DOWN) | |
423 | 422 | let bQ = pow(10, 0, bN, 0, 0, DOWN) | |
424 | 423 | let bR = fraction(bO, bP, bQ) | |
425 | 424 | let bS = Issue(bL, bM, bR, bN, true) | |
426 | 425 | let bT = calculateAssetId(bS) | |
427 | - | let bU = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bD), StringEntry(e, bH), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(l, | |
426 | + | let bU = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bD), StringEntry(e, bH), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(l, ao), IntegerEntry(m, aq), bS, StringEntry(j, toBase58String(bT)), IntegerEntry(k, bR), IntegerEntry(w, height), ScriptTransfer(bs, bR, bT), ScriptTransfer(L, av, P)] | |
428 | 427 | bU | |
429 | 428 | } | |
430 | 429 | else throw("Strict value is not equal to itself.") | |
431 | 430 | } | |
432 | 431 | } | |
433 | 432 | ||
434 | 433 | ||
435 | 434 | ||
436 | - | @Callable( | |
437 | - | func keepLimitForFirstHarvest (bV) = if (!( | |
435 | + | @Callable(aB) | |
436 | + | func keepLimitForFirstHarvest (bV) = if (!(ab)) | |
438 | 437 | then throw("DApp is inactive at this moment") | |
439 | - | else if (!(containsElement([H, I, | |
438 | + | else if (!(containsElement([G, H, I, K], aB.callerPublicKey))) | |
440 | 439 | then throw("Only admin can call this function") | |
441 | 440 | else [IntegerEntry(q, bV)] | |
442 | 441 | ||
443 | 442 | ||
444 | 443 | ||
445 | - | @Callable( | |
444 | + | @Callable(aB) | |
446 | 445 | func replenishWithTwoTokens (bW) = { | |
447 | - | let bz = | |
448 | - | let bB = | |
449 | - | let by = | |
450 | - | let bA = | |
451 | - | if (if (( | |
452 | - | then ( | |
446 | + | let bz = aB.payments[0].assetId | |
447 | + | let bB = aB.payments[1].assetId | |
448 | + | let by = aT(aB.payments[0].amount, bz, bB) | |
449 | + | let bA = aT(aB.payments[1].amount, bB, bz) | |
450 | + | if (if ((ak == 0)) | |
451 | + | then (al == 0) | |
453 | 452 | else false) | |
454 | 453 | then { | |
455 | - | let bX = | |
454 | + | let bX = aM(bz) | |
456 | 455 | let bD = bX._1 | |
457 | 456 | let bE = bX._2 | |
458 | 457 | let bF = bX._3 | |
459 | - | let bY = | |
458 | + | let bY = aM(bB) | |
460 | 459 | let bH = bY._1 | |
461 | 460 | let bI = bY._2 | |
462 | 461 | let bJ = bY._3 | |
463 | - | let bZ = fraction(fraction( | |
462 | + | let bZ = fraction(fraction(aF, as, by), ar, fraction(aG, as, bA)) | |
464 | 463 | if ((bz == bB)) | |
465 | 464 | then throw("Assets must be different") | |
466 | 465 | else { | |
467 | 466 | let bN = ((bF + bJ) / 2) | |
468 | 467 | let bR = fraction(pow(by, bF, 5, 1, bF, DOWN), pow(bA, bJ, 5, 1, bJ, DOWN), pow(10, 0, bN, 0, 0, DOWN)) | |
469 | - | if (!( | |
468 | + | if (!(ab)) | |
470 | 469 | then throw("DApp is inactive at this moment") | |
471 | 470 | else if (if ((0 > bW)) | |
472 | 471 | then true | |
473 | - | else (bW > | |
474 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
475 | - | else if ((size( | |
472 | + | else (bW > at)) | |
473 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bW))) | |
474 | + | else if ((size(aB.payments) != 2)) | |
476 | 475 | then throw("Two attached assets expected") | |
477 | - | else if (if (((( | |
476 | + | else if (if ((((ar * (at - bW)) / at) > bZ)) | |
478 | 477 | then true | |
479 | - | else (bZ > (( | |
478 | + | else (bZ > ((ar * (at + bW)) / at))) | |
480 | 479 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
481 | - | else if (if ((bz != | |
480 | + | else if (if ((bz != ae)) | |
482 | 481 | then true | |
483 | - | else (bB != | |
484 | - | then throw(((("Incorrect assets attached. Expected: " + | |
482 | + | else (bB != af)) | |
483 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
485 | 484 | else if ((bR == 0)) | |
486 | 485 | then throw("Too small amount to replenish") | |
487 | - | else if (!( | |
488 | - | then ([ScriptTransfer( | |
489 | - | else [Reissue( | |
486 | + | else if (!(aL)) | |
487 | + | then ([ScriptTransfer(aB.caller, by, bz), ScriptTransfer(aB.caller, bA, bB)] ++ bf()) | |
488 | + | else [Reissue(am, bR, true), IntegerEntry(f, by), IntegerEntry(g, bA), IntegerEntry(k, bR), ScriptTransfer(aB.caller, bR, am)] | |
490 | 489 | } | |
491 | 490 | } | |
492 | 491 | else { | |
493 | - | let bZ = fraction(fraction( | |
494 | - | let ca = fraction(by, | |
495 | - | let cb = fraction(bA, | |
496 | - | let cc = fraction(min([ca, cb]), | |
497 | - | if (!( | |
492 | + | let bZ = fraction(fraction(ak, as, by), ar, fraction(al, as, bA)) | |
493 | + | let ca = fraction(by, as, ak) | |
494 | + | let cb = fraction(bA, as, al) | |
495 | + | let cc = fraction(min([ca, cb]), an, as) | |
496 | + | if (!(ab)) | |
498 | 497 | then throw("DApp is inactive at this moment") | |
499 | 498 | else if (if ((0 > bW)) | |
500 | 499 | then true | |
501 | - | else (bW > | |
502 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
503 | - | else if ((size( | |
500 | + | else (bW > at)) | |
501 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bW))) | |
502 | + | else if ((size(aB.payments) != 2)) | |
504 | 503 | then throw("Two attached assets expected") | |
505 | - | else if (if ((bz != | |
504 | + | else if (if ((bz != ae)) | |
506 | 505 | then true | |
507 | - | else (bB != | |
508 | - | then throw(((("Incorrect assets attached. Expected: " + | |
509 | - | else if (if (((( | |
506 | + | else (bB != af)) | |
507 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
508 | + | else if (if ((((ar * (at - bW)) / at) > bZ)) | |
510 | 509 | then true | |
511 | - | else (bZ > (( | |
510 | + | else (bZ > ((ar * (at + bW)) / at))) | |
512 | 511 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
513 | 512 | else if ((cc == 0)) | |
514 | 513 | then throw("Too small amount to replenish") | |
515 | - | else if (!( | |
516 | - | then ([ScriptTransfer( | |
517 | - | else [IntegerEntry(f, ( | |
514 | + | else if (!(aL)) | |
515 | + | then ([ScriptTransfer(aB.caller, by, bz), ScriptTransfer(aB.caller, bA, bB)] ++ bf()) | |
516 | + | else [IntegerEntry(f, (ak + by)), IntegerEntry(g, (al + bA)), IntegerEntry(k, (an + cc)), Reissue(am, cc, true), ScriptTransfer(aB.caller, cc, am)] | |
518 | 517 | } | |
519 | 518 | } | |
520 | 519 | ||
521 | 520 | ||
522 | 521 | ||
523 | - | @Callable( | |
522 | + | @Callable(aB) | |
524 | 523 | func withdraw () = { | |
525 | - | let cd = $Tuple2( | |
524 | + | let cd = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
526 | 525 | let ce = cd._1 | |
527 | 526 | let cf = cd._2 | |
528 | - | let cg = | |
529 | - | let ch = | |
530 | - | if (!( | |
527 | + | let cg = aT(fraction(ce, ak, an), ae, af) | |
528 | + | let ch = aT(fraction(ce, al, an), af, ae) | |
529 | + | if (!(ab)) | |
531 | 530 | then throw("DApp is inactive at this moment") | |
532 | - | else if ((size( | |
531 | + | else if ((size(aB.payments) != 1)) | |
533 | 532 | then throw("One attached payment expected") | |
534 | - | else if ((cf != | |
535 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
536 | - | else if (!( | |
537 | - | then ([ScriptTransfer( | |
538 | - | else if (if ((cg > | |
533 | + | else if ((cf != am)) | |
534 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
535 | + | else if (!(aL)) | |
536 | + | then ([ScriptTransfer(aB.caller, ce, cf)] ++ bf()) | |
537 | + | else if (if ((cg > aH)) | |
539 | 538 | then true | |
540 | - | else (ch > | |
541 | - | then | |
542 | - | else [IntegerEntry(f, ( | |
539 | + | else (ch > aI)) | |
540 | + | then bc(cg, ch) | |
541 | + | else [IntegerEntry(f, (ak - cg)), IntegerEntry(g, (al - ch)), IntegerEntry(k, (an - ce)), Burn(am, ce), ScriptTransfer(aB.caller, cg, ae), ScriptTransfer(aB.caller, ch, af)] | |
543 | 542 | } | |
544 | 543 | ||
545 | 544 | ||
546 | 545 | ||
547 | - | @Callable( | |
546 | + | @Callable(aB) | |
548 | 547 | func exchange (ci) = { | |
549 | - | let cj = $Tuple2( | |
548 | + | let cj = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
550 | 549 | let ce = cj._1 | |
551 | 550 | let cf = cj._2 | |
552 | 551 | func ck (cl,cm) = { | |
553 | 552 | let cn = fraction(cm, ce, (ce + cl)) | |
554 | - | let co = fraction(cn, ( | |
555 | - | let cp = fraction(cn, | |
553 | + | let co = fraction(cn, (aq - ao), aq) | |
554 | + | let cp = fraction(cn, ap, aq) | |
556 | 555 | if ((ci > co)) | |
557 | 556 | then throw(((("Calculated amount to receive " + toString(co)) + " is less than specified minimum ") + toString(ci))) | |
558 | 557 | else $Tuple3(cn, co, cp) | |
559 | 558 | } | |
560 | 559 | ||
561 | - | if (!( | |
560 | + | if (!(ab)) | |
562 | 561 | then throw("DApp is inactive at this moment") | |
563 | - | else if (if (( | |
562 | + | else if (if ((ak == 0)) | |
564 | 563 | then true | |
565 | - | else ( | |
564 | + | else (al == 0)) | |
566 | 565 | then throw("Can't exchange with zero balance") | |
567 | 566 | else if ((0 >= ci)) | |
568 | 567 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(ci))) | |
569 | - | else if ((size( | |
568 | + | else if ((size(aB.payments) != 1)) | |
570 | 569 | then throw("One attached payment expected") | |
571 | - | else if (!( | |
572 | - | then ([ScriptTransfer( | |
573 | - | else if ((cf == | |
570 | + | else if (!(aL)) | |
571 | + | then ([ScriptTransfer(aB.caller, ce, cf)] ++ bf()) | |
572 | + | else if ((cf == ae)) | |
574 | 573 | then { | |
575 | - | let cq = | |
576 | - | let cr = ck( | |
574 | + | let cq = af | |
575 | + | let cr = ck(ak, al) | |
577 | 576 | let cn = cr._1 | |
578 | 577 | let co = cr._2 | |
579 | 578 | let cp = cr._3 | |
580 | - | let cs = ( | |
581 | - | let ct = (( | |
582 | - | if (if (( | |
579 | + | let cs = (ak + ce) | |
580 | + | let ct = ((al - co) - cp) | |
581 | + | if (if ((aD >= cs)) | |
583 | 582 | then true | |
584 | - | else ( | |
585 | - | then | |
586 | - | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer( | |
583 | + | else (aE >= ct)) | |
584 | + | then aZ(co, aI, aj) | |
585 | + | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer(aB.caller, co, cq), ScriptTransfer(L, cp, cq)] | |
587 | 586 | } | |
588 | - | else if ((cf == | |
587 | + | else if ((cf == af)) | |
589 | 588 | then { | |
590 | - | let cq = | |
591 | - | let cu = ck( | |
589 | + | let cq = ae | |
590 | + | let cu = ck(al, ak) | |
592 | 591 | let cn = cu._1 | |
593 | 592 | let co = cu._2 | |
594 | 593 | let cp = cu._3 | |
595 | - | let cs = (( | |
596 | - | let ct = ( | |
597 | - | if (if (( | |
594 | + | let cs = ((ak - co) - cp) | |
595 | + | let ct = (al + ce) | |
596 | + | if (if ((aD >= cs)) | |
598 | 597 | then true | |
599 | - | else ( | |
600 | - | then | |
601 | - | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer( | |
598 | + | else (aE >= ct)) | |
599 | + | then aZ(co, aH, ag) | |
600 | + | else [IntegerEntry(f, cs), IntegerEntry(g, ct), ScriptTransfer(aB.caller, co, cq), ScriptTransfer(L, cp, cq)] | |
602 | 601 | } | |
603 | - | else throw(((("Incorrect asset attached. Expected: " + | |
602 | + | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
604 | 603 | } | |
605 | 604 | ||
606 | 605 | ||
607 | 606 | ||
608 | - | @Callable( | |
609 | - | func shutdown () = if (!( | |
607 | + | @Callable(aB) | |
608 | + | func shutdown () = if (!(ab)) | |
610 | 609 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
611 | - | else if (!(containsElement([H, I, J | |
610 | + | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
612 | 611 | then throw("Only admin can call this function") | |
613 | - | else | |
612 | + | else aR("Paused by admin") | |
614 | 613 | ||
615 | 614 | ||
616 | 615 | ||
617 | - | @Callable( | |
618 | - | func activate () = if ( | |
616 | + | @Callable(aB) | |
617 | + | func activate () = if (ab) | |
619 | 618 | then throw("DApp is already active") | |
620 | - | else if (!(containsElement([H, I, J | |
619 | + | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
621 | 620 | then throw("Only admin can call this function") | |
622 | 621 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
623 | 622 | ||
624 | 623 | ||
625 | 624 | ||
626 | - | @Callable( | |
625 | + | @Callable(aB) | |
627 | 626 | func takeIntoAccountExtraFunds (cv) = { | |
628 | - | let cw = ( | |
629 | - | let cx = ( | |
630 | - | let cy = (cw - (if (( | |
627 | + | let cw = (aJ - ak) | |
628 | + | let cx = (aK - al) | |
629 | + | let cy = (cw - (if ((ae == unit)) | |
631 | 630 | then cv | |
632 | 631 | else 0)) | |
633 | - | let cz = (cx - (if (( | |
632 | + | let cz = (cx - (if ((af == unit)) | |
634 | 633 | then cv | |
635 | 634 | else 0)) | |
636 | - | if (!( | |
635 | + | if (!(ab)) | |
637 | 636 | then throw("DApp is inactive at this moment") | |
638 | - | else if (( | |
637 | + | else if ((aB.caller != this)) | |
639 | 638 | then throw("Only the DApp itself can call this function") | |
640 | 639 | else if ((0 > cv)) | |
641 | 640 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cv))) | |
642 | 641 | else if (if ((0 > cw)) | |
643 | 642 | then true | |
644 | 643 | else (0 > cx)) | |
645 | - | then | |
644 | + | then aR("Enroll amount negative") | |
646 | 645 | else if (if ((0 > cy)) | |
647 | 646 | then true | |
648 | 647 | else (0 > cz)) | |
649 | 648 | then throw("Too large amountLeave") | |
650 | - | else [IntegerEntry(f, ( | |
649 | + | else [IntegerEntry(f, (ak + cy)), IntegerEntry(g, (al + cz)), IntegerEntry(("last_income_" + ac), cy), IntegerEntry(("last_income_" + ad), cz)] | |
651 | 650 | } | |
652 | 651 | ||
653 | 652 | ||
654 | 653 | ||
655 | - | @Callable( | |
656 | - | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, ( | |
654 | + | @Callable(aB) | |
655 | + | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, (Y + (aa * Z)))] | |
657 | 656 | ||
658 | 657 | ||
659 | 658 | @Verifier(cA) | |
660 | 659 | func cB () = { | |
661 | 660 | let cC = { | |
662 | - | let cD = if (sigVerify(cA.bodyBytes, cA.proofs[0], | |
661 | + | let cD = if (sigVerify(cA.bodyBytes, cA.proofs[0], G)) | |
663 | 662 | then 1 | |
664 | 663 | else 0 | |
665 | - | let cE = if (sigVerify(cA.bodyBytes, cA.proofs[1], | |
664 | + | let cE = if (sigVerify(cA.bodyBytes, cA.proofs[1], H)) | |
666 | 665 | then 1 | |
667 | 666 | else 0 | |
668 | - | let cF = if (sigVerify(cA.bodyBytes, cA.proofs[2], | |
667 | + | let cF = if (sigVerify(cA.bodyBytes, cA.proofs[2], I)) | |
669 | 668 | then 1 | |
670 | 669 | else 0 | |
671 | 670 | (((cD + cE) + cF) >= 2) | |
672 | 671 | } | |
673 | - | let | |
674 | - | if ($isInstanceOf( | |
672 | + | let D = cA | |
673 | + | if ($isInstanceOf(D, "InvokeScriptTransaction")) | |
675 | 674 | then { | |
676 | - | let cG = | |
675 | + | let cG = D | |
677 | 676 | let cH = if ((cG.dApp == this)) | |
678 | 677 | then (cG.function == "takeIntoAccountExtraFunds") | |
679 | 678 | else false | |
680 | 679 | let cI = if ((cG.dApp == this)) | |
681 | 680 | then (cG.function == "enableFirstHarvest") | |
682 | 681 | else false | |
683 | - | let cJ = if (if ((cG.dApp == | |
682 | + | let cJ = if (if ((cG.dApp == R)) | |
684 | 683 | then if (if (if ((cG.function == "lockNeutrino")) | |
685 | 684 | then (size(cG.payments) == 1) | |
686 | 685 | else false) | |
687 | - | then if ((cG.payments[0].assetId == | |
686 | + | then if ((cG.payments[0].assetId == N)) | |
688 | 687 | then true | |
689 | - | else (cG.payments[0].assetId == | |
688 | + | else (cG.payments[0].assetId == O) | |
690 | 689 | else false) | |
691 | 690 | then true | |
692 | 691 | else if ((cG.function == "unlockNeutrino")) | |
693 | 692 | then (size(cG.payments) == 0) | |
694 | 693 | else false | |
695 | 694 | else false) | |
696 | 695 | then true | |
697 | - | else if ((cG.dApp == | |
696 | + | else if ((cG.dApp == S)) | |
698 | 697 | then if (if (if ((cG.function == "startStaking")) | |
699 | 698 | then (size(cG.payments) == 1) | |
700 | 699 | else false) | |
701 | - | then (cG.payments[0].assetId == | |
700 | + | then (cG.payments[0].assetId == Q) | |
702 | 701 | else false) | |
703 | 702 | then true | |
704 | 703 | else if ((cG.function == "stopStaking")) | |
705 | 704 | then (size(cG.payments) == 0) | |
706 | 705 | else false | |
707 | 706 | else false | |
708 | - | let cK = if (if (if ((cG.dApp == | |
707 | + | let cK = if (if (if ((cG.dApp == T)) | |
709 | 708 | then (cG.function == "exchange") | |
710 | 709 | else false) | |
711 | - | then ( | |
710 | + | then (ae == N) | |
712 | 711 | else false) | |
713 | 712 | then true | |
714 | - | else if (if (( | |
713 | + | else if (if ((af == N)) | |
715 | 714 | then (size(cG.payments) == 1) | |
716 | 715 | else false) | |
717 | - | then (cG.payments[0].assetId == | |
716 | + | then (cG.payments[0].assetId == N) | |
718 | 717 | else false | |
719 | - | let cL = if (if (if ((cG.dApp == | |
718 | + | let cL = if (if (if ((cG.dApp == U)) | |
720 | 719 | then (cG.function == "exchange") | |
721 | 720 | else false) | |
722 | - | then ( | |
721 | + | then (ae == O) | |
723 | 722 | else false) | |
724 | 723 | then true | |
725 | - | else if (if (( | |
724 | + | else if (if ((af == O)) | |
726 | 725 | then (size(cG.payments) == 1) | |
727 | 726 | else false) | |
728 | - | then (cG.payments[0].assetId == | |
727 | + | then (cG.payments[0].assetId == N) | |
729 | 728 | else false | |
730 | - | let cM = if (if (if (sigVerify(cA.bodyBytes, cA.proofs[0], H)) | |
729 | + | let cM = if (if (if (sigVerify(cA.bodyBytes, cA.proofs[0], G)) | |
730 | + | then true | |
731 | + | else sigVerify(cA.bodyBytes, cA.proofs[0], H)) | |
731 | 732 | then true | |
732 | 733 | else sigVerify(cA.bodyBytes, cA.proofs[0], I)) | |
733 | 734 | then true | |
734 | - | else sigVerify(cA.bodyBytes, cA.proofs[0], J)) | |
735 | - | then true | |
736 | - | else sigVerify(cA.bodyBytes, cA.proofs[0], L) | |
735 | + | else sigVerify(cA.bodyBytes, cA.proofs[0], K) | |
737 | 736 | if (if (if (if (if (if (cH) | |
738 | 737 | then true | |
739 | 738 | else cI) | |
740 | 739 | then true | |
741 | 740 | else cJ) | |
742 | 741 | then true | |
743 | 742 | else cK) | |
744 | 743 | then true | |
745 | 744 | else cL) | |
746 | 745 | then cM | |
747 | 746 | else false) | |
748 | 747 | then true | |
749 | 748 | else cC | |
750 | 749 | } | |
751 | 750 | else cC | |
752 | 751 | } | |
753 | 752 |
github/deemru/w8io/169f3d6 230.89 ms ◑