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