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