tx · 6Pyeu4rysR1tH9b9iEZTFzGJWscV4Mjwftqita2iRytZ 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv: -0.02500000 Waves 2022.11.02 20:43 [2299803] smart account 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv > SELF 0.00000000 Waves
{ "type": 13, "id": "6Pyeu4rysR1tH9b9iEZTFzGJWscV4Mjwftqita2iRytZ", "fee": 2500000, "feeAssetId": null, "timestamp": 1667411078679, "version": 1, "sender": "3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv", "senderPublicKey": "39YkRD2qWXTcdNBr4CbDnm8g8SAB2FKVaDeGYahcFHHx", "proofs": [ "37t5dJoK1KqK3yympARiPrSkmRNtxowrLcQGY35LcNxRy6NFP8fmdnwePZBN2cBLps1J37NiK4tWhzrHwgZtGtoc" ], "script": "base64:AAIFAAAAAAAADfYIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2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AAAApCeXRlVmVjdG9yBAAAAAJjZAUAAAACYnEFAAAAAmNkAwkAAAEAAAACBQAAAAJicQIAAAAEVW5pdAgFAAAAAmNNAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACY00AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjTQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmNPLu11eA==", "chainId": 84, "height": 2299803, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: iVezS8psV1r55PtN5XbtJNZWqJh4tKZYsgsSNKrtzdN Next: BYFf18BfN9tf27BNhAQPMaJkRPWBMDL1uR8NNCwKgtco Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | - | func f (g,h,i,j,k) = { | |
14 | - | let l = toBigInt(h) | |
15 | - | let m = toBigInt(k) | |
16 | - | let n = fraction(toBigInt(g), d, l) | |
17 | - | let o = fraction(n, toBigInt(j), toBigInt(i)) | |
18 | - | toInt(fraction(o, toBigInt(k), d)) | |
13 | + | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | + | ||
15 | + | ||
16 | + | func h (i,j,k,l,m) = { | |
17 | + | let n = toBigInt(j) | |
18 | + | let o = toBigInt(m) | |
19 | + | let p = fraction(toBigInt(i), d, n) | |
20 | + | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | + | toInt(fraction(q, toBigInt(m), d)) | |
19 | 22 | } | |
20 | 23 | ||
21 | 24 | ||
22 | - | let | |
25 | + | let r = 1 | |
23 | 26 | ||
24 | - | let | |
27 | + | let s = 2 | |
25 | 28 | ||
26 | - | let | |
29 | + | let t = 3 | |
27 | 30 | ||
28 | - | let | |
31 | + | let u = 4 | |
29 | 32 | ||
30 | - | let | |
33 | + | let v = 5 | |
31 | 34 | ||
32 | - | let | |
35 | + | let w = 6 | |
33 | 36 | ||
34 | - | let | |
37 | + | let x = 7 | |
35 | 38 | ||
36 | - | let | |
39 | + | let y = 8 | |
37 | 40 | ||
38 | - | let | |
41 | + | let z = 9 | |
39 | 42 | ||
40 | - | let | |
43 | + | let A = 10 | |
41 | 44 | ||
42 | - | let | |
45 | + | let B = 11 | |
43 | 46 | ||
44 | - | func | |
47 | + | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
45 | 48 | ||
46 | 49 | ||
47 | - | func | |
50 | + | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
48 | 51 | ||
49 | 52 | ||
50 | - | let | |
53 | + | let P = 1 | |
51 | 54 | ||
52 | - | let | |
55 | + | let Q = 2 | |
53 | 56 | ||
54 | - | let | |
57 | + | let R = 3 | |
55 | 58 | ||
56 | - | let | |
59 | + | let S = 4 | |
57 | 60 | ||
58 | - | let | |
61 | + | let T = 5 | |
59 | 62 | ||
60 | - | func | |
63 | + | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
61 | 64 | ||
62 | 65 | ||
63 | - | func | |
66 | + | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
64 | 67 | ||
65 | 68 | ||
66 | - | func | |
69 | + | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
67 | 70 | ||
68 | 71 | ||
69 | - | func | |
72 | + | func ad () = "%s__config" | |
70 | 73 | ||
71 | 74 | ||
72 | - | func | |
75 | + | func ae (af) = ("%s__" + af) | |
73 | 76 | ||
74 | 77 | ||
75 | - | func | |
78 | + | func ag () = "%s__totals" | |
76 | 79 | ||
77 | 80 | ||
78 | - | func | |
81 | + | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
79 | 82 | ||
80 | 83 | ||
81 | - | func | |
84 | + | func ak () = "%s__usdnClaimDisabled" | |
82 | 85 | ||
83 | 86 | ||
84 | - | func | |
87 | + | func al () = "%s__usdnClaimEndHeight" | |
85 | 88 | ||
86 | 89 | ||
87 | - | func | |
90 | + | func am () = makeString(["%s", "periodLength"], c) | |
88 | 91 | ||
89 | 92 | ||
90 | - | func | |
93 | + | func an () = makeString(["%s", "currentPeriod"], c) | |
91 | 94 | ||
92 | 95 | ||
93 | - | func | |
96 | + | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
94 | 97 | ||
95 | 98 | ||
96 | - | func | |
99 | + | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
97 | 100 | ||
98 | 101 | ||
99 | - | func | |
102 | + | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
100 | 103 | ||
101 | 104 | ||
102 | - | func | |
105 | + | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
103 | 106 | ||
104 | 107 | ||
105 | - | func | |
108 | + | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
106 | 109 | ||
107 | 110 | ||
108 | - | func | |
111 | + | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
109 | 112 | ||
110 | 113 | ||
111 | - | func | |
114 | + | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
112 | 115 | ||
113 | 116 | ||
114 | - | func | |
117 | + | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
115 | 118 | ||
116 | 119 | ||
117 | - | func | |
120 | + | func ay () = makeString(["%s", "usdtAssetId"], c) | |
118 | 121 | ||
119 | 122 | ||
120 | - | func | |
123 | + | func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c) | |
121 | 124 | ||
122 | 125 | ||
123 | - | func | |
126 | + | func aB () = "%s__managerPublicKey" | |
124 | 127 | ||
125 | 128 | ||
126 | - | func | |
129 | + | func aC () = "%s__pendingManagerPublicKey" | |
127 | 130 | ||
128 | 131 | ||
129 | - | func | |
132 | + | func aD () = split(a(ad()), c) | |
130 | 133 | ||
131 | 134 | ||
132 | - | func | |
135 | + | func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c) | |
133 | 136 | ||
134 | 137 | ||
135 | - | func | |
138 | + | func aG () = aE(ag()) | |
136 | 139 | ||
137 | 140 | ||
138 | - | func | |
141 | + | func aH (af) = aE(ae(af)) | |
139 | 142 | ||
140 | 143 | ||
141 | - | func | |
144 | + | func aI (af) = split(a(ae(af)), c) | |
142 | 145 | ||
143 | 146 | ||
144 | - | let | |
147 | + | let aJ = 0 | |
145 | 148 | ||
146 | - | let | |
149 | + | let aK = 1 | |
147 | 150 | ||
148 | - | let | |
151 | + | let aL = 2 | |
149 | 152 | ||
150 | - | let | |
153 | + | let aM = 3 | |
151 | 154 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | if ((0 > | |
155 | + | func aN (b,aO,aP,aQ) = { | |
156 | + | let V = parseIntValue(aO[P]) | |
157 | + | let W = parseIntValue(aO[Q]) | |
158 | + | let X = parseIntValue(aO[R]) | |
159 | + | let Y = parseIntValue(aO[S]) | |
160 | + | let Z = parseIntValue(aO[T]) | |
161 | + | let aR = (V + aP[aJ]) | |
162 | + | let aS = (W + aP[aK]) | |
163 | + | let aT = (X + aP[aL]) | |
164 | + | let aU = (Y + aP[aM]) | |
165 | + | if ((0 > aS)) | |
163 | 166 | then throw("invalid math") | |
164 | - | else StringEntry(b, | |
167 | + | else StringEntry(b, aa(aR, aS, aT, aU, aQ)) | |
165 | 168 | } | |
166 | 169 | ||
167 | 170 | ||
168 | - | func | |
171 | + | func aV (af,i,ac,aW) = StringEntry(ah("invest", af, toBase58String(aW)), ab(i, ac)) | |
169 | 172 | ||
170 | 173 | ||
171 | - | func | |
174 | + | func aX (af,i,ac,aW) = StringEntry(ah("claim", af, toBase58String(aW)), ab(i, ac)) | |
172 | 175 | ||
173 | 176 | ||
174 | - | func | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | then | |
193 | - | else | |
194 | - | let | |
195 | - | then | |
196 | - | else if (( | |
197 | - | then | |
177 | + | func aY (aZ,af,aW) = { | |
178 | + | let ba = aD() | |
179 | + | let F = parseIntValue(ba[t]) | |
180 | + | let G = parseIntValue(ba[u]) | |
181 | + | let bb = (F + G) | |
182 | + | let k = parseIntValue(ba[v]) | |
183 | + | let H = parseIntValue(ba[w]) | |
184 | + | let I = ba[x] | |
185 | + | let bc = fromBase58String(I) | |
186 | + | let J = parseIntValue(ba[y]) | |
187 | + | let K = ba[z] | |
188 | + | let bd = fromBase58String(K) | |
189 | + | let L = parseIntValue(ba[A]) | |
190 | + | let be = toString(af) | |
191 | + | let bf = aI(be) | |
192 | + | let bg = parseIntValue(bf[P]) | |
193 | + | let bh = parseIntValue(bf[T]) | |
194 | + | let bi = if ((F >= bh)) | |
195 | + | then F | |
196 | + | else bh | |
197 | + | let bj = if ((height > bb)) | |
198 | + | then bb | |
199 | + | else if ((F > height)) | |
200 | + | then F | |
198 | 201 | else height | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | if ($isInstanceOf( | |
202 | + | let bk = (bj - bi) | |
203 | + | let bl = fraction(bg, bk, G) | |
204 | + | let bm = h(bl, L, k, H, J) | |
205 | + | let bn = (aZ == K) | |
206 | + | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | + | let bp = { | |
208 | + | let bq = getInteger(al()) | |
209 | + | if ($isInstanceOf(bq, "Int")) | |
207 | 210 | then { | |
208 | - | let | |
209 | - | (height > | |
211 | + | let br = bq | |
212 | + | (height > br) | |
210 | 213 | } | |
211 | - | else if ($isInstanceOf( | |
214 | + | else if ($isInstanceOf(bq, "Unit")) | |
212 | 215 | then false | |
213 | 216 | else throw("Match error") | |
214 | 217 | } | |
215 | - | let | |
216 | - | then | |
218 | + | let bs = [if (!(if (bn) | |
219 | + | then bo | |
217 | 220 | else false)) | |
218 | 221 | then true | |
219 | - | else throw("USDN claim is disabled"), if (!(if ( | |
220 | - | then | |
222 | + | else throw("USDN claim is disabled"), if (!(if (bn) | |
223 | + | then bp | |
221 | 224 | else false)) | |
222 | 225 | then true | |
223 | 226 | else throw("USDN claim is ended")] | |
224 | - | if (( | |
225 | - | then if (( | |
226 | - | then $Tuple6([0, -( | |
227 | - | else if (( | |
228 | - | then $Tuple6([0, -( | |
229 | - | else throw(("unsupported assetId: " + | |
227 | + | if ((bs == bs)) | |
228 | + | then if ((aZ == K)) | |
229 | + | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
230 | + | else if ((aZ == I)) | |
231 | + | then $Tuple6([0, -(bl), 0, bm], bm, bc, bf, bj, [bl, bm]) | |
232 | + | else throw(("unsupported assetId: " + aZ)) | |
230 | 233 | else throw("Strict value is not equal to itself.") | |
231 | 234 | } | |
232 | 235 | ||
233 | 236 | ||
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
237 | + | func bt (K,be,bu,bv) = { | |
238 | + | let bw = value(getInteger(as(K))) | |
239 | + | let bx = value(getInteger(au(K))) | |
240 | + | let by = value(getInteger(am())) | |
241 | + | let bz = valueOrElse(getInteger(an()), 0) | |
242 | + | let bA = if ((bz > 0)) | |
240 | 243 | then { | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | + | let bB = value(getInteger(ao((bz - 1)))) | |
245 | + | let bC = value(getInteger(aq((bz - 1)))) | |
246 | + | let bD = if ((height > bC)) | |
244 | 247 | then { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple3( | |
248 | + | let bE = (bz + 1) | |
249 | + | let bF = (bC + 1) | |
250 | + | let bG = ((bF + by) - 1) | |
251 | + | $Tuple3(bE, bF, bG) | |
249 | 252 | } | |
250 | - | else $Tuple3( | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | $Tuple3( | |
253 | + | else $Tuple3(bz, bB, bC) | |
254 | + | let bE = bD._1 | |
255 | + | let bF = bD._2 | |
256 | + | let bG = bD._3 | |
257 | + | $Tuple3(bE, bF, bG) | |
255 | 258 | } | |
256 | - | else $Tuple3( | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
268 | - | then | |
259 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
260 | + | let bE = bA._1 | |
261 | + | let bF = bA._2 | |
262 | + | let bG = bA._3 | |
263 | + | let bH = valueOrElse(getInteger(av(K, bE)), bw) | |
264 | + | let bI = valueOrElse(getInteger(aw(K, bE, be)), bx) | |
265 | + | let bJ = min([bu, bH, bI]) | |
266 | + | let bK = value(getInteger(ar())) | |
267 | + | let bL = e | |
268 | + | let bM = { | |
269 | + | let bN = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bL, K], nil) | |
270 | + | if ($isInstanceOf(bN, "(Int, Int, Int)")) | |
271 | + | then bN | |
269 | 272 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
270 | 273 | } | |
271 | - | if (( | |
274 | + | if ((bM == bM)) | |
272 | 275 | then { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
280 | - | then | |
276 | + | let bO = bM._3 | |
277 | + | let bP = bM._2 | |
278 | + | let bQ = bM._1 | |
279 | + | let bR = value(getString(ay())) | |
280 | + | let bS = { | |
281 | + | let bN = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bR, bQ], nil) | |
282 | + | if ($isInstanceOf(bN, "(Int, Int)")) | |
283 | + | then bN | |
281 | 284 | else throw("Couldn't cast Any to (Int, Int)") | |
282 | 285 | } | |
283 | - | if (( | |
286 | + | if ((bS == bS)) | |
284 | 287 | then { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple10(bH, bF, bG | |
288 | + | let bT = bS._2 | |
289 | + | let bU = bS._1 | |
290 | + | let bV = fraction(bU, bL, e) | |
291 | + | let bW = (bG - height) | |
292 | + | $Tuple10(bJ, bH, bI, bv, bK, bV, bW, bE, bF, bG) | |
290 | 293 | } | |
291 | 294 | else throw("Strict value is not equal to itself.") | |
292 | 295 | } | |
294 | 297 | } | |
295 | 298 | ||
296 | 299 | ||
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
300 | + | func bX () = { | |
301 | + | let bq = getString(aB()) | |
302 | + | if ($isInstanceOf(bq, "String")) | |
300 | 303 | then { | |
301 | - | let | |
302 | - | fromBase58String( | |
304 | + | let bY = bq | |
305 | + | fromBase58String(bY) | |
303 | 306 | } | |
304 | - | else if ($isInstanceOf( | |
307 | + | else if ($isInstanceOf(bq, "Unit")) | |
305 | 308 | then unit | |
306 | 309 | else throw("Match error") | |
307 | 310 | } | |
308 | 311 | ||
309 | 312 | ||
310 | - | func | |
311 | - | let | |
312 | - | if ($isInstanceOf( | |
313 | + | func bZ () = { | |
314 | + | let bq = getString(aC()) | |
315 | + | if ($isInstanceOf(bq, "String")) | |
313 | 316 | then { | |
314 | - | let | |
315 | - | fromBase58String( | |
317 | + | let bY = bq | |
318 | + | fromBase58String(bY) | |
316 | 319 | } | |
317 | - | else if ($isInstanceOf( | |
320 | + | else if ($isInstanceOf(bq, "Unit")) | |
318 | 321 | then unit | |
319 | 322 | else throw("Match error") | |
320 | 323 | } | |
321 | 324 | ||
322 | 325 | ||
323 | - | func | |
324 | - | let | |
325 | - | let | |
326 | - | if ($isInstanceOf( | |
326 | + | func ca (cb) = { | |
327 | + | let cc = throw("Permission denied") | |
328 | + | let bq = bX() | |
329 | + | if ($isInstanceOf(bq, "ByteVector")) | |
327 | 330 | then { | |
328 | - | let | |
329 | - | if (( | |
331 | + | let cd = bq | |
332 | + | if ((cb.callerPublicKey == cd)) | |
330 | 333 | then true | |
331 | - | else | |
334 | + | else cc | |
332 | 335 | } | |
333 | - | else if ($isInstanceOf( | |
334 | - | then if (( | |
336 | + | else if ($isInstanceOf(bq, "Unit")) | |
337 | + | then if ((cb.caller == this)) | |
335 | 338 | then true | |
336 | - | else | |
339 | + | else cc | |
337 | 340 | else throw("Match error") | |
338 | 341 | } | |
339 | 342 | ||
340 | 343 | ||
341 | - | @Callable( | |
342 | - | func constructor ( | |
343 | - | let | |
344 | - | let | |
345 | - | if (isDefined(getString( | |
344 | + | @Callable(cb) | |
345 | + | func constructor (D,E,F,G,k,K,M) = { | |
346 | + | let H = ((100 * 1000) * 1000) | |
347 | + | let ce = (D + E) | |
348 | + | if (isDefined(getString(ad()))) | |
346 | 349 | then throw("already initialized") | |
347 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
350 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cb.caller))) | |
348 | 351 | then throw("not authorized") | |
349 | - | else if ((size( | |
352 | + | else if ((size(cb.payments) != 1)) | |
350 | 353 | then throw("exactly 1 payment must be attached") | |
351 | - | else if (( | |
354 | + | else if ((ce >= F)) | |
352 | 355 | then throw("claimStart must be greater than idoEnd") | |
353 | 356 | else { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | [StringEntry( | |
357 | + | let cf = value(cb.payments[0]) | |
358 | + | let bc = value(cf.assetId) | |
359 | + | let cg = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
360 | + | let I = toBase58String(bc) | |
361 | + | let J = pow(10, 0, cg.decimals, 0, 0, DOWN) | |
362 | + | let bd = fromBase58String(K) | |
363 | + | let ch = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
364 | + | let L = pow(10, 0, ch.decimals, 0, 0, DOWN) | |
365 | + | let ci = aG() | |
366 | + | let cj = [0, 0, 0, 0] | |
367 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cf.amount)), aN(ag(), ci, cj, F)] | |
365 | 368 | } | |
366 | 369 | } | |
367 | 370 | ||
368 | 371 | ||
369 | 372 | ||
370 | - | @Callable( | |
373 | + | @Callable(cb) | |
371 | 374 | func invest () = { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | if (( | |
375 | + | let ba = aD() | |
376 | + | let D = parseIntValue(ba[r]) | |
377 | + | let E = parseIntValue(ba[s]) | |
378 | + | let ce = (D + E) | |
379 | + | let F = parseIntValue(ba[t]) | |
380 | + | let G = parseIntValue(ba[u]) | |
381 | + | let k = parseIntValue(ba[v]) | |
382 | + | let H = parseIntValue(ba[w]) | |
383 | + | let I = ba[x] | |
384 | + | let bc = fromBase58String(I) | |
385 | + | let J = parseIntValue(ba[y]) | |
386 | + | let K = ba[z] | |
387 | + | let bd = fromBase58String(K) | |
388 | + | let L = parseIntValue(ba[A]) | |
389 | + | let ck = parseIntValue(ba[B]) | |
390 | + | let af = toString(cb.caller) | |
391 | + | if ((D > height)) | |
389 | 392 | then throw("ido has not been started yet") | |
390 | - | else if ((height > | |
393 | + | else if ((height > ce)) | |
391 | 394 | then throw("ido has been already ended") | |
392 | - | else if ((size( | |
395 | + | else if ((size(cb.payments) != 1)) | |
393 | 396 | then throw("exactly 1 payment is expected") | |
394 | 397 | else { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (( | |
399 | - | then throw((("invalid payment asset id: " + toBase58String( | |
398 | + | let cf = value(cb.payments[0]) | |
399 | + | let cl = value(cf.assetId) | |
400 | + | let cm = cf.amount | |
401 | + | if ((cl != bd)) | |
402 | + | then throw((("invalid payment asset id: " + toBase58String(cl)) + " is expected")) | |
400 | 403 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | if (( | |
404 | + | let cn = aH(af) | |
405 | + | let ci = aG() | |
406 | + | let co = (parseIntValue(ci[P]) + cm) | |
407 | + | let cp = (co * 100) | |
408 | + | if ((cp > assetBalance(this, bc))) | |
406 | 409 | then throw("IDO asset has been - sold consider to use smaller payment") | |
407 | 410 | else { | |
408 | - | let | |
409 | - | [ | |
411 | + | let cj = [cm, cm, 0, 0] | |
412 | + | [aN(ae(af), cn, cj, F), aN(ag(), ci, cj, F), aV(af, cm, 0, cb.transactionId)] | |
410 | 413 | } | |
411 | 414 | } | |
412 | 415 | } | |
414 | 417 | ||
415 | 418 | ||
416 | 419 | ||
417 | - | @Callable( | |
418 | - | func claim ( | |
419 | - | let | |
420 | - | if (( | |
420 | + | @Callable(cb) | |
421 | + | func claim (aZ,be) = { | |
422 | + | let cq = toString(cb.caller) | |
423 | + | if ((be != cq)) | |
421 | 424 | then throw("not authorized") | |
422 | 425 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
426 | + | let ba = aD() | |
427 | + | let K = ba[z] | |
428 | + | let cr = aY(aZ, cb.caller, cb.transactionId) | |
429 | + | let cj = cr._1 | |
430 | + | let bu = cr._2 | |
431 | + | let cs = cr._3 | |
432 | + | let bf = cr._4 | |
433 | + | let bj = cr._5 | |
434 | + | let ct = cj[aL] | |
435 | + | let cu = cj[aM] | |
436 | + | let cv = if ((aZ == K)) | |
434 | 437 | then { | |
435 | - | let cu = br(I, bc, bs, ch[aJ]) | |
436 | - | let bH = cu._1 | |
437 | - | let bF = cu._2 | |
438 | - | let bG = cu._3 | |
439 | - | let bt = cu._4 | |
440 | - | let bI = cu._5 | |
441 | - | let bT = cu._6 | |
442 | - | let bU = cu._7 | |
443 | - | let bC = cu._8 | |
444 | - | let bD = cu._9 | |
445 | - | let bE = cu._10 | |
446 | - | let cv = valueOrElse(getInteger(ax(bc)), 0) | |
447 | - | let cw = (bF - bH) | |
448 | - | let cx = (bG - bH) | |
449 | - | let ct = if ((cv >= bH)) | |
450 | - | then [ScriptTransfer(bZ.caller, bH, cq), IntegerEntry(ax(bc), (cv - bH))] | |
451 | - | else { | |
452 | - | let cy = ((cv + bs) - bH) | |
453 | - | [ScriptTransfer(bZ.caller, bH, cq), aL(ac(bc), bd, ch, bh), aL(ae(), aE(), ch, bh), IntegerEntry(ax(bc), cy)] | |
438 | + | let cw = bt(K, be, bu, cj[aL]) | |
439 | + | let bJ = cw._1 | |
440 | + | let bH = cw._2 | |
441 | + | let bI = cw._3 | |
442 | + | let bv = cw._4 | |
443 | + | let bK = cw._5 | |
444 | + | let bV = cw._6 | |
445 | + | let bW = cw._7 | |
446 | + | let bE = cw._8 | |
447 | + | let bF = cw._9 | |
448 | + | let bG = cw._10 | |
449 | + | let bs = [if ((bJ > 0)) | |
450 | + | then true | |
451 | + | else f("nothing to claim"), if ((bI > 0)) | |
452 | + | then true | |
453 | + | else f("unavailable to claim because user period allowance reached"), if ((bH > 0)) | |
454 | + | then true | |
455 | + | else f("unavailable to claim because total period allowance reached"), if ((bK > bV)) | |
456 | + | then true | |
457 | + | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
458 | + | if ((bs == bs)) | |
459 | + | then { | |
460 | + | let cx = valueOrElse(getInteger(az(be)), 0) | |
461 | + | let cy = (bH - bJ) | |
462 | + | let cz = (bI - bJ) | |
463 | + | let cv = if ((cx >= bJ)) | |
464 | + | then [ScriptTransfer(cb.caller, bJ, cs), IntegerEntry(az(be), (cx - bJ))] | |
465 | + | else { | |
466 | + | let cA = ((cx + bu) - bJ) | |
467 | + | [ScriptTransfer(cb.caller, bJ, cs), aN(ae(be), bf, cj, bj), aN(ag(), aG(), cj, bj), IntegerEntry(az(be), cA)] | |
468 | + | } | |
469 | + | $Tuple2(([IntegerEntry(an(), bE), IntegerEntry(ao(bE), bF), IntegerEntry(aq(bE), bG), IntegerEntry(av(K, bE), cy), IntegerEntry(aw(K, bE, be), cz), aX(be, bJ, cu, cb.transactionId)] ++ cv), unit) | |
454 | 470 | } | |
455 | - | | |
471 | + | else throw("Strict value is not equal to itself.") | |
456 | 472 | } | |
457 | - | else $Tuple2([ScriptTransfer( | |
458 | - | | |
473 | + | else $Tuple2([ScriptTransfer(cb.caller, bu, cs), aN(ae(be), bf, cj, bj), aN(ag(), aG(), cj, bj), aX(be, ct, cu, cb.transactionId)], unit) | |
474 | + | cv | |
459 | 475 | } | |
460 | 476 | } | |
461 | 477 | ||
462 | 478 | ||
463 | 479 | ||
464 | - | @Callable( | |
465 | - | func claimREADONLY ( | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | $Tuple2(nil, makeString(["%s%d%d", | |
480 | + | @Callable(cb) | |
481 | + | func claimREADONLY (aZ,be) = { | |
482 | + | let cr = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
483 | + | let cj = cr._1 | |
484 | + | let bu = cr._2 | |
485 | + | let cs = cr._3 | |
486 | + | let bf = cr._4 | |
487 | + | let bj = cr._5 | |
488 | + | let cB = cr._6 | |
489 | + | let cC = cB[0] | |
490 | + | let cD = cB[1] | |
491 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cC), toString(cD)], c)) | |
476 | 492 | } | |
477 | 493 | ||
478 | 494 | ||
479 | 495 | ||
480 | - | @Callable( | |
481 | - | func claimV2READONLY ( | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | $Tuple2(nil, | |
496 | + | @Callable(cb) | |
497 | + | func claimV2READONLY (aZ,be) = { | |
498 | + | let cr = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
499 | + | let cj = cr._1 | |
500 | + | let bu = cr._2 | |
501 | + | let cs = cr._3 | |
502 | + | let bf = cr._4 | |
503 | + | let bj = cr._5 | |
504 | + | let cB = cr._6 | |
505 | + | let cC = cB[0] | |
506 | + | let cD = cB[1] | |
507 | + | let ba = aD() | |
508 | + | let K = ba[z] | |
509 | + | let cE = bt(K, be, bu, cj[aL]) | |
510 | + | let bJ = cE._1 | |
511 | + | let bH = cE._2 | |
512 | + | let bI = cE._3 | |
513 | + | let bv = cE._4 | |
514 | + | let bK = cE._5 | |
515 | + | let bV = cE._6 | |
516 | + | let bW = cE._7 | |
517 | + | let bE = cE._8 | |
518 | + | let bF = cE._9 | |
519 | + | let bG = cE._10 | |
520 | + | let cF = makeString(["%d%d%d%d%d%d", toString(cD), toString(bJ), toString(bH), toString(bK), toString(bV), toString(bW)], c) | |
521 | + | $Tuple2(nil, cF) | |
506 | 522 | } | |
507 | 523 | ||
508 | 524 | ||
509 | 525 | ||
510 | - | @Callable( | |
511 | - | func setManager ( | |
512 | - | let | |
513 | - | if (( | |
526 | + | @Callable(cb) | |
527 | + | func setManager (cG) = { | |
528 | + | let cH = ca(cb) | |
529 | + | if ((cH == cH)) | |
514 | 530 | then { | |
515 | - | let | |
516 | - | if (( | |
517 | - | then [StringEntry( | |
531 | + | let cI = fromBase58String(cG) | |
532 | + | if ((cI == cI)) | |
533 | + | then [StringEntry(aC(), cG)] | |
518 | 534 | else throw("Strict value is not equal to itself.") | |
519 | 535 | } | |
520 | 536 | else throw("Strict value is not equal to itself.") | |
522 | 538 | ||
523 | 539 | ||
524 | 540 | ||
525 | - | @Callable( | |
541 | + | @Callable(cb) | |
526 | 542 | func confirmManager () = { | |
527 | - | let | |
528 | - | let | |
543 | + | let cJ = bZ() | |
544 | + | let cK = if (isDefined(cJ)) | |
529 | 545 | then true | |
530 | 546 | else throw("No pending manager") | |
531 | - | if (( | |
547 | + | if ((cK == cK)) | |
532 | 548 | then { | |
533 | - | let | |
549 | + | let cL = if ((cb.callerPublicKey == value(cJ))) | |
534 | 550 | then true | |
535 | 551 | else throw("You are not pending manager") | |
536 | - | if (( | |
537 | - | then [StringEntry( | |
552 | + | if ((cL == cL)) | |
553 | + | then [StringEntry(aB(), toBase58String(value(cJ))), DeleteEntry(aC())] | |
538 | 554 | else throw("Strict value is not equal to itself.") | |
539 | 555 | } | |
540 | 556 | else throw("Strict value is not equal to itself.") | |
541 | 557 | } | |
542 | 558 | ||
543 | 559 | ||
544 | - | @Verifier( | |
545 | - | func | |
546 | - | let | |
547 | - | let | |
548 | - | if ($isInstanceOf( | |
560 | + | @Verifier(cM) | |
561 | + | func cN () = { | |
562 | + | let cO = { | |
563 | + | let bq = bX() | |
564 | + | if ($isInstanceOf(bq, "ByteVector")) | |
549 | 565 | then { | |
550 | - | let | |
551 | - | | |
566 | + | let cd = bq | |
567 | + | cd | |
552 | 568 | } | |
553 | - | else if ($isInstanceOf( | |
554 | - | then | |
569 | + | else if ($isInstanceOf(bq, "Unit")) | |
570 | + | then cM.senderPublicKey | |
555 | 571 | else throw("Match error") | |
556 | 572 | } | |
557 | - | sigVerify( | |
573 | + | sigVerify(cM.bodyBytes, cM.proofs[0], cO) | |
558 | 574 | } | |
559 | 575 |
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 | let e = 100000000 | |
12 | 12 | ||
13 | - | func f (g,h,i,j,k) = { | |
14 | - | let l = toBigInt(h) | |
15 | - | let m = toBigInt(k) | |
16 | - | let n = fraction(toBigInt(g), d, l) | |
17 | - | let o = fraction(n, toBigInt(j), toBigInt(i)) | |
18 | - | toInt(fraction(o, toBigInt(k), d)) | |
13 | + | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | + | ||
15 | + | ||
16 | + | func h (i,j,k,l,m) = { | |
17 | + | let n = toBigInt(j) | |
18 | + | let o = toBigInt(m) | |
19 | + | let p = fraction(toBigInt(i), d, n) | |
20 | + | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | + | toInt(fraction(q, toBigInt(m), d)) | |
19 | 22 | } | |
20 | 23 | ||
21 | 24 | ||
22 | - | let | |
25 | + | let r = 1 | |
23 | 26 | ||
24 | - | let | |
27 | + | let s = 2 | |
25 | 28 | ||
26 | - | let | |
29 | + | let t = 3 | |
27 | 30 | ||
28 | - | let | |
31 | + | let u = 4 | |
29 | 32 | ||
30 | - | let | |
33 | + | let v = 5 | |
31 | 34 | ||
32 | - | let | |
35 | + | let w = 6 | |
33 | 36 | ||
34 | - | let | |
37 | + | let x = 7 | |
35 | 38 | ||
36 | - | let | |
39 | + | let y = 8 | |
37 | 40 | ||
38 | - | let | |
41 | + | let z = 9 | |
39 | 42 | ||
40 | - | let | |
43 | + | let A = 10 | |
41 | 44 | ||
42 | - | let | |
45 | + | let B = 11 | |
43 | 46 | ||
44 | - | func | |
47 | + | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
45 | 48 | ||
46 | 49 | ||
47 | - | func | |
50 | + | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
48 | 51 | ||
49 | 52 | ||
50 | - | let | |
53 | + | let P = 1 | |
51 | 54 | ||
52 | - | let | |
55 | + | let Q = 2 | |
53 | 56 | ||
54 | - | let | |
57 | + | let R = 3 | |
55 | 58 | ||
56 | - | let | |
59 | + | let S = 4 | |
57 | 60 | ||
58 | - | let | |
61 | + | let T = 5 | |
59 | 62 | ||
60 | - | func | |
63 | + | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
61 | 64 | ||
62 | 65 | ||
63 | - | func | |
66 | + | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
64 | 67 | ||
65 | 68 | ||
66 | - | func | |
69 | + | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
67 | 70 | ||
68 | 71 | ||
69 | - | func | |
72 | + | func ad () = "%s__config" | |
70 | 73 | ||
71 | 74 | ||
72 | - | func | |
75 | + | func ae (af) = ("%s__" + af) | |
73 | 76 | ||
74 | 77 | ||
75 | - | func | |
78 | + | func ag () = "%s__totals" | |
76 | 79 | ||
77 | 80 | ||
78 | - | func | |
81 | + | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
79 | 82 | ||
80 | 83 | ||
81 | - | func | |
84 | + | func ak () = "%s__usdnClaimDisabled" | |
82 | 85 | ||
83 | 86 | ||
84 | - | func | |
87 | + | func al () = "%s__usdnClaimEndHeight" | |
85 | 88 | ||
86 | 89 | ||
87 | - | func | |
90 | + | func am () = makeString(["%s", "periodLength"], c) | |
88 | 91 | ||
89 | 92 | ||
90 | - | func | |
93 | + | func an () = makeString(["%s", "currentPeriod"], c) | |
91 | 94 | ||
92 | 95 | ||
93 | - | func | |
96 | + | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
94 | 97 | ||
95 | 98 | ||
96 | - | func | |
99 | + | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
97 | 100 | ||
98 | 101 | ||
99 | - | func | |
102 | + | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
100 | 103 | ||
101 | 104 | ||
102 | - | func | |
105 | + | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
103 | 106 | ||
104 | 107 | ||
105 | - | func | |
108 | + | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
106 | 109 | ||
107 | 110 | ||
108 | - | func | |
111 | + | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
109 | 112 | ||
110 | 113 | ||
111 | - | func | |
114 | + | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
112 | 115 | ||
113 | 116 | ||
114 | - | func | |
117 | + | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
115 | 118 | ||
116 | 119 | ||
117 | - | func | |
120 | + | func ay () = makeString(["%s", "usdtAssetId"], c) | |
118 | 121 | ||
119 | 122 | ||
120 | - | func | |
123 | + | func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c) | |
121 | 124 | ||
122 | 125 | ||
123 | - | func | |
126 | + | func aB () = "%s__managerPublicKey" | |
124 | 127 | ||
125 | 128 | ||
126 | - | func | |
129 | + | func aC () = "%s__pendingManagerPublicKey" | |
127 | 130 | ||
128 | 131 | ||
129 | - | func | |
132 | + | func aD () = split(a(ad()), c) | |
130 | 133 | ||
131 | 134 | ||
132 | - | func | |
135 | + | func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c) | |
133 | 136 | ||
134 | 137 | ||
135 | - | func | |
138 | + | func aG () = aE(ag()) | |
136 | 139 | ||
137 | 140 | ||
138 | - | func | |
141 | + | func aH (af) = aE(ae(af)) | |
139 | 142 | ||
140 | 143 | ||
141 | - | func | |
144 | + | func aI (af) = split(a(ae(af)), c) | |
142 | 145 | ||
143 | 146 | ||
144 | - | let | |
147 | + | let aJ = 0 | |
145 | 148 | ||
146 | - | let | |
149 | + | let aK = 1 | |
147 | 150 | ||
148 | - | let | |
151 | + | let aL = 2 | |
149 | 152 | ||
150 | - | let | |
153 | + | let aM = 3 | |
151 | 154 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | if ((0 > | |
155 | + | func aN (b,aO,aP,aQ) = { | |
156 | + | let V = parseIntValue(aO[P]) | |
157 | + | let W = parseIntValue(aO[Q]) | |
158 | + | let X = parseIntValue(aO[R]) | |
159 | + | let Y = parseIntValue(aO[S]) | |
160 | + | let Z = parseIntValue(aO[T]) | |
161 | + | let aR = (V + aP[aJ]) | |
162 | + | let aS = (W + aP[aK]) | |
163 | + | let aT = (X + aP[aL]) | |
164 | + | let aU = (Y + aP[aM]) | |
165 | + | if ((0 > aS)) | |
163 | 166 | then throw("invalid math") | |
164 | - | else StringEntry(b, | |
167 | + | else StringEntry(b, aa(aR, aS, aT, aU, aQ)) | |
165 | 168 | } | |
166 | 169 | ||
167 | 170 | ||
168 | - | func | |
171 | + | func aV (af,i,ac,aW) = StringEntry(ah("invest", af, toBase58String(aW)), ab(i, ac)) | |
169 | 172 | ||
170 | 173 | ||
171 | - | func | |
174 | + | func aX (af,i,ac,aW) = StringEntry(ah("claim", af, toBase58String(aW)), ab(i, ac)) | |
172 | 175 | ||
173 | 176 | ||
174 | - | func | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | then | |
193 | - | else | |
194 | - | let | |
195 | - | then | |
196 | - | else if (( | |
197 | - | then | |
177 | + | func aY (aZ,af,aW) = { | |
178 | + | let ba = aD() | |
179 | + | let F = parseIntValue(ba[t]) | |
180 | + | let G = parseIntValue(ba[u]) | |
181 | + | let bb = (F + G) | |
182 | + | let k = parseIntValue(ba[v]) | |
183 | + | let H = parseIntValue(ba[w]) | |
184 | + | let I = ba[x] | |
185 | + | let bc = fromBase58String(I) | |
186 | + | let J = parseIntValue(ba[y]) | |
187 | + | let K = ba[z] | |
188 | + | let bd = fromBase58String(K) | |
189 | + | let L = parseIntValue(ba[A]) | |
190 | + | let be = toString(af) | |
191 | + | let bf = aI(be) | |
192 | + | let bg = parseIntValue(bf[P]) | |
193 | + | let bh = parseIntValue(bf[T]) | |
194 | + | let bi = if ((F >= bh)) | |
195 | + | then F | |
196 | + | else bh | |
197 | + | let bj = if ((height > bb)) | |
198 | + | then bb | |
199 | + | else if ((F > height)) | |
200 | + | then F | |
198 | 201 | else height | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | if ($isInstanceOf( | |
202 | + | let bk = (bj - bi) | |
203 | + | let bl = fraction(bg, bk, G) | |
204 | + | let bm = h(bl, L, k, H, J) | |
205 | + | let bn = (aZ == K) | |
206 | + | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | + | let bp = { | |
208 | + | let bq = getInteger(al()) | |
209 | + | if ($isInstanceOf(bq, "Int")) | |
207 | 210 | then { | |
208 | - | let | |
209 | - | (height > | |
211 | + | let br = bq | |
212 | + | (height > br) | |
210 | 213 | } | |
211 | - | else if ($isInstanceOf( | |
214 | + | else if ($isInstanceOf(bq, "Unit")) | |
212 | 215 | then false | |
213 | 216 | else throw("Match error") | |
214 | 217 | } | |
215 | - | let | |
216 | - | then | |
218 | + | let bs = [if (!(if (bn) | |
219 | + | then bo | |
217 | 220 | else false)) | |
218 | 221 | then true | |
219 | - | else throw("USDN claim is disabled"), if (!(if ( | |
220 | - | then | |
222 | + | else throw("USDN claim is disabled"), if (!(if (bn) | |
223 | + | then bp | |
221 | 224 | else false)) | |
222 | 225 | then true | |
223 | 226 | else throw("USDN claim is ended")] | |
224 | - | if (( | |
225 | - | then if (( | |
226 | - | then $Tuple6([0, -( | |
227 | - | else if (( | |
228 | - | then $Tuple6([0, -( | |
229 | - | else throw(("unsupported assetId: " + | |
227 | + | if ((bs == bs)) | |
228 | + | then if ((aZ == K)) | |
229 | + | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
230 | + | else if ((aZ == I)) | |
231 | + | then $Tuple6([0, -(bl), 0, bm], bm, bc, bf, bj, [bl, bm]) | |
232 | + | else throw(("unsupported assetId: " + aZ)) | |
230 | 233 | else throw("Strict value is not equal to itself.") | |
231 | 234 | } | |
232 | 235 | ||
233 | 236 | ||
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
237 | + | func bt (K,be,bu,bv) = { | |
238 | + | let bw = value(getInteger(as(K))) | |
239 | + | let bx = value(getInteger(au(K))) | |
240 | + | let by = value(getInteger(am())) | |
241 | + | let bz = valueOrElse(getInteger(an()), 0) | |
242 | + | let bA = if ((bz > 0)) | |
240 | 243 | then { | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | + | let bB = value(getInteger(ao((bz - 1)))) | |
245 | + | let bC = value(getInteger(aq((bz - 1)))) | |
246 | + | let bD = if ((height > bC)) | |
244 | 247 | then { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple3( | |
248 | + | let bE = (bz + 1) | |
249 | + | let bF = (bC + 1) | |
250 | + | let bG = ((bF + by) - 1) | |
251 | + | $Tuple3(bE, bF, bG) | |
249 | 252 | } | |
250 | - | else $Tuple3( | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | $Tuple3( | |
253 | + | else $Tuple3(bz, bB, bC) | |
254 | + | let bE = bD._1 | |
255 | + | let bF = bD._2 | |
256 | + | let bG = bD._3 | |
257 | + | $Tuple3(bE, bF, bG) | |
255 | 258 | } | |
256 | - | else $Tuple3( | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
268 | - | then | |
259 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
260 | + | let bE = bA._1 | |
261 | + | let bF = bA._2 | |
262 | + | let bG = bA._3 | |
263 | + | let bH = valueOrElse(getInteger(av(K, bE)), bw) | |
264 | + | let bI = valueOrElse(getInteger(aw(K, bE, be)), bx) | |
265 | + | let bJ = min([bu, bH, bI]) | |
266 | + | let bK = value(getInteger(ar())) | |
267 | + | let bL = e | |
268 | + | let bM = { | |
269 | + | let bN = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bL, K], nil) | |
270 | + | if ($isInstanceOf(bN, "(Int, Int, Int)")) | |
271 | + | then bN | |
269 | 272 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
270 | 273 | } | |
271 | - | if (( | |
274 | + | if ((bM == bM)) | |
272 | 275 | then { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | if ($isInstanceOf( | |
280 | - | then | |
276 | + | let bO = bM._3 | |
277 | + | let bP = bM._2 | |
278 | + | let bQ = bM._1 | |
279 | + | let bR = value(getString(ay())) | |
280 | + | let bS = { | |
281 | + | let bN = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bR, bQ], nil) | |
282 | + | if ($isInstanceOf(bN, "(Int, Int)")) | |
283 | + | then bN | |
281 | 284 | else throw("Couldn't cast Any to (Int, Int)") | |
282 | 285 | } | |
283 | - | if (( | |
286 | + | if ((bS == bS)) | |
284 | 287 | then { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple10(bH, bF, bG | |
288 | + | let bT = bS._2 | |
289 | + | let bU = bS._1 | |
290 | + | let bV = fraction(bU, bL, e) | |
291 | + | let bW = (bG - height) | |
292 | + | $Tuple10(bJ, bH, bI, bv, bK, bV, bW, bE, bF, bG) | |
290 | 293 | } | |
291 | 294 | else throw("Strict value is not equal to itself.") | |
292 | 295 | } | |
293 | 296 | else throw("Strict value is not equal to itself.") | |
294 | 297 | } | |
295 | 298 | ||
296 | 299 | ||
297 | - | func | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
300 | + | func bX () = { | |
301 | + | let bq = getString(aB()) | |
302 | + | if ($isInstanceOf(bq, "String")) | |
300 | 303 | then { | |
301 | - | let | |
302 | - | fromBase58String( | |
304 | + | let bY = bq | |
305 | + | fromBase58String(bY) | |
303 | 306 | } | |
304 | - | else if ($isInstanceOf( | |
307 | + | else if ($isInstanceOf(bq, "Unit")) | |
305 | 308 | then unit | |
306 | 309 | else throw("Match error") | |
307 | 310 | } | |
308 | 311 | ||
309 | 312 | ||
310 | - | func | |
311 | - | let | |
312 | - | if ($isInstanceOf( | |
313 | + | func bZ () = { | |
314 | + | let bq = getString(aC()) | |
315 | + | if ($isInstanceOf(bq, "String")) | |
313 | 316 | then { | |
314 | - | let | |
315 | - | fromBase58String( | |
317 | + | let bY = bq | |
318 | + | fromBase58String(bY) | |
316 | 319 | } | |
317 | - | else if ($isInstanceOf( | |
320 | + | else if ($isInstanceOf(bq, "Unit")) | |
318 | 321 | then unit | |
319 | 322 | else throw("Match error") | |
320 | 323 | } | |
321 | 324 | ||
322 | 325 | ||
323 | - | func | |
324 | - | let | |
325 | - | let | |
326 | - | if ($isInstanceOf( | |
326 | + | func ca (cb) = { | |
327 | + | let cc = throw("Permission denied") | |
328 | + | let bq = bX() | |
329 | + | if ($isInstanceOf(bq, "ByteVector")) | |
327 | 330 | then { | |
328 | - | let | |
329 | - | if (( | |
331 | + | let cd = bq | |
332 | + | if ((cb.callerPublicKey == cd)) | |
330 | 333 | then true | |
331 | - | else | |
334 | + | else cc | |
332 | 335 | } | |
333 | - | else if ($isInstanceOf( | |
334 | - | then if (( | |
336 | + | else if ($isInstanceOf(bq, "Unit")) | |
337 | + | then if ((cb.caller == this)) | |
335 | 338 | then true | |
336 | - | else | |
339 | + | else cc | |
337 | 340 | else throw("Match error") | |
338 | 341 | } | |
339 | 342 | ||
340 | 343 | ||
341 | - | @Callable( | |
342 | - | func constructor ( | |
343 | - | let | |
344 | - | let | |
345 | - | if (isDefined(getString( | |
344 | + | @Callable(cb) | |
345 | + | func constructor (D,E,F,G,k,K,M) = { | |
346 | + | let H = ((100 * 1000) * 1000) | |
347 | + | let ce = (D + E) | |
348 | + | if (isDefined(getString(ad()))) | |
346 | 349 | then throw("already initialized") | |
347 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
350 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cb.caller))) | |
348 | 351 | then throw("not authorized") | |
349 | - | else if ((size( | |
352 | + | else if ((size(cb.payments) != 1)) | |
350 | 353 | then throw("exactly 1 payment must be attached") | |
351 | - | else if (( | |
354 | + | else if ((ce >= F)) | |
352 | 355 | then throw("claimStart must be greater than idoEnd") | |
353 | 356 | else { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | [StringEntry( | |
357 | + | let cf = value(cb.payments[0]) | |
358 | + | let bc = value(cf.assetId) | |
359 | + | let cg = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
360 | + | let I = toBase58String(bc) | |
361 | + | let J = pow(10, 0, cg.decimals, 0, 0, DOWN) | |
362 | + | let bd = fromBase58String(K) | |
363 | + | let ch = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
364 | + | let L = pow(10, 0, ch.decimals, 0, 0, DOWN) | |
365 | + | let ci = aG() | |
366 | + | let cj = [0, 0, 0, 0] | |
367 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cf.amount)), aN(ag(), ci, cj, F)] | |
365 | 368 | } | |
366 | 369 | } | |
367 | 370 | ||
368 | 371 | ||
369 | 372 | ||
370 | - | @Callable( | |
373 | + | @Callable(cb) | |
371 | 374 | func invest () = { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | if (( | |
375 | + | let ba = aD() | |
376 | + | let D = parseIntValue(ba[r]) | |
377 | + | let E = parseIntValue(ba[s]) | |
378 | + | let ce = (D + E) | |
379 | + | let F = parseIntValue(ba[t]) | |
380 | + | let G = parseIntValue(ba[u]) | |
381 | + | let k = parseIntValue(ba[v]) | |
382 | + | let H = parseIntValue(ba[w]) | |
383 | + | let I = ba[x] | |
384 | + | let bc = fromBase58String(I) | |
385 | + | let J = parseIntValue(ba[y]) | |
386 | + | let K = ba[z] | |
387 | + | let bd = fromBase58String(K) | |
388 | + | let L = parseIntValue(ba[A]) | |
389 | + | let ck = parseIntValue(ba[B]) | |
390 | + | let af = toString(cb.caller) | |
391 | + | if ((D > height)) | |
389 | 392 | then throw("ido has not been started yet") | |
390 | - | else if ((height > | |
393 | + | else if ((height > ce)) | |
391 | 394 | then throw("ido has been already ended") | |
392 | - | else if ((size( | |
395 | + | else if ((size(cb.payments) != 1)) | |
393 | 396 | then throw("exactly 1 payment is expected") | |
394 | 397 | else { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (( | |
399 | - | then throw((("invalid payment asset id: " + toBase58String( | |
398 | + | let cf = value(cb.payments[0]) | |
399 | + | let cl = value(cf.assetId) | |
400 | + | let cm = cf.amount | |
401 | + | if ((cl != bd)) | |
402 | + | then throw((("invalid payment asset id: " + toBase58String(cl)) + " is expected")) | |
400 | 403 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | if (( | |
404 | + | let cn = aH(af) | |
405 | + | let ci = aG() | |
406 | + | let co = (parseIntValue(ci[P]) + cm) | |
407 | + | let cp = (co * 100) | |
408 | + | if ((cp > assetBalance(this, bc))) | |
406 | 409 | then throw("IDO asset has been - sold consider to use smaller payment") | |
407 | 410 | else { | |
408 | - | let | |
409 | - | [ | |
411 | + | let cj = [cm, cm, 0, 0] | |
412 | + | [aN(ae(af), cn, cj, F), aN(ag(), ci, cj, F), aV(af, cm, 0, cb.transactionId)] | |
410 | 413 | } | |
411 | 414 | } | |
412 | 415 | } | |
413 | 416 | } | |
414 | 417 | ||
415 | 418 | ||
416 | 419 | ||
417 | - | @Callable( | |
418 | - | func claim ( | |
419 | - | let | |
420 | - | if (( | |
420 | + | @Callable(cb) | |
421 | + | func claim (aZ,be) = { | |
422 | + | let cq = toString(cb.caller) | |
423 | + | if ((be != cq)) | |
421 | 424 | then throw("not authorized") | |
422 | 425 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
426 | + | let ba = aD() | |
427 | + | let K = ba[z] | |
428 | + | let cr = aY(aZ, cb.caller, cb.transactionId) | |
429 | + | let cj = cr._1 | |
430 | + | let bu = cr._2 | |
431 | + | let cs = cr._3 | |
432 | + | let bf = cr._4 | |
433 | + | let bj = cr._5 | |
434 | + | let ct = cj[aL] | |
435 | + | let cu = cj[aM] | |
436 | + | let cv = if ((aZ == K)) | |
434 | 437 | then { | |
435 | - | let cu = br(I, bc, bs, ch[aJ]) | |
436 | - | let bH = cu._1 | |
437 | - | let bF = cu._2 | |
438 | - | let bG = cu._3 | |
439 | - | let bt = cu._4 | |
440 | - | let bI = cu._5 | |
441 | - | let bT = cu._6 | |
442 | - | let bU = cu._7 | |
443 | - | let bC = cu._8 | |
444 | - | let bD = cu._9 | |
445 | - | let bE = cu._10 | |
446 | - | let cv = valueOrElse(getInteger(ax(bc)), 0) | |
447 | - | let cw = (bF - bH) | |
448 | - | let cx = (bG - bH) | |
449 | - | let ct = if ((cv >= bH)) | |
450 | - | then [ScriptTransfer(bZ.caller, bH, cq), IntegerEntry(ax(bc), (cv - bH))] | |
451 | - | else { | |
452 | - | let cy = ((cv + bs) - bH) | |
453 | - | [ScriptTransfer(bZ.caller, bH, cq), aL(ac(bc), bd, ch, bh), aL(ae(), aE(), ch, bh), IntegerEntry(ax(bc), cy)] | |
438 | + | let cw = bt(K, be, bu, cj[aL]) | |
439 | + | let bJ = cw._1 | |
440 | + | let bH = cw._2 | |
441 | + | let bI = cw._3 | |
442 | + | let bv = cw._4 | |
443 | + | let bK = cw._5 | |
444 | + | let bV = cw._6 | |
445 | + | let bW = cw._7 | |
446 | + | let bE = cw._8 | |
447 | + | let bF = cw._9 | |
448 | + | let bG = cw._10 | |
449 | + | let bs = [if ((bJ > 0)) | |
450 | + | then true | |
451 | + | else f("nothing to claim"), if ((bI > 0)) | |
452 | + | then true | |
453 | + | else f("unavailable to claim because user period allowance reached"), if ((bH > 0)) | |
454 | + | then true | |
455 | + | else f("unavailable to claim because total period allowance reached"), if ((bK > bV)) | |
456 | + | then true | |
457 | + | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
458 | + | if ((bs == bs)) | |
459 | + | then { | |
460 | + | let cx = valueOrElse(getInteger(az(be)), 0) | |
461 | + | let cy = (bH - bJ) | |
462 | + | let cz = (bI - bJ) | |
463 | + | let cv = if ((cx >= bJ)) | |
464 | + | then [ScriptTransfer(cb.caller, bJ, cs), IntegerEntry(az(be), (cx - bJ))] | |
465 | + | else { | |
466 | + | let cA = ((cx + bu) - bJ) | |
467 | + | [ScriptTransfer(cb.caller, bJ, cs), aN(ae(be), bf, cj, bj), aN(ag(), aG(), cj, bj), IntegerEntry(az(be), cA)] | |
468 | + | } | |
469 | + | $Tuple2(([IntegerEntry(an(), bE), IntegerEntry(ao(bE), bF), IntegerEntry(aq(bE), bG), IntegerEntry(av(K, bE), cy), IntegerEntry(aw(K, bE, be), cz), aX(be, bJ, cu, cb.transactionId)] ++ cv), unit) | |
454 | 470 | } | |
455 | - | | |
471 | + | else throw("Strict value is not equal to itself.") | |
456 | 472 | } | |
457 | - | else $Tuple2([ScriptTransfer( | |
458 | - | | |
473 | + | else $Tuple2([ScriptTransfer(cb.caller, bu, cs), aN(ae(be), bf, cj, bj), aN(ag(), aG(), cj, bj), aX(be, ct, cu, cb.transactionId)], unit) | |
474 | + | cv | |
459 | 475 | } | |
460 | 476 | } | |
461 | 477 | ||
462 | 478 | ||
463 | 479 | ||
464 | - | @Callable( | |
465 | - | func claimREADONLY ( | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | $Tuple2(nil, makeString(["%s%d%d", | |
480 | + | @Callable(cb) | |
481 | + | func claimREADONLY (aZ,be) = { | |
482 | + | let cr = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
483 | + | let cj = cr._1 | |
484 | + | let bu = cr._2 | |
485 | + | let cs = cr._3 | |
486 | + | let bf = cr._4 | |
487 | + | let bj = cr._5 | |
488 | + | let cB = cr._6 | |
489 | + | let cC = cB[0] | |
490 | + | let cD = cB[1] | |
491 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cC), toString(cD)], c)) | |
476 | 492 | } | |
477 | 493 | ||
478 | 494 | ||
479 | 495 | ||
480 | - | @Callable( | |
481 | - | func claimV2READONLY ( | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | $Tuple2(nil, | |
496 | + | @Callable(cb) | |
497 | + | func claimV2READONLY (aZ,be) = { | |
498 | + | let cr = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
499 | + | let cj = cr._1 | |
500 | + | let bu = cr._2 | |
501 | + | let cs = cr._3 | |
502 | + | let bf = cr._4 | |
503 | + | let bj = cr._5 | |
504 | + | let cB = cr._6 | |
505 | + | let cC = cB[0] | |
506 | + | let cD = cB[1] | |
507 | + | let ba = aD() | |
508 | + | let K = ba[z] | |
509 | + | let cE = bt(K, be, bu, cj[aL]) | |
510 | + | let bJ = cE._1 | |
511 | + | let bH = cE._2 | |
512 | + | let bI = cE._3 | |
513 | + | let bv = cE._4 | |
514 | + | let bK = cE._5 | |
515 | + | let bV = cE._6 | |
516 | + | let bW = cE._7 | |
517 | + | let bE = cE._8 | |
518 | + | let bF = cE._9 | |
519 | + | let bG = cE._10 | |
520 | + | let cF = makeString(["%d%d%d%d%d%d", toString(cD), toString(bJ), toString(bH), toString(bK), toString(bV), toString(bW)], c) | |
521 | + | $Tuple2(nil, cF) | |
506 | 522 | } | |
507 | 523 | ||
508 | 524 | ||
509 | 525 | ||
510 | - | @Callable( | |
511 | - | func setManager ( | |
512 | - | let | |
513 | - | if (( | |
526 | + | @Callable(cb) | |
527 | + | func setManager (cG) = { | |
528 | + | let cH = ca(cb) | |
529 | + | if ((cH == cH)) | |
514 | 530 | then { | |
515 | - | let | |
516 | - | if (( | |
517 | - | then [StringEntry( | |
531 | + | let cI = fromBase58String(cG) | |
532 | + | if ((cI == cI)) | |
533 | + | then [StringEntry(aC(), cG)] | |
518 | 534 | else throw("Strict value is not equal to itself.") | |
519 | 535 | } | |
520 | 536 | else throw("Strict value is not equal to itself.") | |
521 | 537 | } | |
522 | 538 | ||
523 | 539 | ||
524 | 540 | ||
525 | - | @Callable( | |
541 | + | @Callable(cb) | |
526 | 542 | func confirmManager () = { | |
527 | - | let | |
528 | - | let | |
543 | + | let cJ = bZ() | |
544 | + | let cK = if (isDefined(cJ)) | |
529 | 545 | then true | |
530 | 546 | else throw("No pending manager") | |
531 | - | if (( | |
547 | + | if ((cK == cK)) | |
532 | 548 | then { | |
533 | - | let | |
549 | + | let cL = if ((cb.callerPublicKey == value(cJ))) | |
534 | 550 | then true | |
535 | 551 | else throw("You are not pending manager") | |
536 | - | if (( | |
537 | - | then [StringEntry( | |
552 | + | if ((cL == cL)) | |
553 | + | then [StringEntry(aB(), toBase58String(value(cJ))), DeleteEntry(aC())] | |
538 | 554 | else throw("Strict value is not equal to itself.") | |
539 | 555 | } | |
540 | 556 | else throw("Strict value is not equal to itself.") | |
541 | 557 | } | |
542 | 558 | ||
543 | 559 | ||
544 | - | @Verifier( | |
545 | - | func | |
546 | - | let | |
547 | - | let | |
548 | - | if ($isInstanceOf( | |
560 | + | @Verifier(cM) | |
561 | + | func cN () = { | |
562 | + | let cO = { | |
563 | + | let bq = bX() | |
564 | + | if ($isInstanceOf(bq, "ByteVector")) | |
549 | 565 | then { | |
550 | - | let | |
551 | - | | |
566 | + | let cd = bq | |
567 | + | cd | |
552 | 568 | } | |
553 | - | else if ($isInstanceOf( | |
554 | - | then | |
569 | + | else if ($isInstanceOf(bq, "Unit")) | |
570 | + | then cM.senderPublicKey | |
555 | 571 | else throw("Match error") | |
556 | 572 | } | |
557 | - | sigVerify( | |
573 | + | sigVerify(cM.bodyBytes, cM.proofs[0], cO) | |
558 | 574 | } | |
559 | 575 |
github/deemru/w8io/026f985 199.91 ms ◑