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