tx · 3CgS6g187uELSF8hEPPQ8sNDnf5arpLZ3SLUdA2mT1Tb 3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt: -0.01400000 Waves 2022.03.11 17:25 [1959405] smart account 3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt > SELF 0.00000000 Waves
{ "type": 13, "id": "3CgS6g187uELSF8hEPPQ8sNDnf5arpLZ3SLUdA2mT1Tb", "fee": 1400000, "feeAssetId": null, "timestamp": 1647008756270, "version": 1, "sender": "3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt", "senderPublicKey": "5195SwZ4ifX6bBstZ6tN31kEQFVHaKpFYLc1GCa3Myrh", "proofs": [ "47xSPU1AfpkBLLcP35BhgkKDFF3jbeYTUqyyPeqjddzgBT4KqJNAvAg1zEWGeaV1LjKevFmQsDBtPSbiY6kyRdEb" ], "script": "base64:AAIFAAAAAAAAACIIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSAwoBCBIAAAAALwEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCIAAAABBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAAAAAANTRVACAAAAAl9fAAAAAAhCVUZTQ0FMRQkAATYAAAABAA3gtrOnZAAAAQAAAB1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldAAAAAUAAAAQcHJpY2VBc3NldEFtb3VudAAAAA5wcmljZUFzc2V0TVVMVAAAAAVwcmljZQAAAAlwcmljZU1VTFQAAAAMaWRvQXNzZXRNVUxUBAAAAA9iUHJpY2VBc3NldE1VTFQJAAE2AAAAAQUAAAAOcHJpY2VBc3NldE1VTFQEAAAADWJJZG9Bc3NldE1VTFQJAAE2AAAAAQUAAAAMaWRvQXNzZXRNVUxUBAAAAA5iUHJpY2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HJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAPdGFyZ2V0UHVibGljS2V5BAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleXyBoDE=", "chainId": 84, "height": 1959405, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CgNH7Va1KMxmJGvqDHn6KwDhAmHyPZQSAm1YUaumXS8w Next: DnqRDhj4rEU5QBPacjKFSUpyowNaUSCZD8jBVP5JEVJW Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | func ae (af,ac,ag) = makeString(["%s%s%s%s__history", af, ac, ag], c) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func ah () = | |
79 | + | func ah () = "%s__managerPublicKey" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func ai ( | |
82 | + | func ai () = "%s__pendingManagerPublicKey" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func aj () = split(a(aa()), c) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func | |
88 | + | func ak (al) = split(valueOrElse(getString(al), R("0", "0", "0", "0", "0")), c) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func am ( | |
91 | + | func am () = ak(ad()) | |
92 | 92 | ||
93 | 93 | ||
94 | - | ||
94 | + | func an (ac) = ak(ab(ac)) | |
95 | 95 | ||
96 | - | let ao = 1 | |
97 | 96 | ||
98 | - | ||
97 | + | func ao (ac) = split(a(ab(ac)), c) | |
99 | 98 | ||
100 | - | let aq = 3 | |
101 | 99 | ||
102 | - | func ar (b,as,at,au) = { | |
103 | - | let S = parseIntValue(as[M]) | |
104 | - | let T = parseIntValue(as[N]) | |
105 | - | let U = parseIntValue(as[O]) | |
106 | - | let V = parseIntValue(as[P]) | |
107 | - | let W = parseIntValue(as[Q]) | |
108 | - | let av = (S + at[an]) | |
109 | - | let aw = (T + at[ao]) | |
110 | - | let ax = (U + at[ap]) | |
111 | - | let ay = (V + at[aq]) | |
112 | - | if ((0 > aw)) | |
100 | + | let ap = 0 | |
101 | + | ||
102 | + | let aq = 1 | |
103 | + | ||
104 | + | let ar = 2 | |
105 | + | ||
106 | + | let as = 3 | |
107 | + | ||
108 | + | func at (b,au,av,aw) = { | |
109 | + | let S = parseIntValue(au[M]) | |
110 | + | let T = parseIntValue(au[N]) | |
111 | + | let U = parseIntValue(au[O]) | |
112 | + | let V = parseIntValue(au[P]) | |
113 | + | let W = parseIntValue(au[Q]) | |
114 | + | let ax = (S + av[ap]) | |
115 | + | let ay = (T + av[aq]) | |
116 | + | let az = (U + av[ar]) | |
117 | + | let aA = (V + av[as]) | |
118 | + | if ((0 > ay)) | |
113 | 119 | then throw("invalid math") | |
114 | - | else StringEntry(b, X( | |
120 | + | else StringEntry(b, X(ax, ay, az, aA, aw)) | |
115 | 121 | } | |
116 | 122 | ||
117 | 123 | ||
118 | - | func | |
124 | + | func aB (ac,f,Z,aC) = StringEntry(ae("invest", ac, toBase58String(aC)), Y(f, Z)) | |
119 | 125 | ||
120 | 126 | ||
121 | - | func | |
127 | + | func aD (ac,f,Z,aC) = StringEntry(ae("claim", ac, toBase58String(aC)), Y(f, Z)) | |
122 | 128 | ||
123 | 129 | ||
124 | - | func | |
125 | - | let | |
126 | - | let C = parseIntValue( | |
127 | - | let D = parseIntValue( | |
128 | - | let | |
129 | - | let h = parseIntValue( | |
130 | - | let E = parseIntValue( | |
131 | - | let F = | |
132 | - | let | |
133 | - | let G = parseIntValue( | |
134 | - | let H = | |
135 | - | let | |
136 | - | let I = parseIntValue( | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
130 | + | func aE (aF,ac,aC) = { | |
131 | + | let aG = aj() | |
132 | + | let C = parseIntValue(aG[q]) | |
133 | + | let D = parseIntValue(aG[r]) | |
134 | + | let aH = (C + D) | |
135 | + | let h = parseIntValue(aG[s]) | |
136 | + | let E = parseIntValue(aG[t]) | |
137 | + | let F = aG[u] | |
138 | + | let aI = fromBase58String(F) | |
139 | + | let G = parseIntValue(aG[v]) | |
140 | + | let H = aG[w] | |
141 | + | let aJ = fromBase58String(H) | |
142 | + | let I = parseIntValue(aG[x]) | |
143 | + | let aK = toString(ac) | |
144 | + | let aL = ao(aK) | |
145 | + | let aM = parseIntValue(aL[M]) | |
146 | + | let aN = parseIntValue(aL[Q]) | |
147 | + | let aO = if ((C >= aN)) | |
142 | 148 | then C | |
143 | - | else | |
144 | - | let | |
145 | - | then | |
149 | + | else aN | |
150 | + | let aP = if ((height > aH)) | |
151 | + | then aH | |
146 | 152 | else if ((C > height)) | |
147 | 153 | then C | |
148 | 154 | else height | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | if (( | |
153 | - | then $Tuple6([0, -( | |
154 | - | else if (( | |
155 | - | then $Tuple6([0, -( | |
156 | - | else throw(("unsupported assetId: " + | |
155 | + | let aQ = (aP - aO) | |
156 | + | let aR = fraction(aM, aQ, D) | |
157 | + | let aS = e(aR, I, h, E, G) | |
158 | + | if ((aF == H)) | |
159 | + | then $Tuple6([0, -(aR), aR, 0], aR, aJ, aL, aP, [aR, aS]) | |
160 | + | else if ((aF == F)) | |
161 | + | then $Tuple6([0, -(aR), 0, aS], aS, aI, aL, aP, [aR, aS]) | |
162 | + | else throw(("unsupported assetId: " + aF)) | |
157 | 163 | } | |
158 | 164 | ||
159 | 165 | ||
160 | - | @Callable(aR) | |
166 | + | func aT () = { | |
167 | + | let aU = getString(ah()) | |
168 | + | if ($isInstanceOf(aU, "String")) | |
169 | + | then { | |
170 | + | let aV = aU | |
171 | + | fromBase58String(aV) | |
172 | + | } | |
173 | + | else if ($isInstanceOf(aU, "Unit")) | |
174 | + | then unit | |
175 | + | else throw("Match error") | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func aW () = { | |
180 | + | let aU = getString(ai()) | |
181 | + | if ($isInstanceOf(aU, "String")) | |
182 | + | then { | |
183 | + | let aV = aU | |
184 | + | fromBase58String(aV) | |
185 | + | } | |
186 | + | else if ($isInstanceOf(aU, "Unit")) | |
187 | + | then unit | |
188 | + | else throw("Match error") | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | func aX (aY) = { | |
193 | + | let aZ = throw("Permission denied") | |
194 | + | let aU = aT() | |
195 | + | if ($isInstanceOf(aU, "ByteVector")) | |
196 | + | then { | |
197 | + | let ba = aU | |
198 | + | if ((aY.callerPublicKey == ba)) | |
199 | + | then true | |
200 | + | else aZ | |
201 | + | } | |
202 | + | else if ($isInstanceOf(aU, "Unit")) | |
203 | + | then if ((aY.caller == this)) | |
204 | + | then true | |
205 | + | else aZ | |
206 | + | else throw("Match error") | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | @Callable(aY) | |
161 | 211 | func constructor (A,B,C,D,h,H,J) = { | |
162 | 212 | let E = ((100 * 1000) * 1000) | |
163 | - | let | |
213 | + | let bb = (A + B) | |
164 | 214 | if (isDefined(getString(aa()))) | |
165 | 215 | then throw("already initialized") | |
166 | - | else if ((" | |
216 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(aY.caller))) | |
167 | 217 | then throw("not authorized") | |
168 | - | else if ((size( | |
218 | + | else if ((size(aY.payments) != 1)) | |
169 | 219 | then throw("exactly 1 payment must be attached") | |
170 | - | else if (( | |
220 | + | else if ((bb >= C)) | |
171 | 221 | then throw("claimStart must be greater than idoEnd") | |
172 | 222 | else { | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let F = toBase58String( | |
177 | - | let G = pow(10, 0, | |
178 | - | let | |
179 | - | let | |
180 | - | let I = pow(10, 0, | |
181 | - | let | |
182 | - | let | |
183 | - | [StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, | |
223 | + | let bc = value(aY.payments[0]) | |
224 | + | let aI = value(bc.assetId) | |
225 | + | let bd = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info") | |
226 | + | let F = toBase58String(aI) | |
227 | + | let G = pow(10, 0, bd.decimals, 0, 0, DOWN) | |
228 | + | let aJ = fromBase58String(H) | |
229 | + | let be = valueOrErrorMessage(assetInfo(aJ), "fail to load price asset info") | |
230 | + | let I = pow(10, 0, be.decimals, 0, 0, DOWN) | |
231 | + | let bf = am() | |
232 | + | let bg = [0, 0, 0, 0] | |
233 | + | [StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, bc.amount)), at(ad(), bf, bg, C)] | |
184 | 234 | } | |
185 | 235 | } | |
186 | 236 | ||
187 | 237 | ||
188 | 238 | ||
189 | - | @Callable( | |
239 | + | @Callable(aY) | |
190 | 240 | func invest () = { | |
191 | - | let | |
192 | - | let A = parseIntValue( | |
193 | - | let B = parseIntValue( | |
194 | - | let | |
195 | - | let C = parseIntValue( | |
196 | - | let D = parseIntValue( | |
197 | - | let h = parseIntValue( | |
198 | - | let E = parseIntValue( | |
199 | - | let F = | |
200 | - | let | |
201 | - | let G = parseIntValue( | |
202 | - | let H = | |
203 | - | let | |
204 | - | let I = parseIntValue( | |
205 | - | let | |
206 | - | let ac = toString( | |
241 | + | let aG = aj() | |
242 | + | let A = parseIntValue(aG[o]) | |
243 | + | let B = parseIntValue(aG[p]) | |
244 | + | let bb = (A + B) | |
245 | + | let C = parseIntValue(aG[q]) | |
246 | + | let D = parseIntValue(aG[r]) | |
247 | + | let h = parseIntValue(aG[s]) | |
248 | + | let E = parseIntValue(aG[t]) | |
249 | + | let F = aG[u] | |
250 | + | let aI = fromBase58String(F) | |
251 | + | let G = parseIntValue(aG[v]) | |
252 | + | let H = aG[w] | |
253 | + | let aJ = fromBase58String(H) | |
254 | + | let I = parseIntValue(aG[x]) | |
255 | + | let bh = parseIntValue(aG[y]) | |
256 | + | let ac = toString(aY.caller) | |
207 | 257 | if ((A > height)) | |
208 | 258 | then throw("ido has not been started yet") | |
209 | - | else if ((height > | |
259 | + | else if ((height > bb)) | |
210 | 260 | then throw("ido has been already ended") | |
211 | - | else if ((size( | |
261 | + | else if ((size(aY.payments) != 1)) | |
212 | 262 | then throw("exactly 1 payment is expected") | |
213 | 263 | else { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if (( | |
218 | - | then throw((("invalid payment asset id: " + toBase58String( | |
264 | + | let bc = value(aY.payments[0]) | |
265 | + | let bi = value(bc.assetId) | |
266 | + | let bj = bc.amount | |
267 | + | if ((bi != aJ)) | |
268 | + | then throw((("invalid payment asset id: " + toBase58String(bi)) + " is expected")) | |
219 | 269 | else { | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | if (( | |
270 | + | let bk = an(ac) | |
271 | + | let bf = am() | |
272 | + | let bl = (parseIntValue(bf[M]) + bj) | |
273 | + | let bm = (bl * 100) | |
274 | + | if ((bm > assetBalance(this, aI))) | |
225 | 275 | then throw("IDO asset has been - sold consider to use smaller payment") | |
226 | 276 | else { | |
227 | - | let | |
228 | - | [ | |
277 | + | let bg = [bj, bj, 0, 0] | |
278 | + | [at(ab(ac), bk, bg, C), at(ad(), bf, bg, C), aB(ac, bj, 0, aY.transactionId)] | |
229 | 279 | } | |
230 | 280 | } | |
231 | 281 | } | |
233 | 283 | ||
234 | 284 | ||
235 | 285 | ||
236 | - | @Callable( | |
237 | - | func claim ( | |
238 | - | let | |
239 | - | if (( | |
286 | + | @Callable(aY) | |
287 | + | func claim (aF,aK) = { | |
288 | + | let bn = toString(aY.caller) | |
289 | + | if ((aK != bn)) | |
240 | 290 | then throw("not authorized") | |
241 | 291 | else { | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | $Tuple2([ScriptTransfer( | |
292 | + | let bo = aE(aF, aY.caller, aY.transactionId) | |
293 | + | let bg = bo._1 | |
294 | + | let bp = bo._2 | |
295 | + | let bq = bo._3 | |
296 | + | let aL = bo._4 | |
297 | + | let aP = bo._5 | |
298 | + | let br = bg[ar] | |
299 | + | let bs = bg[as] | |
300 | + | $Tuple2([ScriptTransfer(aY.caller, bp, bq), at(ab(aK), aL, bg, aP), at(ad(), am(), bg, aP), aD(aK, br, bs, aY.transactionId)], unit) | |
251 | 301 | } | |
252 | 302 | } | |
253 | 303 | ||
254 | 304 | ||
255 | 305 | ||
256 | - | @Callable( | |
257 | - | func claimREADONLY ( | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | $Tuple2(nil, makeString(["%s%d%d", | |
306 | + | @Callable(aY) | |
307 | + | func claimREADONLY (aF,aK) = { | |
308 | + | let bo = aE(aF, addressFromStringValue(aK), fromBase58String("")) | |
309 | + | let bg = bo._1 | |
310 | + | let bp = bo._2 | |
311 | + | let bq = bo._3 | |
312 | + | let aL = bo._4 | |
313 | + | let aP = bo._5 | |
314 | + | let bt = bo._6 | |
315 | + | let bu = bt[0] | |
316 | + | let bv = bt[1] | |
317 | + | $Tuple2(nil, makeString(["%s%d%d", aK, toString(bu), toString(bv)], c)) | |
268 | 318 | } | |
269 | 319 | ||
320 | + | ||
321 | + | ||
322 | + | @Callable(aY) | |
323 | + | func setManager (bw) = { | |
324 | + | let bx = aX(aY) | |
325 | + | if ((bx == bx)) | |
326 | + | then { | |
327 | + | let by = fromBase58String(bw) | |
328 | + | if ((by == by)) | |
329 | + | then [StringEntry(ai(), bw)] | |
330 | + | else throw("Strict value is not equal to itself.") | |
331 | + | } | |
332 | + | else throw("Strict value is not equal to itself.") | |
333 | + | } | |
334 | + | ||
335 | + | ||
336 | + | ||
337 | + | @Callable(aY) | |
338 | + | func confirmManager () = { | |
339 | + | let bz = aW() | |
340 | + | let bA = if (isDefined(bz)) | |
341 | + | then true | |
342 | + | else throw("No pending manager") | |
343 | + | if ((bA == bA)) | |
344 | + | then { | |
345 | + | let bB = if ((aY.callerPublicKey == value(bz))) | |
346 | + | then true | |
347 | + | else throw("You are not pending manager") | |
348 | + | if ((bB == bB)) | |
349 | + | then [StringEntry(ah(), toBase58String(value(bz))), DeleteEntry(ai())] | |
350 | + | else throw("Strict value is not equal to itself.") | |
351 | + | } | |
352 | + | else throw("Strict value is not equal to itself.") | |
353 | + | } | |
354 | + | ||
355 | + | ||
356 | + | @Verifier(bC) | |
357 | + | func bD () = { | |
358 | + | let bE = { | |
359 | + | let aU = aT() | |
360 | + | if ($isInstanceOf(aU, "ByteVector")) | |
361 | + | then { | |
362 | + | let ba = aU | |
363 | + | ba | |
364 | + | } | |
365 | + | else if ($isInstanceOf(aU, "Unit")) | |
366 | + | then bC.senderPublicKey | |
367 | + | else throw("Match error") | |
368 | + | } | |
369 | + | sigVerify(bC.bodyBytes, bC.proofs[0], bE) | |
370 | + | } | |
270 | 371 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | func e (f,g,h,i,j) = { | |
12 | 12 | let k = toBigInt(g) | |
13 | 13 | let l = toBigInt(j) | |
14 | 14 | let m = fraction(toBigInt(f), d, k) | |
15 | 15 | let n = fraction(m, toBigInt(i), toBigInt(h)) | |
16 | 16 | toInt(fraction(n, toBigInt(j), d)) | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | let o = 1 | |
21 | 21 | ||
22 | 22 | let p = 2 | |
23 | 23 | ||
24 | 24 | let q = 3 | |
25 | 25 | ||
26 | 26 | let r = 4 | |
27 | 27 | ||
28 | 28 | let s = 5 | |
29 | 29 | ||
30 | 30 | let t = 6 | |
31 | 31 | ||
32 | 32 | let u = 7 | |
33 | 33 | ||
34 | 34 | let v = 8 | |
35 | 35 | ||
36 | 36 | let w = 9 | |
37 | 37 | ||
38 | 38 | let x = 10 | |
39 | 39 | ||
40 | 40 | let y = 11 | |
41 | 41 | ||
42 | 42 | func z (A,B,C,D,h,E,F,G,H,I,J,K) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", A, B, C, D, h, E, F, G, H, I, J, K], c) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func L (A,B,C,D,h,E,F,G,H,I,J,K) = z(toString(A), toString(B), toString(C), toString(D), toString(h), toString(E), F, toString(G), H, toString(I), toString(J), toString(K)) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let M = 1 | |
49 | 49 | ||
50 | 50 | let N = 2 | |
51 | 51 | ||
52 | 52 | let O = 3 | |
53 | 53 | ||
54 | 54 | let P = 4 | |
55 | 55 | ||
56 | 56 | let Q = 5 | |
57 | 57 | ||
58 | 58 | func R (S,T,U,V,W) = makeString(["%d%d%d%d%d", S, T, U, V, W], c) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func X (S,T,U,V,W) = R(toString(S), toString(T), toString(U), toString(V), toString(W)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func Y (f,Z) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(f), toString(Z)], c) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func aa () = "%s__config" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func ab (ac) = ("%s__" + ac) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func ad () = "%s__totals" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func ae (af,ac,ag) = makeString(["%s%s%s%s__history", af, ac, ag], c) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func ah () = | |
79 | + | func ah () = "%s__managerPublicKey" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func ai ( | |
82 | + | func ai () = "%s__pendingManagerPublicKey" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func aj () = split(a(aa()), c) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func | |
88 | + | func ak (al) = split(valueOrElse(getString(al), R("0", "0", "0", "0", "0")), c) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func am ( | |
91 | + | func am () = ak(ad()) | |
92 | 92 | ||
93 | 93 | ||
94 | - | ||
94 | + | func an (ac) = ak(ab(ac)) | |
95 | 95 | ||
96 | - | let ao = 1 | |
97 | 96 | ||
98 | - | ||
97 | + | func ao (ac) = split(a(ab(ac)), c) | |
99 | 98 | ||
100 | - | let aq = 3 | |
101 | 99 | ||
102 | - | func ar (b,as,at,au) = { | |
103 | - | let S = parseIntValue(as[M]) | |
104 | - | let T = parseIntValue(as[N]) | |
105 | - | let U = parseIntValue(as[O]) | |
106 | - | let V = parseIntValue(as[P]) | |
107 | - | let W = parseIntValue(as[Q]) | |
108 | - | let av = (S + at[an]) | |
109 | - | let aw = (T + at[ao]) | |
110 | - | let ax = (U + at[ap]) | |
111 | - | let ay = (V + at[aq]) | |
112 | - | if ((0 > aw)) | |
100 | + | let ap = 0 | |
101 | + | ||
102 | + | let aq = 1 | |
103 | + | ||
104 | + | let ar = 2 | |
105 | + | ||
106 | + | let as = 3 | |
107 | + | ||
108 | + | func at (b,au,av,aw) = { | |
109 | + | let S = parseIntValue(au[M]) | |
110 | + | let T = parseIntValue(au[N]) | |
111 | + | let U = parseIntValue(au[O]) | |
112 | + | let V = parseIntValue(au[P]) | |
113 | + | let W = parseIntValue(au[Q]) | |
114 | + | let ax = (S + av[ap]) | |
115 | + | let ay = (T + av[aq]) | |
116 | + | let az = (U + av[ar]) | |
117 | + | let aA = (V + av[as]) | |
118 | + | if ((0 > ay)) | |
113 | 119 | then throw("invalid math") | |
114 | - | else StringEntry(b, X( | |
120 | + | else StringEntry(b, X(ax, ay, az, aA, aw)) | |
115 | 121 | } | |
116 | 122 | ||
117 | 123 | ||
118 | - | func | |
124 | + | func aB (ac,f,Z,aC) = StringEntry(ae("invest", ac, toBase58String(aC)), Y(f, Z)) | |
119 | 125 | ||
120 | 126 | ||
121 | - | func | |
127 | + | func aD (ac,f,Z,aC) = StringEntry(ae("claim", ac, toBase58String(aC)), Y(f, Z)) | |
122 | 128 | ||
123 | 129 | ||
124 | - | func | |
125 | - | let | |
126 | - | let C = parseIntValue( | |
127 | - | let D = parseIntValue( | |
128 | - | let | |
129 | - | let h = parseIntValue( | |
130 | - | let E = parseIntValue( | |
131 | - | let F = | |
132 | - | let | |
133 | - | let G = parseIntValue( | |
134 | - | let H = | |
135 | - | let | |
136 | - | let I = parseIntValue( | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
130 | + | func aE (aF,ac,aC) = { | |
131 | + | let aG = aj() | |
132 | + | let C = parseIntValue(aG[q]) | |
133 | + | let D = parseIntValue(aG[r]) | |
134 | + | let aH = (C + D) | |
135 | + | let h = parseIntValue(aG[s]) | |
136 | + | let E = parseIntValue(aG[t]) | |
137 | + | let F = aG[u] | |
138 | + | let aI = fromBase58String(F) | |
139 | + | let G = parseIntValue(aG[v]) | |
140 | + | let H = aG[w] | |
141 | + | let aJ = fromBase58String(H) | |
142 | + | let I = parseIntValue(aG[x]) | |
143 | + | let aK = toString(ac) | |
144 | + | let aL = ao(aK) | |
145 | + | let aM = parseIntValue(aL[M]) | |
146 | + | let aN = parseIntValue(aL[Q]) | |
147 | + | let aO = if ((C >= aN)) | |
142 | 148 | then C | |
143 | - | else | |
144 | - | let | |
145 | - | then | |
149 | + | else aN | |
150 | + | let aP = if ((height > aH)) | |
151 | + | then aH | |
146 | 152 | else if ((C > height)) | |
147 | 153 | then C | |
148 | 154 | else height | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | if (( | |
153 | - | then $Tuple6([0, -( | |
154 | - | else if (( | |
155 | - | then $Tuple6([0, -( | |
156 | - | else throw(("unsupported assetId: " + | |
155 | + | let aQ = (aP - aO) | |
156 | + | let aR = fraction(aM, aQ, D) | |
157 | + | let aS = e(aR, I, h, E, G) | |
158 | + | if ((aF == H)) | |
159 | + | then $Tuple6([0, -(aR), aR, 0], aR, aJ, aL, aP, [aR, aS]) | |
160 | + | else if ((aF == F)) | |
161 | + | then $Tuple6([0, -(aR), 0, aS], aS, aI, aL, aP, [aR, aS]) | |
162 | + | else throw(("unsupported assetId: " + aF)) | |
157 | 163 | } | |
158 | 164 | ||
159 | 165 | ||
160 | - | @Callable(aR) | |
166 | + | func aT () = { | |
167 | + | let aU = getString(ah()) | |
168 | + | if ($isInstanceOf(aU, "String")) | |
169 | + | then { | |
170 | + | let aV = aU | |
171 | + | fromBase58String(aV) | |
172 | + | } | |
173 | + | else if ($isInstanceOf(aU, "Unit")) | |
174 | + | then unit | |
175 | + | else throw("Match error") | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func aW () = { | |
180 | + | let aU = getString(ai()) | |
181 | + | if ($isInstanceOf(aU, "String")) | |
182 | + | then { | |
183 | + | let aV = aU | |
184 | + | fromBase58String(aV) | |
185 | + | } | |
186 | + | else if ($isInstanceOf(aU, "Unit")) | |
187 | + | then unit | |
188 | + | else throw("Match error") | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | func aX (aY) = { | |
193 | + | let aZ = throw("Permission denied") | |
194 | + | let aU = aT() | |
195 | + | if ($isInstanceOf(aU, "ByteVector")) | |
196 | + | then { | |
197 | + | let ba = aU | |
198 | + | if ((aY.callerPublicKey == ba)) | |
199 | + | then true | |
200 | + | else aZ | |
201 | + | } | |
202 | + | else if ($isInstanceOf(aU, "Unit")) | |
203 | + | then if ((aY.caller == this)) | |
204 | + | then true | |
205 | + | else aZ | |
206 | + | else throw("Match error") | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | @Callable(aY) | |
161 | 211 | func constructor (A,B,C,D,h,H,J) = { | |
162 | 212 | let E = ((100 * 1000) * 1000) | |
163 | - | let | |
213 | + | let bb = (A + B) | |
164 | 214 | if (isDefined(getString(aa()))) | |
165 | 215 | then throw("already initialized") | |
166 | - | else if ((" | |
216 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(aY.caller))) | |
167 | 217 | then throw("not authorized") | |
168 | - | else if ((size( | |
218 | + | else if ((size(aY.payments) != 1)) | |
169 | 219 | then throw("exactly 1 payment must be attached") | |
170 | - | else if (( | |
220 | + | else if ((bb >= C)) | |
171 | 221 | then throw("claimStart must be greater than idoEnd") | |
172 | 222 | else { | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let F = toBase58String( | |
177 | - | let G = pow(10, 0, | |
178 | - | let | |
179 | - | let | |
180 | - | let I = pow(10, 0, | |
181 | - | let | |
182 | - | let | |
183 | - | [StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, | |
223 | + | let bc = value(aY.payments[0]) | |
224 | + | let aI = value(bc.assetId) | |
225 | + | let bd = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info") | |
226 | + | let F = toBase58String(aI) | |
227 | + | let G = pow(10, 0, bd.decimals, 0, 0, DOWN) | |
228 | + | let aJ = fromBase58String(H) | |
229 | + | let be = valueOrErrorMessage(assetInfo(aJ), "fail to load price asset info") | |
230 | + | let I = pow(10, 0, be.decimals, 0, 0, DOWN) | |
231 | + | let bf = am() | |
232 | + | let bg = [0, 0, 0, 0] | |
233 | + | [StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, bc.amount)), at(ad(), bf, bg, C)] | |
184 | 234 | } | |
185 | 235 | } | |
186 | 236 | ||
187 | 237 | ||
188 | 238 | ||
189 | - | @Callable( | |
239 | + | @Callable(aY) | |
190 | 240 | func invest () = { | |
191 | - | let | |
192 | - | let A = parseIntValue( | |
193 | - | let B = parseIntValue( | |
194 | - | let | |
195 | - | let C = parseIntValue( | |
196 | - | let D = parseIntValue( | |
197 | - | let h = parseIntValue( | |
198 | - | let E = parseIntValue( | |
199 | - | let F = | |
200 | - | let | |
201 | - | let G = parseIntValue( | |
202 | - | let H = | |
203 | - | let | |
204 | - | let I = parseIntValue( | |
205 | - | let | |
206 | - | let ac = toString( | |
241 | + | let aG = aj() | |
242 | + | let A = parseIntValue(aG[o]) | |
243 | + | let B = parseIntValue(aG[p]) | |
244 | + | let bb = (A + B) | |
245 | + | let C = parseIntValue(aG[q]) | |
246 | + | let D = parseIntValue(aG[r]) | |
247 | + | let h = parseIntValue(aG[s]) | |
248 | + | let E = parseIntValue(aG[t]) | |
249 | + | let F = aG[u] | |
250 | + | let aI = fromBase58String(F) | |
251 | + | let G = parseIntValue(aG[v]) | |
252 | + | let H = aG[w] | |
253 | + | let aJ = fromBase58String(H) | |
254 | + | let I = parseIntValue(aG[x]) | |
255 | + | let bh = parseIntValue(aG[y]) | |
256 | + | let ac = toString(aY.caller) | |
207 | 257 | if ((A > height)) | |
208 | 258 | then throw("ido has not been started yet") | |
209 | - | else if ((height > | |
259 | + | else if ((height > bb)) | |
210 | 260 | then throw("ido has been already ended") | |
211 | - | else if ((size( | |
261 | + | else if ((size(aY.payments) != 1)) | |
212 | 262 | then throw("exactly 1 payment is expected") | |
213 | 263 | else { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if (( | |
218 | - | then throw((("invalid payment asset id: " + toBase58String( | |
264 | + | let bc = value(aY.payments[0]) | |
265 | + | let bi = value(bc.assetId) | |
266 | + | let bj = bc.amount | |
267 | + | if ((bi != aJ)) | |
268 | + | then throw((("invalid payment asset id: " + toBase58String(bi)) + " is expected")) | |
219 | 269 | else { | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | if (( | |
270 | + | let bk = an(ac) | |
271 | + | let bf = am() | |
272 | + | let bl = (parseIntValue(bf[M]) + bj) | |
273 | + | let bm = (bl * 100) | |
274 | + | if ((bm > assetBalance(this, aI))) | |
225 | 275 | then throw("IDO asset has been - sold consider to use smaller payment") | |
226 | 276 | else { | |
227 | - | let | |
228 | - | [ | |
277 | + | let bg = [bj, bj, 0, 0] | |
278 | + | [at(ab(ac), bk, bg, C), at(ad(), bf, bg, C), aB(ac, bj, 0, aY.transactionId)] | |
229 | 279 | } | |
230 | 280 | } | |
231 | 281 | } | |
232 | 282 | } | |
233 | 283 | ||
234 | 284 | ||
235 | 285 | ||
236 | - | @Callable( | |
237 | - | func claim ( | |
238 | - | let | |
239 | - | if (( | |
286 | + | @Callable(aY) | |
287 | + | func claim (aF,aK) = { | |
288 | + | let bn = toString(aY.caller) | |
289 | + | if ((aK != bn)) | |
240 | 290 | then throw("not authorized") | |
241 | 291 | else { | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | $Tuple2([ScriptTransfer( | |
292 | + | let bo = aE(aF, aY.caller, aY.transactionId) | |
293 | + | let bg = bo._1 | |
294 | + | let bp = bo._2 | |
295 | + | let bq = bo._3 | |
296 | + | let aL = bo._4 | |
297 | + | let aP = bo._5 | |
298 | + | let br = bg[ar] | |
299 | + | let bs = bg[as] | |
300 | + | $Tuple2([ScriptTransfer(aY.caller, bp, bq), at(ab(aK), aL, bg, aP), at(ad(), am(), bg, aP), aD(aK, br, bs, aY.transactionId)], unit) | |
251 | 301 | } | |
252 | 302 | } | |
253 | 303 | ||
254 | 304 | ||
255 | 305 | ||
256 | - | @Callable( | |
257 | - | func claimREADONLY ( | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | $Tuple2(nil, makeString(["%s%d%d", | |
306 | + | @Callable(aY) | |
307 | + | func claimREADONLY (aF,aK) = { | |
308 | + | let bo = aE(aF, addressFromStringValue(aK), fromBase58String("")) | |
309 | + | let bg = bo._1 | |
310 | + | let bp = bo._2 | |
311 | + | let bq = bo._3 | |
312 | + | let aL = bo._4 | |
313 | + | let aP = bo._5 | |
314 | + | let bt = bo._6 | |
315 | + | let bu = bt[0] | |
316 | + | let bv = bt[1] | |
317 | + | $Tuple2(nil, makeString(["%s%d%d", aK, toString(bu), toString(bv)], c)) | |
268 | 318 | } | |
269 | 319 | ||
320 | + | ||
321 | + | ||
322 | + | @Callable(aY) | |
323 | + | func setManager (bw) = { | |
324 | + | let bx = aX(aY) | |
325 | + | if ((bx == bx)) | |
326 | + | then { | |
327 | + | let by = fromBase58String(bw) | |
328 | + | if ((by == by)) | |
329 | + | then [StringEntry(ai(), bw)] | |
330 | + | else throw("Strict value is not equal to itself.") | |
331 | + | } | |
332 | + | else throw("Strict value is not equal to itself.") | |
333 | + | } | |
334 | + | ||
335 | + | ||
336 | + | ||
337 | + | @Callable(aY) | |
338 | + | func confirmManager () = { | |
339 | + | let bz = aW() | |
340 | + | let bA = if (isDefined(bz)) | |
341 | + | then true | |
342 | + | else throw("No pending manager") | |
343 | + | if ((bA == bA)) | |
344 | + | then { | |
345 | + | let bB = if ((aY.callerPublicKey == value(bz))) | |
346 | + | then true | |
347 | + | else throw("You are not pending manager") | |
348 | + | if ((bB == bB)) | |
349 | + | then [StringEntry(ah(), toBase58String(value(bz))), DeleteEntry(ai())] | |
350 | + | else throw("Strict value is not equal to itself.") | |
351 | + | } | |
352 | + | else throw("Strict value is not equal to itself.") | |
353 | + | } | |
354 | + | ||
355 | + | ||
356 | + | @Verifier(bC) | |
357 | + | func bD () = { | |
358 | + | let bE = { | |
359 | + | let aU = aT() | |
360 | + | if ($isInstanceOf(aU, "ByteVector")) | |
361 | + | then { | |
362 | + | let ba = aU | |
363 | + | ba | |
364 | + | } | |
365 | + | else if ($isInstanceOf(aU, "Unit")) | |
366 | + | then bC.senderPublicKey | |
367 | + | else throw("Match error") | |
368 | + | } | |
369 | + | sigVerify(bC.bodyBytes, bC.proofs[0], bE) | |
370 | + | } | |
270 | 371 |
github/deemru/w8io/169f3d6 98.16 ms ◑