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