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