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