tx · HfBjJ3YqeSzkESCxmaH4hfXFPAmknTtikFJJF3xoxFFA 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje: -0.02700000 Waves 2022.11.04 09:57 [2302034] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves
{ "type": 13, "id": "HfBjJ3YqeSzkESCxmaH4hfXFPAmknTtikFJJF3xoxFFA", "fee": 2700000, "feeAssetId": null, "timestamp": 1667545048090, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "5u5R1kGVdzEcioCnoyr22gb8TnZJ6BMikbZYTojrL4nAq2iXPyR8XaxA1SrFNqm5B7fZzsAiB4HT1GVTfUtcF2yq" ], "script": "base64:AAIFAAAAAAAAD0QIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2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ACY2gAAAAPY2FsbGVyUHVibGljS2V5CQEAAAAFdmFsdWUAAAABBQAAAAJjVgYJAAACAAAAAQIAAAAbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWAUAAAACY1gJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAAmFCAAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJjVgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAACYUMAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACY1kBAAAAAmNaAAAAAAQAAAACZGEEAAAAAmNkCQEAAAACY2MAAAAAAwkAAAEAAAACBQAAAAJjZAIAAAAKQnl0ZVZlY3RvcgQAAAACY2oFAAAAAmNkBQAAAAJjagMJAAABAAAAAgUAAAACY2QCAAAABFVuaXQIBQAAAAJjWQAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAmNZAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACY1kAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJkYQVDWYw=", "chainId": 84, "height": 2302034, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GbhBVDZNiWzFUqbJahLR3KMmZEgYamkjHwMV795pDQYn Next: 3WN1ZbZKV8TF5k1CqoUBQMuphoXMcZPW76nbAdEtjkLv 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,aR) = { | |
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 aS = (V + aP[aJ]) | |
162 | + | let aT = (W + aP[aK]) | |
163 | + | let aU = aD() | |
164 | + | let K = aU[z] | |
165 | + | let aV = value(assetInfo(fromBase58String(K))).decimals | |
166 | + | let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
167 | + | let aX = ((X + aP[aL]) - aR) | |
168 | + | let aY = ((Y + aP[aM]) + aW) | |
169 | + | if ((0 > aT)) | |
125 | 170 | then throw("invalid math") | |
126 | - | else StringEntry(b, | |
171 | + | else StringEntry(b, aa(aS, aT, aX, aY, aQ)) | |
127 | 172 | } | |
128 | 173 | ||
129 | 174 | ||
130 | - | func | |
175 | + | func aZ (af,i,ac,ba) = StringEntry(ah("invest", af, toBase58String(ba)), ab(i, ac)) | |
131 | 176 | ||
132 | 177 | ||
133 | - | func | |
178 | + | func bb (af,i,ac,ba) = StringEntry(ah("claim", af, toBase58String(ba)), ab(i, ac)) | |
134 | 179 | ||
135 | 180 | ||
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 | |
181 | + | func bc (bd,af,ba) = { | |
182 | + | let aU = aD() | |
183 | + | let F = parseIntValue(aU[t]) | |
184 | + | let G = parseIntValue(aU[u]) | |
185 | + | let be = (F + G) | |
186 | + | let k = parseIntValue(aU[v]) | |
187 | + | let H = parseIntValue(aU[w]) | |
188 | + | let I = aU[x] | |
189 | + | let bf = fromBase58String(I) | |
190 | + | let J = parseIntValue(aU[y]) | |
191 | + | let K = aU[z] | |
192 | + | let bg = fromBase58String(K) | |
193 | + | let L = parseIntValue(aU[A]) | |
194 | + | let bh = toString(af) | |
195 | + | let bi = aI(bh) | |
196 | + | let bj = parseIntValue(bi[P]) | |
197 | + | let bk = parseIntValue(bi[T]) | |
198 | + | let bl = if ((F >= bk)) | |
199 | + | then F | |
200 | + | else bk | |
201 | + | let bm = if ((height > be)) | |
202 | + | then be | |
203 | + | else if ((F > height)) | |
204 | + | then F | |
160 | 205 | 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 | |
206 | + | let bn = (bm - bl) | |
207 | + | let bo = fraction(bj, bn, G) | |
208 | + | let bp = h(bo, L, k, H, J) | |
209 | + | let bq = (bd == K) | |
210 | + | let br = valueOrElse(getBoolean(ak()), false) | |
211 | + | let bs = [if (!(if (bq) | |
212 | + | then br | |
179 | 213 | else false)) | |
180 | 214 | 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)) | |
215 | + | else throw("USDN claim is disabled")] | |
216 | + | if ((bs == bs)) | |
217 | + | then if ((bd == K)) | |
218 | + | then $Tuple6([0, -(bo), bo, 0], bo, bg, bi, bm, [bo, bp]) | |
219 | + | else if ((bd == I)) | |
220 | + | then $Tuple6([0, -(bo), 0, bp], bp, bf, bi, bm, [bo, bp]) | |
221 | + | else throw(("unsupported assetId: " + bd)) | |
192 | 222 | else throw("Strict value is not equal to itself.") | |
193 | 223 | } | |
194 | 224 | ||
195 | 225 | ||
196 | - | func bb () = { | |
197 | - | let aY = getString(aj()) | |
198 | - | if ($isInstanceOf(aY, "String")) | |
226 | + | func bt (K,bh,bu,bv) = { | |
227 | + | let bw = value(getInteger(as(K))) | |
228 | + | let bx = value(getInteger(au(K))) | |
229 | + | let by = value(getInteger(am())) | |
230 | + | let bz = valueOrElse(getInteger(an()), 0) | |
231 | + | let bA = isDefined(getInteger(aq(0))) | |
232 | + | let bB = if ((bz > 0)) | |
199 | 233 | then { | |
200 | - | let bc = aY | |
201 | - | fromBase58String(bc) | |
234 | + | let bC = value(getInteger(ao(bz))) | |
235 | + | let bD = value(getInteger(aq(bz))) | |
236 | + | let bE = if ((height > bD)) | |
237 | + | then { | |
238 | + | let bF = (bz + 1) | |
239 | + | let bG = if ((height > (bD + by))) | |
240 | + | then { | |
241 | + | let bH = ((height - bD) % by) | |
242 | + | if ((bH == 0)) | |
243 | + | then ((height - by) + 1) | |
244 | + | else (height - bH) | |
245 | + | } | |
246 | + | else (bD + 1) | |
247 | + | let bI = ((bG + by) - 1) | |
248 | + | $Tuple3(bF, bG, bI) | |
249 | + | } | |
250 | + | else $Tuple3(bz, bC, bD) | |
251 | + | let bF = bE._1 | |
252 | + | let bG = bE._2 | |
253 | + | let bI = bE._3 | |
254 | + | $Tuple3(bF, bG, bI) | |
202 | 255 | } | |
203 | - | else if ($isInstanceOf(aY, "Unit")) | |
256 | + | else if (bA) | |
257 | + | then { | |
258 | + | let bJ = value(getInteger(ao(0))) | |
259 | + | let bK = value(getInteger(aq(0))) | |
260 | + | let bL = if ((height > bK)) | |
261 | + | then { | |
262 | + | let bF = (bz + 1) | |
263 | + | let bG = (bK + 1) | |
264 | + | let bI = ((bG + by) - 1) | |
265 | + | $Tuple3(bF, bG, bI) | |
266 | + | } | |
267 | + | else $Tuple3(bz, bJ, bK) | |
268 | + | let bF = bL._1 | |
269 | + | let bG = bL._2 | |
270 | + | let bI = bL._3 | |
271 | + | $Tuple3(bF, bG, bI) | |
272 | + | } | |
273 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
274 | + | let bF = bB._1 | |
275 | + | let bG = bB._2 | |
276 | + | let bI = bB._3 | |
277 | + | let bM = valueOrElse(getInteger(av(K, bF)), bw) | |
278 | + | let bN = valueOrElse(getInteger(aw(K, bF, bh)), bx) | |
279 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
280 | + | let bO = min([(bu + aR), bM, bN]) | |
281 | + | let bP = value(getInteger(ar())) | |
282 | + | let bQ = e | |
283 | + | let bR = { | |
284 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
285 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
286 | + | then bS | |
287 | + | else throw("Couldn't cast Any to (Int, Int, Int)") | |
288 | + | } | |
289 | + | if ((bR == bR)) | |
290 | + | then { | |
291 | + | let bT = bR._3 | |
292 | + | let bU = bR._2 | |
293 | + | let bV = bR._1 | |
294 | + | let bW = value(getString(ay())) | |
295 | + | let bX = { | |
296 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
297 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
298 | + | then bS | |
299 | + | else throw("Couldn't cast Any to (Int, Int)") | |
300 | + | } | |
301 | + | if ((bX == bX)) | |
302 | + | then { | |
303 | + | let bY = bX._2 | |
304 | + | let bZ = bX._1 | |
305 | + | let ca = fraction(bQ, e, bZ) | |
306 | + | let cb = (bI - height) | |
307 | + | $Tuple10(bO, bM, bN, bv, bP, ca, cb, bF, bG, bI) | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
310 | + | } | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | ||
314 | + | ||
315 | + | func cc () = { | |
316 | + | let cd = getString(aB()) | |
317 | + | if ($isInstanceOf(cd, "String")) | |
318 | + | then { | |
319 | + | let ce = cd | |
320 | + | fromBase58String(ce) | |
321 | + | } | |
322 | + | else if ($isInstanceOf(cd, "Unit")) | |
204 | 323 | then unit | |
205 | 324 | else throw("Match error") | |
206 | 325 | } | |
207 | 326 | ||
208 | 327 | ||
209 | - | func | |
210 | - | let | |
211 | - | if ($isInstanceOf( | |
328 | + | func cf () = { | |
329 | + | let cd = getString(aC()) | |
330 | + | if ($isInstanceOf(cd, "String")) | |
212 | 331 | then { | |
213 | - | let | |
214 | - | fromBase58String( | |
332 | + | let ce = cd | |
333 | + | fromBase58String(ce) | |
215 | 334 | } | |
216 | - | else if ($isInstanceOf( | |
335 | + | else if ($isInstanceOf(cd, "Unit")) | |
217 | 336 | then unit | |
218 | 337 | else throw("Match error") | |
219 | 338 | } | |
220 | 339 | ||
221 | 340 | ||
222 | - | func | |
223 | - | let | |
224 | - | let | |
225 | - | if ($isInstanceOf( | |
341 | + | func cg (ch) = { | |
342 | + | let ci = throw("Permission denied") | |
343 | + | let cd = cc() | |
344 | + | if ($isInstanceOf(cd, "ByteVector")) | |
226 | 345 | then { | |
227 | - | let | |
228 | - | if (( | |
346 | + | let cj = cd | |
347 | + | if ((ch.callerPublicKey == cj)) | |
229 | 348 | then true | |
230 | - | else | |
349 | + | else ci | |
231 | 350 | } | |
232 | - | else if ($isInstanceOf( | |
233 | - | then if (( | |
351 | + | else if ($isInstanceOf(cd, "Unit")) | |
352 | + | then if ((ch.caller == this)) | |
234 | 353 | then true | |
235 | - | else | |
354 | + | else ci | |
236 | 355 | else throw("Match error") | |
237 | 356 | } | |
238 | 357 | ||
239 | 358 | ||
240 | - | @Callable( | |
241 | - | func constructor ( | |
242 | - | let | |
243 | - | let | |
244 | - | if (isDefined(getString( | |
359 | + | @Callable(ch) | |
360 | + | func constructor (D,E,F,G,k,K,M) = { | |
361 | + | let H = ((100 * 1000) * 1000) | |
362 | + | let ck = (D + E) | |
363 | + | if (isDefined(getString(ad()))) | |
245 | 364 | then throw("already initialized") | |
246 | - | else if ((" | |
365 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller))) | |
247 | 366 | then throw("not authorized") | |
248 | - | else if ((size( | |
367 | + | else if ((size(ch.payments) != 1)) | |
249 | 368 | then throw("exactly 1 payment must be attached") | |
250 | - | else if (( | |
369 | + | else if ((ck >= F)) | |
251 | 370 | then throw("claimStart must be greater than idoEnd") | |
252 | 371 | else { | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | [StringEntry( | |
372 | + | let cl = value(ch.payments[0]) | |
373 | + | let bf = value(cl.assetId) | |
374 | + | let cm = valueOrErrorMessage(assetInfo(bf), "fail to load ido asset info") | |
375 | + | let I = toBase58String(bf) | |
376 | + | let J = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
377 | + | let bg = fromBase58String(K) | |
378 | + | let cn = valueOrErrorMessage(assetInfo(bg), "fail to load price asset info") | |
379 | + | let L = pow(10, 0, cn.decimals, 0, 0, DOWN) | |
380 | + | let co = aG() | |
381 | + | let cp = [0, 0, 0, 0] | |
382 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F, 0)] | |
264 | 383 | } | |
265 | 384 | } | |
266 | 385 | ||
267 | 386 | ||
268 | 387 | ||
269 | - | @Callable( | |
388 | + | @Callable(ch) | |
270 | 389 | 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 (( | |
390 | + | let aU = aD() | |
391 | + | let D = parseIntValue(aU[r]) | |
392 | + | let E = parseIntValue(aU[s]) | |
393 | + | let ck = (D + E) | |
394 | + | let F = parseIntValue(aU[t]) | |
395 | + | let G = parseIntValue(aU[u]) | |
396 | + | let k = parseIntValue(aU[v]) | |
397 | + | let H = parseIntValue(aU[w]) | |
398 | + | let I = aU[x] | |
399 | + | let bf = fromBase58String(I) | |
400 | + | let J = parseIntValue(aU[y]) | |
401 | + | let K = aU[z] | |
402 | + | let bg = fromBase58String(K) | |
403 | + | let L = parseIntValue(aU[A]) | |
404 | + | let cq = parseIntValue(aU[B]) | |
405 | + | let af = toString(ch.caller) | |
406 | + | if ((D > height)) | |
288 | 407 | then throw("ido has not been started yet") | |
289 | - | else if ((height > | |
408 | + | else if ((height > ck)) | |
290 | 409 | then throw("ido has been already ended") | |
291 | - | else if ((size( | |
410 | + | else if ((size(ch.payments) != 1)) | |
292 | 411 | then throw("exactly 1 payment is expected") | |
293 | 412 | else { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if (( | |
298 | - | then throw((("invalid payment asset id: " + toBase58String( | |
413 | + | let cl = value(ch.payments[0]) | |
414 | + | let cr = value(cl.assetId) | |
415 | + | let cs = cl.amount | |
416 | + | if ((cr != bg)) | |
417 | + | then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected")) | |
299 | 418 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | if (( | |
419 | + | let ct = aH(af) | |
420 | + | let co = aG() | |
421 | + | let cu = (parseIntValue(co[P]) + cs) | |
422 | + | let cv = (cu * 100) | |
423 | + | if ((cv > assetBalance(this, bf))) | |
305 | 424 | then throw("IDO asset has been - sold consider to use smaller payment") | |
306 | 425 | else { | |
307 | - | let | |
308 | - | [ | |
426 | + | let cp = [cs, cs, 0, 0] | |
427 | + | [aN(ae(af), ct, cp, F, 0), aN(ag(), co, cp, F, 0), aZ(af, cs, 0, ch.transactionId)] | |
309 | 428 | } | |
310 | 429 | } | |
311 | 430 | } | |
313 | 432 | ||
314 | 433 | ||
315 | 434 | ||
316 | - | @Callable( | |
317 | - | func claim ( | |
318 | - | let | |
319 | - | if (( | |
435 | + | @Callable(ch) | |
436 | + | func claim (bd,bh) = { | |
437 | + | let cw = toString(ch.caller) | |
438 | + | if ((bh != cw)) | |
320 | 439 | then throw("not authorized") | |
321 | 440 | 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) | |
441 | + | let aU = aD() | |
442 | + | let K = aU[z] | |
443 | + | let cx = bc(bd, ch.caller, ch.transactionId) | |
444 | + | let cp = cx._1 | |
445 | + | let bu = cx._2 | |
446 | + | let cy = cx._3 | |
447 | + | let bi = cx._4 | |
448 | + | let bm = cx._5 | |
449 | + | let cz = cp[aL] | |
450 | + | let cA = cp[aM] | |
451 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
452 | + | let aV = value(assetInfo(fromBase58String(K))).decimals | |
453 | + | let cB = if ((bd == K)) | |
454 | + | then { | |
455 | + | let cC = bt(K, bh, bu, cp[aL]) | |
456 | + | let bO = cC._1 | |
457 | + | let bM = cC._2 | |
458 | + | let bN = cC._3 | |
459 | + | let bv = cC._4 | |
460 | + | let bP = cC._5 | |
461 | + | let ca = cC._6 | |
462 | + | let cb = cC._7 | |
463 | + | let bF = cC._8 | |
464 | + | let bG = cC._9 | |
465 | + | let bI = cC._10 | |
466 | + | let bs = [if ((bN > 0)) | |
467 | + | then true | |
468 | + | else f("unavailable to claim because user period allowance reached"), if ((bM > 0)) | |
469 | + | then true | |
470 | + | else f("unavailable to claim because total period allowance reached"), if ((bO > 0)) | |
471 | + | then true | |
472 | + | else f("nothing to claim"), if ((bP > ca)) | |
473 | + | then true | |
474 | + | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
475 | + | if ((bs == bs)) | |
476 | + | then { | |
477 | + | let cD = (bM - bO) | |
478 | + | let cE = (bN - bO) | |
479 | + | let cB = if ((aR >= bO)) | |
480 | + | then [ScriptTransfer(ch.caller, bO, cy), IntegerEntry(az(bh), (aR - bO))] | |
481 | + | else { | |
482 | + | let cF = ((aR + bu) - bO) | |
483 | + | [ScriptTransfer(ch.caller, bO, cy), aN(ae(bh), bi, cp, bm, 0), aN(ag(), aG(), cp, bm, 0), IntegerEntry(az(bh), cF)] | |
484 | + | } | |
485 | + | $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bI), IntegerEntry(av(K, bF), cD), IntegerEntry(aw(K, bF, bh), cE), bb(bh, bO, cA, ch.transactionId)] ++ cB), unit) | |
486 | + | } | |
487 | + | else throw("Strict value is not equal to itself.") | |
488 | + | } | |
489 | + | else { | |
490 | + | let cG = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
491 | + | $Tuple2([ScriptTransfer(ch.caller, (bu + cG), cy), IntegerEntry(az(bh), 0), aN(ae(bh), bi, cp, bm, aR), aN(ag(), aG(), cp, bm, aR), bb(bh, cz, (cA + cG), ch.transactionId)], unit) | |
492 | + | } | |
493 | + | cB | |
331 | 494 | } | |
332 | 495 | } | |
333 | 496 | ||
334 | 497 | ||
335 | 498 | ||
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", | |
499 | + | @Callable(ch) | |
500 | + | func claimREADONLY (bd,bh) = { | |
501 | + | let cx = bc(bd, addressFromStringValue(bh), fromBase58String("")) | |
502 | + | let cp = cx._1 | |
503 | + | let bu = cx._2 | |
504 | + | let cy = cx._3 | |
505 | + | let bi = cx._4 | |
506 | + | let bm = cx._5 | |
507 | + | let cH = cx._6 | |
508 | + | let cI = cH[0] | |
509 | + | let cJ = cH[1] | |
510 | + | $Tuple2(nil, makeString(["%s%d%d", bh, toString(cI), toString(cJ)], c)) | |
348 | 511 | } | |
349 | 512 | ||
350 | 513 | ||
351 | 514 | ||
352 | - | @Callable(bf) | |
353 | - | func setManager (bD) = { | |
354 | - | let bE = be(bf) | |
355 | - | if ((bE == bE)) | |
515 | + | @Callable(ch) | |
516 | + | func claimV2READONLY (bd,bh) = { | |
517 | + | let cx = bc(bd, addressFromStringValue(bh), fromBase58String("")) | |
518 | + | let cp = cx._1 | |
519 | + | let bu = cx._2 | |
520 | + | let cy = cx._3 | |
521 | + | let bi = cx._4 | |
522 | + | let bm = cx._5 | |
523 | + | let cH = cx._6 | |
524 | + | let cI = cH[0] | |
525 | + | let cJ = cH[1] | |
526 | + | let aU = aD() | |
527 | + | let K = aU[z] | |
528 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
529 | + | let cG = (aR * 100) | |
530 | + | let cK = (cJ + cG) | |
531 | + | let cL = bt(K, bh, bu, cp[aL]) | |
532 | + | let bO = cL._1 | |
533 | + | let bM = cL._2 | |
534 | + | let bN = cL._3 | |
535 | + | let bv = cL._4 | |
536 | + | let bP = cL._5 | |
537 | + | let ca = cL._6 | |
538 | + | let cb = cL._7 | |
539 | + | let bF = cL._8 | |
540 | + | let bG = cL._9 | |
541 | + | let bI = cL._10 | |
542 | + | let cM = valueOrElse(getInteger(aq(bF)), 0) | |
543 | + | let cN = (parseIntValue(aI(bh)[R]) - aR) | |
544 | + | let cO = if ((height > cM)) | |
356 | 545 | then { | |
357 | - | let bF = fromBase58String(bD) | |
358 | - | if ((bF == bF)) | |
359 | - | then [StringEntry(ak(), bD)] | |
546 | + | let cP = value(getInteger(am())) | |
547 | + | let cQ = value(getInteger(au(K))) | |
548 | + | let cR = value(getInteger(as(K))) | |
549 | + | makeString(["%d%d%d%d%d%d", toString(cK), toString(cQ), toString(cR), toString(bP), toString(ca), toString(cP), toString(cN)], c) | |
550 | + | } | |
551 | + | else makeString(["%d%d%d%d%d%d", toString(cK), toString(bO), toString(bM), toString(bP), toString(ca), toString(cb), toString(cN)], c) | |
552 | + | $Tuple2(nil, cO) | |
553 | + | } | |
554 | + | ||
555 | + | ||
556 | + | ||
557 | + | @Callable(ch) | |
558 | + | func setManager (cS) = { | |
559 | + | let cT = cg(ch) | |
560 | + | if ((cT == cT)) | |
561 | + | then { | |
562 | + | let cU = fromBase58String(cS) | |
563 | + | if ((cU == cU)) | |
564 | + | then [StringEntry(aC(), cS)] | |
360 | 565 | else throw("Strict value is not equal to itself.") | |
361 | 566 | } | |
362 | 567 | else throw("Strict value is not equal to itself.") | |
364 | 569 | ||
365 | 570 | ||
366 | 571 | ||
367 | - | @Callable( | |
572 | + | @Callable(ch) | |
368 | 573 | func confirmManager () = { | |
369 | - | let | |
370 | - | let | |
574 | + | let cV = cf() | |
575 | + | let cW = if (isDefined(cV)) | |
371 | 576 | then true | |
372 | 577 | else throw("No pending manager") | |
373 | - | if (( | |
578 | + | if ((cW == cW)) | |
374 | 579 | then { | |
375 | - | let | |
580 | + | let cX = if ((ch.callerPublicKey == value(cV))) | |
376 | 581 | then true | |
377 | 582 | else throw("You are not pending manager") | |
378 | - | if (( | |
379 | - | then [StringEntry( | |
583 | + | if ((cX == cX)) | |
584 | + | then [StringEntry(aB(), toBase58String(value(cV))), DeleteEntry(aC())] | |
380 | 585 | else throw("Strict value is not equal to itself.") | |
381 | 586 | } | |
382 | 587 | else throw("Strict value is not equal to itself.") | |
383 | 588 | } | |
384 | 589 | ||
385 | 590 | ||
386 | - | @Verifier( | |
387 | - | func | |
388 | - | let | |
389 | - | let | |
390 | - | if ($isInstanceOf( | |
591 | + | @Verifier(cY) | |
592 | + | func cZ () = { | |
593 | + | let da = { | |
594 | + | let cd = cc() | |
595 | + | if ($isInstanceOf(cd, "ByteVector")) | |
391 | 596 | then { | |
392 | - | let | |
393 | - | | |
597 | + | let cj = cd | |
598 | + | cj | |
394 | 599 | } | |
395 | - | else if ($isInstanceOf( | |
396 | - | then | |
600 | + | else if ($isInstanceOf(cd, "Unit")) | |
601 | + | then cY.senderPublicKey | |
397 | 602 | else throw("Match error") | |
398 | 603 | } | |
399 | - | sigVerify( | |
604 | + | sigVerify(cY.bodyBytes, cY.proofs[0], da) | |
400 | 605 | } | |
401 | 606 |
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,aR) = { | |
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 aS = (V + aP[aJ]) | |
162 | + | let aT = (W + aP[aK]) | |
163 | + | let aU = aD() | |
164 | + | let K = aU[z] | |
165 | + | let aV = value(assetInfo(fromBase58String(K))).decimals | |
166 | + | let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
167 | + | let aX = ((X + aP[aL]) - aR) | |
168 | + | let aY = ((Y + aP[aM]) + aW) | |
169 | + | if ((0 > aT)) | |
125 | 170 | then throw("invalid math") | |
126 | - | else StringEntry(b, | |
171 | + | else StringEntry(b, aa(aS, aT, aX, aY, aQ)) | |
127 | 172 | } | |
128 | 173 | ||
129 | 174 | ||
130 | - | func | |
175 | + | func aZ (af,i,ac,ba) = StringEntry(ah("invest", af, toBase58String(ba)), ab(i, ac)) | |
131 | 176 | ||
132 | 177 | ||
133 | - | func | |
178 | + | func bb (af,i,ac,ba) = StringEntry(ah("claim", af, toBase58String(ba)), ab(i, ac)) | |
134 | 179 | ||
135 | 180 | ||
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 | |
181 | + | func bc (bd,af,ba) = { | |
182 | + | let aU = aD() | |
183 | + | let F = parseIntValue(aU[t]) | |
184 | + | let G = parseIntValue(aU[u]) | |
185 | + | let be = (F + G) | |
186 | + | let k = parseIntValue(aU[v]) | |
187 | + | let H = parseIntValue(aU[w]) | |
188 | + | let I = aU[x] | |
189 | + | let bf = fromBase58String(I) | |
190 | + | let J = parseIntValue(aU[y]) | |
191 | + | let K = aU[z] | |
192 | + | let bg = fromBase58String(K) | |
193 | + | let L = parseIntValue(aU[A]) | |
194 | + | let bh = toString(af) | |
195 | + | let bi = aI(bh) | |
196 | + | let bj = parseIntValue(bi[P]) | |
197 | + | let bk = parseIntValue(bi[T]) | |
198 | + | let bl = if ((F >= bk)) | |
199 | + | then F | |
200 | + | else bk | |
201 | + | let bm = if ((height > be)) | |
202 | + | then be | |
203 | + | else if ((F > height)) | |
204 | + | then F | |
160 | 205 | 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 | |
206 | + | let bn = (bm - bl) | |
207 | + | let bo = fraction(bj, bn, G) | |
208 | + | let bp = h(bo, L, k, H, J) | |
209 | + | let bq = (bd == K) | |
210 | + | let br = valueOrElse(getBoolean(ak()), false) | |
211 | + | let bs = [if (!(if (bq) | |
212 | + | then br | |
179 | 213 | else false)) | |
180 | 214 | 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)) | |
215 | + | else throw("USDN claim is disabled")] | |
216 | + | if ((bs == bs)) | |
217 | + | then if ((bd == K)) | |
218 | + | then $Tuple6([0, -(bo), bo, 0], bo, bg, bi, bm, [bo, bp]) | |
219 | + | else if ((bd == I)) | |
220 | + | then $Tuple6([0, -(bo), 0, bp], bp, bf, bi, bm, [bo, bp]) | |
221 | + | else throw(("unsupported assetId: " + bd)) | |
192 | 222 | else throw("Strict value is not equal to itself.") | |
193 | 223 | } | |
194 | 224 | ||
195 | 225 | ||
196 | - | func bb () = { | |
197 | - | let aY = getString(aj()) | |
198 | - | if ($isInstanceOf(aY, "String")) | |
226 | + | func bt (K,bh,bu,bv) = { | |
227 | + | let bw = value(getInteger(as(K))) | |
228 | + | let bx = value(getInteger(au(K))) | |
229 | + | let by = value(getInteger(am())) | |
230 | + | let bz = valueOrElse(getInteger(an()), 0) | |
231 | + | let bA = isDefined(getInteger(aq(0))) | |
232 | + | let bB = if ((bz > 0)) | |
199 | 233 | then { | |
200 | - | let bc = aY | |
201 | - | fromBase58String(bc) | |
234 | + | let bC = value(getInteger(ao(bz))) | |
235 | + | let bD = value(getInteger(aq(bz))) | |
236 | + | let bE = if ((height > bD)) | |
237 | + | then { | |
238 | + | let bF = (bz + 1) | |
239 | + | let bG = if ((height > (bD + by))) | |
240 | + | then { | |
241 | + | let bH = ((height - bD) % by) | |
242 | + | if ((bH == 0)) | |
243 | + | then ((height - by) + 1) | |
244 | + | else (height - bH) | |
245 | + | } | |
246 | + | else (bD + 1) | |
247 | + | let bI = ((bG + by) - 1) | |
248 | + | $Tuple3(bF, bG, bI) | |
249 | + | } | |
250 | + | else $Tuple3(bz, bC, bD) | |
251 | + | let bF = bE._1 | |
252 | + | let bG = bE._2 | |
253 | + | let bI = bE._3 | |
254 | + | $Tuple3(bF, bG, bI) | |
202 | 255 | } | |
203 | - | else if ($isInstanceOf(aY, "Unit")) | |
256 | + | else if (bA) | |
257 | + | then { | |
258 | + | let bJ = value(getInteger(ao(0))) | |
259 | + | let bK = value(getInteger(aq(0))) | |
260 | + | let bL = if ((height > bK)) | |
261 | + | then { | |
262 | + | let bF = (bz + 1) | |
263 | + | let bG = (bK + 1) | |
264 | + | let bI = ((bG + by) - 1) | |
265 | + | $Tuple3(bF, bG, bI) | |
266 | + | } | |
267 | + | else $Tuple3(bz, bJ, bK) | |
268 | + | let bF = bL._1 | |
269 | + | let bG = bL._2 | |
270 | + | let bI = bL._3 | |
271 | + | $Tuple3(bF, bG, bI) | |
272 | + | } | |
273 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
274 | + | let bF = bB._1 | |
275 | + | let bG = bB._2 | |
276 | + | let bI = bB._3 | |
277 | + | let bM = valueOrElse(getInteger(av(K, bF)), bw) | |
278 | + | let bN = valueOrElse(getInteger(aw(K, bF, bh)), bx) | |
279 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
280 | + | let bO = min([(bu + aR), bM, bN]) | |
281 | + | let bP = value(getInteger(ar())) | |
282 | + | let bQ = e | |
283 | + | let bR = { | |
284 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
285 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
286 | + | then bS | |
287 | + | else throw("Couldn't cast Any to (Int, Int, Int)") | |
288 | + | } | |
289 | + | if ((bR == bR)) | |
290 | + | then { | |
291 | + | let bT = bR._3 | |
292 | + | let bU = bR._2 | |
293 | + | let bV = bR._1 | |
294 | + | let bW = value(getString(ay())) | |
295 | + | let bX = { | |
296 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
297 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
298 | + | then bS | |
299 | + | else throw("Couldn't cast Any to (Int, Int)") | |
300 | + | } | |
301 | + | if ((bX == bX)) | |
302 | + | then { | |
303 | + | let bY = bX._2 | |
304 | + | let bZ = bX._1 | |
305 | + | let ca = fraction(bQ, e, bZ) | |
306 | + | let cb = (bI - height) | |
307 | + | $Tuple10(bO, bM, bN, bv, bP, ca, cb, bF, bG, bI) | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
310 | + | } | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | ||
314 | + | ||
315 | + | func cc () = { | |
316 | + | let cd = getString(aB()) | |
317 | + | if ($isInstanceOf(cd, "String")) | |
318 | + | then { | |
319 | + | let ce = cd | |
320 | + | fromBase58String(ce) | |
321 | + | } | |
322 | + | else if ($isInstanceOf(cd, "Unit")) | |
204 | 323 | then unit | |
205 | 324 | else throw("Match error") | |
206 | 325 | } | |
207 | 326 | ||
208 | 327 | ||
209 | - | func | |
210 | - | let | |
211 | - | if ($isInstanceOf( | |
328 | + | func cf () = { | |
329 | + | let cd = getString(aC()) | |
330 | + | if ($isInstanceOf(cd, "String")) | |
212 | 331 | then { | |
213 | - | let | |
214 | - | fromBase58String( | |
332 | + | let ce = cd | |
333 | + | fromBase58String(ce) | |
215 | 334 | } | |
216 | - | else if ($isInstanceOf( | |
335 | + | else if ($isInstanceOf(cd, "Unit")) | |
217 | 336 | then unit | |
218 | 337 | else throw("Match error") | |
219 | 338 | } | |
220 | 339 | ||
221 | 340 | ||
222 | - | func | |
223 | - | let | |
224 | - | let | |
225 | - | if ($isInstanceOf( | |
341 | + | func cg (ch) = { | |
342 | + | let ci = throw("Permission denied") | |
343 | + | let cd = cc() | |
344 | + | if ($isInstanceOf(cd, "ByteVector")) | |
226 | 345 | then { | |
227 | - | let | |
228 | - | if (( | |
346 | + | let cj = cd | |
347 | + | if ((ch.callerPublicKey == cj)) | |
229 | 348 | then true | |
230 | - | else | |
349 | + | else ci | |
231 | 350 | } | |
232 | - | else if ($isInstanceOf( | |
233 | - | then if (( | |
351 | + | else if ($isInstanceOf(cd, "Unit")) | |
352 | + | then if ((ch.caller == this)) | |
234 | 353 | then true | |
235 | - | else | |
354 | + | else ci | |
236 | 355 | else throw("Match error") | |
237 | 356 | } | |
238 | 357 | ||
239 | 358 | ||
240 | - | @Callable( | |
241 | - | func constructor ( | |
242 | - | let | |
243 | - | let | |
244 | - | if (isDefined(getString( | |
359 | + | @Callable(ch) | |
360 | + | func constructor (D,E,F,G,k,K,M) = { | |
361 | + | let H = ((100 * 1000) * 1000) | |
362 | + | let ck = (D + E) | |
363 | + | if (isDefined(getString(ad()))) | |
245 | 364 | then throw("already initialized") | |
246 | - | else if ((" | |
365 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller))) | |
247 | 366 | then throw("not authorized") | |
248 | - | else if ((size( | |
367 | + | else if ((size(ch.payments) != 1)) | |
249 | 368 | then throw("exactly 1 payment must be attached") | |
250 | - | else if (( | |
369 | + | else if ((ck >= F)) | |
251 | 370 | then throw("claimStart must be greater than idoEnd") | |
252 | 371 | else { | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | [StringEntry( | |
372 | + | let cl = value(ch.payments[0]) | |
373 | + | let bf = value(cl.assetId) | |
374 | + | let cm = valueOrErrorMessage(assetInfo(bf), "fail to load ido asset info") | |
375 | + | let I = toBase58String(bf) | |
376 | + | let J = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
377 | + | let bg = fromBase58String(K) | |
378 | + | let cn = valueOrErrorMessage(assetInfo(bg), "fail to load price asset info") | |
379 | + | let L = pow(10, 0, cn.decimals, 0, 0, DOWN) | |
380 | + | let co = aG() | |
381 | + | let cp = [0, 0, 0, 0] | |
382 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F, 0)] | |
264 | 383 | } | |
265 | 384 | } | |
266 | 385 | ||
267 | 386 | ||
268 | 387 | ||
269 | - | @Callable( | |
388 | + | @Callable(ch) | |
270 | 389 | 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 (( | |
390 | + | let aU = aD() | |
391 | + | let D = parseIntValue(aU[r]) | |
392 | + | let E = parseIntValue(aU[s]) | |
393 | + | let ck = (D + E) | |
394 | + | let F = parseIntValue(aU[t]) | |
395 | + | let G = parseIntValue(aU[u]) | |
396 | + | let k = parseIntValue(aU[v]) | |
397 | + | let H = parseIntValue(aU[w]) | |
398 | + | let I = aU[x] | |
399 | + | let bf = fromBase58String(I) | |
400 | + | let J = parseIntValue(aU[y]) | |
401 | + | let K = aU[z] | |
402 | + | let bg = fromBase58String(K) | |
403 | + | let L = parseIntValue(aU[A]) | |
404 | + | let cq = parseIntValue(aU[B]) | |
405 | + | let af = toString(ch.caller) | |
406 | + | if ((D > height)) | |
288 | 407 | then throw("ido has not been started yet") | |
289 | - | else if ((height > | |
408 | + | else if ((height > ck)) | |
290 | 409 | then throw("ido has been already ended") | |
291 | - | else if ((size( | |
410 | + | else if ((size(ch.payments) != 1)) | |
292 | 411 | then throw("exactly 1 payment is expected") | |
293 | 412 | else { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if (( | |
298 | - | then throw((("invalid payment asset id: " + toBase58String( | |
413 | + | let cl = value(ch.payments[0]) | |
414 | + | let cr = value(cl.assetId) | |
415 | + | let cs = cl.amount | |
416 | + | if ((cr != bg)) | |
417 | + | then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected")) | |
299 | 418 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | if (( | |
419 | + | let ct = aH(af) | |
420 | + | let co = aG() | |
421 | + | let cu = (parseIntValue(co[P]) + cs) | |
422 | + | let cv = (cu * 100) | |
423 | + | if ((cv > assetBalance(this, bf))) | |
305 | 424 | then throw("IDO asset has been - sold consider to use smaller payment") | |
306 | 425 | else { | |
307 | - | let | |
308 | - | [ | |
426 | + | let cp = [cs, cs, 0, 0] | |
427 | + | [aN(ae(af), ct, cp, F, 0), aN(ag(), co, cp, F, 0), aZ(af, cs, 0, ch.transactionId)] | |
309 | 428 | } | |
310 | 429 | } | |
311 | 430 | } | |
312 | 431 | } | |
313 | 432 | ||
314 | 433 | ||
315 | 434 | ||
316 | - | @Callable( | |
317 | - | func claim ( | |
318 | - | let | |
319 | - | if (( | |
435 | + | @Callable(ch) | |
436 | + | func claim (bd,bh) = { | |
437 | + | let cw = toString(ch.caller) | |
438 | + | if ((bh != cw)) | |
320 | 439 | then throw("not authorized") | |
321 | 440 | 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) | |
441 | + | let aU = aD() | |
442 | + | let K = aU[z] | |
443 | + | let cx = bc(bd, ch.caller, ch.transactionId) | |
444 | + | let cp = cx._1 | |
445 | + | let bu = cx._2 | |
446 | + | let cy = cx._3 | |
447 | + | let bi = cx._4 | |
448 | + | let bm = cx._5 | |
449 | + | let cz = cp[aL] | |
450 | + | let cA = cp[aM] | |
451 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
452 | + | let aV = value(assetInfo(fromBase58String(K))).decimals | |
453 | + | let cB = if ((bd == K)) | |
454 | + | then { | |
455 | + | let cC = bt(K, bh, bu, cp[aL]) | |
456 | + | let bO = cC._1 | |
457 | + | let bM = cC._2 | |
458 | + | let bN = cC._3 | |
459 | + | let bv = cC._4 | |
460 | + | let bP = cC._5 | |
461 | + | let ca = cC._6 | |
462 | + | let cb = cC._7 | |
463 | + | let bF = cC._8 | |
464 | + | let bG = cC._9 | |
465 | + | let bI = cC._10 | |
466 | + | let bs = [if ((bN > 0)) | |
467 | + | then true | |
468 | + | else f("unavailable to claim because user period allowance reached"), if ((bM > 0)) | |
469 | + | then true | |
470 | + | else f("unavailable to claim because total period allowance reached"), if ((bO > 0)) | |
471 | + | then true | |
472 | + | else f("nothing to claim"), if ((bP > ca)) | |
473 | + | then true | |
474 | + | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
475 | + | if ((bs == bs)) | |
476 | + | then { | |
477 | + | let cD = (bM - bO) | |
478 | + | let cE = (bN - bO) | |
479 | + | let cB = if ((aR >= bO)) | |
480 | + | then [ScriptTransfer(ch.caller, bO, cy), IntegerEntry(az(bh), (aR - bO))] | |
481 | + | else { | |
482 | + | let cF = ((aR + bu) - bO) | |
483 | + | [ScriptTransfer(ch.caller, bO, cy), aN(ae(bh), bi, cp, bm, 0), aN(ag(), aG(), cp, bm, 0), IntegerEntry(az(bh), cF)] | |
484 | + | } | |
485 | + | $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bI), IntegerEntry(av(K, bF), cD), IntegerEntry(aw(K, bF, bh), cE), bb(bh, bO, cA, ch.transactionId)] ++ cB), unit) | |
486 | + | } | |
487 | + | else throw("Strict value is not equal to itself.") | |
488 | + | } | |
489 | + | else { | |
490 | + | let cG = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
491 | + | $Tuple2([ScriptTransfer(ch.caller, (bu + cG), cy), IntegerEntry(az(bh), 0), aN(ae(bh), bi, cp, bm, aR), aN(ag(), aG(), cp, bm, aR), bb(bh, cz, (cA + cG), ch.transactionId)], unit) | |
492 | + | } | |
493 | + | cB | |
331 | 494 | } | |
332 | 495 | } | |
333 | 496 | ||
334 | 497 | ||
335 | 498 | ||
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", | |
499 | + | @Callable(ch) | |
500 | + | func claimREADONLY (bd,bh) = { | |
501 | + | let cx = bc(bd, addressFromStringValue(bh), fromBase58String("")) | |
502 | + | let cp = cx._1 | |
503 | + | let bu = cx._2 | |
504 | + | let cy = cx._3 | |
505 | + | let bi = cx._4 | |
506 | + | let bm = cx._5 | |
507 | + | let cH = cx._6 | |
508 | + | let cI = cH[0] | |
509 | + | let cJ = cH[1] | |
510 | + | $Tuple2(nil, makeString(["%s%d%d", bh, toString(cI), toString(cJ)], c)) | |
348 | 511 | } | |
349 | 512 | ||
350 | 513 | ||
351 | 514 | ||
352 | - | @Callable(bf) | |
353 | - | func setManager (bD) = { | |
354 | - | let bE = be(bf) | |
355 | - | if ((bE == bE)) | |
515 | + | @Callable(ch) | |
516 | + | func claimV2READONLY (bd,bh) = { | |
517 | + | let cx = bc(bd, addressFromStringValue(bh), fromBase58String("")) | |
518 | + | let cp = cx._1 | |
519 | + | let bu = cx._2 | |
520 | + | let cy = cx._3 | |
521 | + | let bi = cx._4 | |
522 | + | let bm = cx._5 | |
523 | + | let cH = cx._6 | |
524 | + | let cI = cH[0] | |
525 | + | let cJ = cH[1] | |
526 | + | let aU = aD() | |
527 | + | let K = aU[z] | |
528 | + | let aR = valueOrElse(getInteger(az(bh)), 0) | |
529 | + | let cG = (aR * 100) | |
530 | + | let cK = (cJ + cG) | |
531 | + | let cL = bt(K, bh, bu, cp[aL]) | |
532 | + | let bO = cL._1 | |
533 | + | let bM = cL._2 | |
534 | + | let bN = cL._3 | |
535 | + | let bv = cL._4 | |
536 | + | let bP = cL._5 | |
537 | + | let ca = cL._6 | |
538 | + | let cb = cL._7 | |
539 | + | let bF = cL._8 | |
540 | + | let bG = cL._9 | |
541 | + | let bI = cL._10 | |
542 | + | let cM = valueOrElse(getInteger(aq(bF)), 0) | |
543 | + | let cN = (parseIntValue(aI(bh)[R]) - aR) | |
544 | + | let cO = if ((height > cM)) | |
356 | 545 | then { | |
357 | - | let bF = fromBase58String(bD) | |
358 | - | if ((bF == bF)) | |
359 | - | then [StringEntry(ak(), bD)] | |
546 | + | let cP = value(getInteger(am())) | |
547 | + | let cQ = value(getInteger(au(K))) | |
548 | + | let cR = value(getInteger(as(K))) | |
549 | + | makeString(["%d%d%d%d%d%d", toString(cK), toString(cQ), toString(cR), toString(bP), toString(ca), toString(cP), toString(cN)], c) | |
550 | + | } | |
551 | + | else makeString(["%d%d%d%d%d%d", toString(cK), toString(bO), toString(bM), toString(bP), toString(ca), toString(cb), toString(cN)], c) | |
552 | + | $Tuple2(nil, cO) | |
553 | + | } | |
554 | + | ||
555 | + | ||
556 | + | ||
557 | + | @Callable(ch) | |
558 | + | func setManager (cS) = { | |
559 | + | let cT = cg(ch) | |
560 | + | if ((cT == cT)) | |
561 | + | then { | |
562 | + | let cU = fromBase58String(cS) | |
563 | + | if ((cU == cU)) | |
564 | + | then [StringEntry(aC(), cS)] | |
360 | 565 | else throw("Strict value is not equal to itself.") | |
361 | 566 | } | |
362 | 567 | else throw("Strict value is not equal to itself.") | |
363 | 568 | } | |
364 | 569 | ||
365 | 570 | ||
366 | 571 | ||
367 | - | @Callable( | |
572 | + | @Callable(ch) | |
368 | 573 | func confirmManager () = { | |
369 | - | let | |
370 | - | let | |
574 | + | let cV = cf() | |
575 | + | let cW = if (isDefined(cV)) | |
371 | 576 | then true | |
372 | 577 | else throw("No pending manager") | |
373 | - | if (( | |
578 | + | if ((cW == cW)) | |
374 | 579 | then { | |
375 | - | let | |
580 | + | let cX = if ((ch.callerPublicKey == value(cV))) | |
376 | 581 | then true | |
377 | 582 | else throw("You are not pending manager") | |
378 | - | if (( | |
379 | - | then [StringEntry( | |
583 | + | if ((cX == cX)) | |
584 | + | then [StringEntry(aB(), toBase58String(value(cV))), DeleteEntry(aC())] | |
380 | 585 | else throw("Strict value is not equal to itself.") | |
381 | 586 | } | |
382 | 587 | else throw("Strict value is not equal to itself.") | |
383 | 588 | } | |
384 | 589 | ||
385 | 590 | ||
386 | - | @Verifier( | |
387 | - | func | |
388 | - | let | |
389 | - | let | |
390 | - | if ($isInstanceOf( | |
591 | + | @Verifier(cY) | |
592 | + | func cZ () = { | |
593 | + | let da = { | |
594 | + | let cd = cc() | |
595 | + | if ($isInstanceOf(cd, "ByteVector")) | |
391 | 596 | then { | |
392 | - | let | |
393 | - | | |
597 | + | let cj = cd | |
598 | + | cj | |
394 | 599 | } | |
395 | - | else if ($isInstanceOf( | |
396 | - | then | |
600 | + | else if ($isInstanceOf(cd, "Unit")) | |
601 | + | then cY.senderPublicKey | |
397 | 602 | else throw("Match error") | |
398 | 603 | } | |
399 | - | sigVerify( | |
604 | + | sigVerify(cY.bodyBytes, cY.proofs[0], da) | |
400 | 605 | } | |
401 | 606 |
github/deemru/w8io/169f3d6 146.85 ms ◑