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