tx · 3Dok8wiZB6Hfb7Jq8HaJuJhAxMwFtNkHe1uZesBsPGsr 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02300000 Waves 2023.01.09 17:29 [2397530] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "3Dok8wiZB6Hfb7Jq8HaJuJhAxMwFtNkHe1uZesBsPGsr", "fee": 2300000, "feeAssetId": null, "timestamp": 1673274628538, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "2CAWS4BYboC44qfhr2QAXjpmPh3h3EWJZxQEoNPA2ycbJSDotfUTsJ26ngGDjy9qAEpxTszLSPePZjWGUDxVERy" ], "script": "base64:BgLnJQgCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIECgIIARIAEgMKAQgSACIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIEc3RyZiIHYWRkcmVzcyIDa2V5IgNpb3oiA2lvZCIKZGVmYXVsdFZhbCIDaW9mIgNhYnMiA3ZhbCIDYWFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgJhaSIGdmFsSW50IhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3JlZmVycmFsUHJvZ3JhbU5hbWUiEWtleUZhY3RvcnlBZGRyZXNzIhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0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CCQELU3RyaW5nRW50cnkCCQECYWMACQDYBAEJAQV2YWx1ZQEFAmVuCQDMCAIJAQtEZWxldGVFbnRyeQEJAQJhZAAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZXEBAmVyAAQCZXMEAW8JAQJhegADCQABAgUBbwIKQnl0ZVZlY3RvcgQCYUYFAW8FAmFGAwkAAQIFAW8CBFVuaXQIBQJlcQ9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZXEJYm9keUJ5dGVzCQCRAwIIBQJlcQZwcm9vZnMAAAUCZXPDR9vj", "chainId": 84, "height": 2397530, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GLRgA4qDU5nNzNi6piTgBeDShbkN9HAsxYJS6WBNyBo6 Next: 8Ataf1rnQc15scJLhso5qbXxkC587Ti3XnHjjTzaDVxJ Diff:
Old | New | Differences | |
---|---|---|---|
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(aD) | |
738 | - | func userMaxDurationREADONLY (cF) = { | |
739 | - | let dA = ar() | |
740 | - | let ax = parseIntValue(dA[ao]) | |
741 | - | let el = getString(this, aM(cF)) | |
742 | - | if ((el == unit)) | |
743 | - | then $Tuple2(nil, $Tuple2("lock", ax)) | |
744 | - | else { | |
745 | - | let cI = split(value(el), a) | |
746 | - | let bP = parseIntValue(cI[aI]) | |
747 | - | let dY = parseIntValue(cI[aJ]) | |
748 | - | let dZ = (bP + dY) | |
749 | - | let ea = max([(dZ - height), 0]) | |
750 | - | let em = (ax - ea) | |
751 | - | $Tuple2(nil, $Tuple2("increaseLock", em)) | |
752 | - | } | |
753 | - | } | |
754 | - | ||
755 | - | ||
756 | - | ||
757 | - | @Callable(aD) | |
758 | 738 | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
759 | 739 | let aX = cx(aN, cy) | |
760 | 740 | $Tuple2(nil, aX) | |
768 | 748 | ||
769 | 749 | ||
770 | 750 | @Callable(aD) | |
771 | - | func setManager ( | |
751 | + | func setManager (el) = { | |
772 | 752 | let dN = aC(aD) | |
773 | 753 | if ((dN == dN)) | |
774 | 754 | then { | |
775 | - | let | |
776 | - | if (( | |
777 | - | then [StringEntry(ad(), | |
755 | + | let em = fromBase58String(el) | |
756 | + | if ((em == em)) | |
757 | + | then [StringEntry(ad(), el)] | |
778 | 758 | else throw("Strict value is not equal to itself.") | |
779 | 759 | } | |
780 | 760 | else throw("Strict value is not equal to itself.") | |
784 | 764 | ||
785 | 765 | @Callable(aD) | |
786 | 766 | func confirmManager () = { | |
787 | - | let | |
788 | - | let | |
767 | + | let en = aB() | |
768 | + | let eo = if (isDefined(en)) | |
789 | 769 | then true | |
790 | 770 | else throw("No pending manager") | |
791 | - | if (( | |
771 | + | if ((eo == eo)) | |
792 | 772 | then { | |
793 | - | let | |
773 | + | let ep = if ((aD.callerPublicKey == value(en))) | |
794 | 774 | then true | |
795 | 775 | else throw("You are not pending manager") | |
796 | - | if (( | |
797 | - | then [StringEntry(ac(), toBase58String(value( | |
776 | + | if ((ep == ep)) | |
777 | + | then [StringEntry(ac(), toBase58String(value(en))), DeleteEntry(ad())] | |
798 | 778 | else throw("Strict value is not equal to itself.") | |
799 | 779 | } | |
800 | 780 | else throw("Strict value is not equal to itself.") | |
801 | 781 | } | |
802 | 782 | ||
803 | 783 | ||
804 | - | @Verifier( | |
805 | - | func | |
806 | - | let | |
784 | + | @Verifier(eq) | |
785 | + | func er () = { | |
786 | + | let es = { | |
807 | 787 | let o = az() | |
808 | 788 | if ($isInstanceOf(o, "ByteVector")) | |
809 | 789 | then { | |
811 | 791 | aF | |
812 | 792 | } | |
813 | 793 | else if ($isInstanceOf(o, "Unit")) | |
814 | - | then | |
794 | + | then eq.senderPublicKey | |
815 | 795 | else throw("Match error") | |
816 | 796 | } | |
817 | - | sigVerify( | |
797 | + | sigVerify(eq.bodyBytes, eq.proofs[0], es) | |
818 | 798 | } | |
819 | 799 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | func e (f,g) = valueOrErrorMessage(getString(f, g), (("mandatory this." + g) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func h (f,g) = valueOrElse(getInteger(f, g), 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func i (f,g,j) = valueOrElse(getInteger(f, g), j) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (f,g) = valueOrErrorMessage(getInteger(f, g), (("mandatory this." + g) + " is not defined")) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (m) = if ((0 > m)) | |
25 | 25 | then -(m) | |
26 | 26 | else m | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (m) = { | |
30 | 30 | let o = m | |
31 | 31 | if ($isInstanceOf(o, "List[Any]")) | |
32 | 32 | then { | |
33 | 33 | let p = o | |
34 | 34 | p | |
35 | 35 | } | |
36 | 36 | else throw("fail to cast into List[Any]") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (m) = { | |
41 | 41 | let o = m | |
42 | 42 | if ($isInstanceOf(o, "Int")) | |
43 | 43 | then { | |
44 | 44 | let r = o | |
45 | 45 | r | |
46 | 46 | } | |
47 | 47 | else throw("fail to cast into Int") | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let t = addressFromStringValue(e(this, s())) | |
55 | 55 | ||
56 | 56 | let u = makeString(["%s%s", "referral", "programName"], a) | |
57 | 57 | ||
58 | 58 | let v = "wxlock" | |
59 | 59 | ||
60 | 60 | let w = valueOrElse(getString(this, u), v) | |
61 | 61 | ||
62 | 62 | func x () = "%s%s__config__factoryAddress" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let y = 1 | |
66 | 66 | ||
67 | 67 | let z = 2 | |
68 | 68 | ||
69 | 69 | let A = 3 | |
70 | 70 | ||
71 | 71 | let B = 4 | |
72 | 72 | ||
73 | 73 | let C = 5 | |
74 | 74 | ||
75 | 75 | let D = 6 | |
76 | 76 | ||
77 | 77 | let E = 7 | |
78 | 78 | ||
79 | 79 | let F = 8 | |
80 | 80 | ||
81 | 81 | let G = 9 | |
82 | 82 | ||
83 | 83 | let H = 10 | |
84 | 84 | ||
85 | 85 | let I = 11 | |
86 | 86 | ||
87 | 87 | func J () = "%s__factoryConfig" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func K (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func M () = "%s__lpTokensList" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func O (P) = makeString(["%s%s", "poolWeight", P], a) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (R,S) = ((("%s%s__poolWeight__" + R) + "__") + toString(S)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T () = addressFromStringValue(e(this, x())) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func U () = split(valueOrElse(getString(T(), M()), ""), a) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func V (W) = split(e(W, J()), a) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X (Y) = addressFromStringValue(Y[z]) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Z (Y) = addressFromStringValue(Y[C]) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aa (Y) = addressFromStringValue(Y[y]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ab (Y) = addressFromStringValue(Y[H]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ac () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ad () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ae () = "%s%s__ratePerBlock__current" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func af () = "%s%s__ratePerBlockMax__current" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ag () = "%s%s__emission__startBlock" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ah () = "%s%s__emission__duration" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ai () = "%s%s__emission__endBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func aj () = "%s__nextPeriod" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ak () = "%s%s__gwxRewardEmissionPart__startHeight" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | let al = 1 | |
154 | 154 | ||
155 | 155 | let am = 2 | |
156 | 156 | ||
157 | 157 | let an = 3 | |
158 | 158 | ||
159 | 159 | let ao = 4 | |
160 | 160 | ||
161 | 161 | let ap = 5 | |
162 | 162 | ||
163 | 163 | func aq () = "%s__config" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ar () = split(e(this, aq()), a) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let as = addressFromStringValue(ar()[ap]) | |
170 | 170 | ||
171 | 171 | func at (au,av,aw,ax,as) = makeString(["%s%d%d%d", au, av, aw, ax, as], a) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ay (au,av,aw,ax,as) = at(au, toString(av), toString(aw), toString(ax), as) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func az () = { | |
178 | 178 | let o = getString(ac()) | |
179 | 179 | if ($isInstanceOf(o, "String")) | |
180 | 180 | then { | |
181 | 181 | let aA = o | |
182 | 182 | fromBase58String(aA) | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(o, "Unit")) | |
185 | 185 | then unit | |
186 | 186 | else throw("Match error") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aB () = { | |
191 | 191 | let o = getString(ad()) | |
192 | 192 | if ($isInstanceOf(o, "String")) | |
193 | 193 | then { | |
194 | 194 | let aA = o | |
195 | 195 | fromBase58String(aA) | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(o, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aC (aD) = { | |
204 | 204 | let aE = throw("Permission denied") | |
205 | 205 | let o = az() | |
206 | 206 | if ($isInstanceOf(o, "ByteVector")) | |
207 | 207 | then { | |
208 | 208 | let aF = o | |
209 | 209 | if ((aD.callerPublicKey == aF)) | |
210 | 210 | then true | |
211 | 211 | else aE | |
212 | 212 | } | |
213 | 213 | else if ($isInstanceOf(o, "Unit")) | |
214 | 214 | then if ((aD.caller == this)) | |
215 | 215 | then true | |
216 | 216 | else aE | |
217 | 217 | else throw("Match error") | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | let aG = 1 | |
222 | 222 | ||
223 | 223 | let aH = 2 | |
224 | 224 | ||
225 | 225 | let aI = 3 | |
226 | 226 | ||
227 | 227 | let aJ = 4 | |
228 | 228 | ||
229 | 229 | let aK = 5 | |
230 | 230 | ||
231 | 231 | let aL = 6 | |
232 | 232 | ||
233 | 233 | func aM (aN) = makeString(["%s%s__lock", aN], a) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aO (aN) = split(e(this, aM(aN)), a) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aP (aQ,aR,aS,aT,aU,aV,aW,aX) = makeString(["%d%d%d%d%d%d%d%d", aQ, aR, aS, aT, aU, aV, aW, aX], a) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aY (aQ,aR,aS,aT,aU,aV,aX) = aP(aQ, toString(aR), toString(aS), toString(aT), toString(aU), toString(aV), toString(lastBlock.timestamp), toString(aX)) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func aZ () = "%s__nextUserNum" | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func ba (aN) = makeString(["%s%s%s__mapping__user2num", aN], a) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bb (S) = makeString(["%s%s%s__mapping__num2user", S], a) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bc (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "amount"], a) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bd (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "start"], a) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func be (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "duration"], a) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bf (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "k"], a) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bg (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "b"], a) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bh (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "k", bi], a) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bj (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "b", bi], a) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bk () = "%s%s__stats__activeTotalLocked" | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bl () = "%s%s__stats__locksDurationSumInBlocks" | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bm () = "%s%s__stats__locksCount" | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bn () = "%s%s__stats__activeUsersCount" | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bo (aQ) = makeString(["%s%d__userBoostEmissionLastInt", aQ], a) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bp (aQ,bq) = makeString(["%s%d__userBoostEmissionLastInt", aQ, bq], a) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func br (aQ) = makeString(["%s%d__maxBoostInt", aQ], a) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bs () = "%s%s__maxBoostInt__total" | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func bt (aQ) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aQ], a) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func bu (aQ) = makeString(["%s%d__userBoostClaimed", aQ], a) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func bv () = "%s%s__gwxCached__total" | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func bw () = "%s__gwxCachedTotalCorrective" | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | let bx = T() | |
312 | 312 | ||
313 | 313 | let Y = V(bx) | |
314 | 314 | ||
315 | 315 | let by = Z(Y) | |
316 | 316 | ||
317 | 317 | let bz = aa(Y) | |
318 | 318 | ||
319 | 319 | let bA = ab(Y) | |
320 | 320 | ||
321 | 321 | func bB (bC) = { | |
322 | 322 | let bD = makeString(["%s", "votingEmissionContract"], a) | |
323 | 323 | let bE = addressFromStringValue(getStringValue(bx, bD)) | |
324 | 324 | let bF = makeString(["%s", "currentEpochUi"], a) | |
325 | 325 | let bG = getIntegerValue(bE, bF) | |
326 | 326 | let bH = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
327 | 327 | let bI = getInteger(this, bH) | |
328 | 328 | let bJ = valueOrElse(getInteger(this, bv()), 0) | |
329 | 329 | let bK = if (isDefined(bI)) | |
330 | 330 | then (bG >= value(bI)) | |
331 | 331 | else false | |
332 | 332 | let bL = if (if (bK) | |
333 | 333 | then bC | |
334 | 334 | else false) | |
335 | 335 | then valueOrElse(getInteger(this, bw()), 0) | |
336 | 336 | else 0 | |
337 | 337 | max([0, (bJ + bL)]) | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bM (bN,bO,aR,bP,aT,bQ,bR,aD) = { | |
342 | 342 | let bS = makeString(["%s%s%s%s__history", bN, bO, toBase58String(aD.transactionId)], a) | |
343 | 343 | let bT = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bP), toString(aT), toString(bQ), toString(bR)], a) | |
344 | 344 | StringEntry(bS, bT) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func bU (bV,bW,bX,bY) = { | |
349 | 349 | let bZ = bl() | |
350 | 350 | let ca = bm() | |
351 | 351 | let cb = bn() | |
352 | 352 | let cc = bk() | |
353 | 353 | let cd = h(this, bZ) | |
354 | 354 | let ce = h(this, ca) | |
355 | 355 | let cf = h(this, cb) | |
356 | 356 | let cg = h(this, cc) | |
357 | 357 | [IntegerEntry(bZ, (cd + bW)), IntegerEntry(ca, (ce + bX)), IntegerEntry(cb, (cf + bY)), IntegerEntry(cc, (cg + bV))] | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func ch (ci,cj,ck) = { | |
362 | 362 | let cl = 1000 | |
363 | 363 | (((ci * ck) + cj) / cl) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func cm (aN,aQ,aR,aS,aT,bQ,bR,bi) = { | |
368 | 368 | let cn = bc(aQ) | |
369 | 369 | let co = bd(aQ) | |
370 | 370 | let cp = be(aQ) | |
371 | 371 | let cq = bf(aQ) | |
372 | 372 | let cr = bg(aQ) | |
373 | 373 | let cs = bh(aQ, bi) | |
374 | 374 | let ct = bj(aQ, bi) | |
375 | 375 | let aX = ch(bQ, bR, height) | |
376 | 376 | [IntegerEntry(cn, aR), IntegerEntry(co, aS), IntegerEntry(cp, aT), IntegerEntry(cq, bQ), IntegerEntry(cr, bR), IntegerEntry(cs, bQ), IntegerEntry(ct, bR), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bQ, bR, aX))] | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | func cu (aD,cv) = if ((size(aD.payments) > 1)) | |
381 | 381 | then throw("only one payment is allowed") | |
382 | 382 | else if ((size(aD.payments) == 0)) | |
383 | 383 | then 0 | |
384 | 384 | else { | |
385 | 385 | let cw = aD.payments[0] | |
386 | 386 | if ((value(cw.assetId) != cv)) | |
387 | 387 | then throw("invalid asset id in payment") | |
388 | 388 | else cw.amount | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func cx (aN,cy) = { | |
393 | 393 | let cz = "empty" | |
394 | 394 | let cA = ba(aN) | |
395 | 395 | let aQ = valueOrElse(getString(cA), cz) | |
396 | 396 | let bQ = valueOrElse(getInteger(bf(aQ)), 0) | |
397 | 397 | let bR = valueOrElse(getInteger(bg(aQ)), 0) | |
398 | 398 | let cB = ch(bQ, bR, cy) | |
399 | 399 | let aX = if ((0 > cB)) | |
400 | 400 | then 0 | |
401 | 401 | else cB | |
402 | 402 | aX | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func cC (aN) = cx(aN, height) | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func cD (cE,cF,cG) = { | |
410 | 410 | let cz = "EMPTY" | |
411 | 411 | let cH = valueOrElse(getString(this, aM(cF)), cz) | |
412 | 412 | if ((cH == cz)) | |
413 | 413 | then $Tuple3(0, nil, "userRecord::is::empty") | |
414 | 414 | else { | |
415 | 415 | let cI = split(cH, a) | |
416 | 416 | let cJ = cI[aG] | |
417 | 417 | let cK = valueOrElse(getInteger(bA, ak()), 0) | |
418 | 418 | let cL = "empty" | |
419 | 419 | let cM = if ((cE != cL)) | |
420 | 420 | then { | |
421 | 421 | let cN = valueOrErrorMessage(getString(bx, K(cE)), ("unsupported lp asset " + cE)) | |
422 | 422 | let cO = getIntegerValue(bx, O(cN)) | |
423 | 423 | let cP = valueOrElse(getInteger(bx, Q(cN, 0)), cO) | |
424 | 424 | $Tuple2(cP, cO) | |
425 | 425 | } | |
426 | 426 | else if (cG) | |
427 | 427 | then $Tuple2(0, 0) | |
428 | 428 | else throw(("not readonly mode: unsupported lp asset " + cE)) | |
429 | 429 | let cQ = cM._1 | |
430 | 430 | let cR = cM._2 | |
431 | 431 | let cS = k(by, ae()) | |
432 | 432 | let cT = k(by, ag()) | |
433 | 433 | let cU = k(by, ai()) | |
434 | 434 | let ck = if ((height > cU)) | |
435 | 435 | then cU | |
436 | 436 | else height | |
437 | 437 | let cV = max([(ck - cT), 0]) | |
438 | 438 | let cW = bp(cJ, cE) | |
439 | 439 | let cX = bo(cJ) | |
440 | 440 | let cY = valueOrElse(getInteger(this, cW), h(this, cX)) | |
441 | 441 | let cZ = (((cS * cV) * 2) / 3) | |
442 | 442 | let da = (cZ - cY) | |
443 | 443 | let db = fraction(da, 3, (2 * cS)) | |
444 | 444 | let dc = (ck - db) | |
445 | 445 | let dd = max([(cK - dc), 0]) | |
446 | 446 | let de = ((ck - dc) - dd) | |
447 | 447 | if (if (if ((0 > dc)) | |
448 | 448 | then true | |
449 | 449 | else (0 > de)) | |
450 | 450 | then true | |
451 | 451 | else (l(((dd + de) - db)) >= 1)) | |
452 | 452 | then throw(((((((("invalid udh calc: udh=" + toString(db)) + " uLastH=") + toString(dc)) + " udh0=") + toString(dd)) + " udh1=") + toString(de))) | |
453 | 453 | else if ((0 > da)) | |
454 | 454 | then throw("wrong calculations") | |
455 | 455 | else { | |
456 | 456 | let df = br(cJ) | |
457 | 457 | let dg = bs() | |
458 | 458 | let dh = h(this, df) | |
459 | 459 | let di = h(this, dg) | |
460 | 460 | let dj = bB(true) | |
461 | 461 | let dk = cC(cF) | |
462 | 462 | let dl = bt(cJ) | |
463 | 463 | let dm = h(this, dl) | |
464 | 464 | let dn = if ((db == 0)) | |
465 | 465 | then 0 | |
466 | 466 | else fraction(da, dd, db) | |
467 | 467 | let do = if ((db == 0)) | |
468 | 468 | then 0 | |
469 | 469 | else fraction(da, de, db) | |
470 | 470 | let dp = fraction(dn, cQ, d) | |
471 | 471 | let dq = fraction(do, cR, d) | |
472 | 472 | let dr = if ((dj == 0)) | |
473 | 473 | then 0 | |
474 | 474 | else fraction(dp, dk, dj) | |
475 | 475 | let ds = if ((dj == 0)) | |
476 | 476 | then 0 | |
477 | 477 | else fraction(dq, dk, dj) | |
478 | 478 | let dt = (dr + ds) | |
479 | 479 | let du = bu(cJ) | |
480 | 480 | let dv = h(this, du) | |
481 | 481 | let dw = (dt - dv) | |
482 | 482 | let dx = [IntegerEntry(cW, cZ)] | |
483 | 483 | let dy = makeString([toString(cY), toString(da), toString(dv), toString(dw), toString(cQ), toString(cR), toString(ck), toString(db), toString(dc), toString(dd), toString(de), toString(dk), toString(dj)], ":") | |
484 | 484 | $Tuple3(dt, dx, dy) | |
485 | 485 | } | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | func dz (aD,aT) = { | |
491 | 491 | let dA = ar() | |
492 | 492 | let dB = dA[al] | |
493 | 493 | let au = fromBase58String(dB) | |
494 | 494 | let av = parseIntValue(dA[am]) | |
495 | 495 | let aw = parseIntValue(dA[an]) | |
496 | 496 | let ax = parseIntValue(dA[ao]) | |
497 | 497 | if ((size(aD.payments) != 1)) | |
498 | 498 | then throw("invalid payment - exact one payment must be attached") | |
499 | 499 | else { | |
500 | 500 | let cw = aD.payments[0] | |
501 | 501 | let dC = cw.amount | |
502 | 502 | if ((au != value(cw.assetId))) | |
503 | 503 | then throw((("invalid asset is in payment - " + dB) + " is expected")) | |
504 | 504 | else { | |
505 | 505 | let dD = aZ() | |
506 | 506 | let cF = toString(aD.caller) | |
507 | 507 | let dE = isDefined(getString(ba(cF))) | |
508 | 508 | let cJ = if (dE) | |
509 | 509 | then value(getString(ba(cF))) | |
510 | 510 | else toString(k(this, dD)) | |
511 | 511 | let aQ = parseIntValue(cJ) | |
512 | 512 | let bP = height | |
513 | 513 | let co = bd(cJ) | |
514 | 514 | let cp = be(cJ) | |
515 | 515 | let cn = bc(cJ) | |
516 | 516 | if ((av > dC)) | |
517 | 517 | then throw(("amount is less then minLockAmount=" + toString(av))) | |
518 | 518 | else if ((aw > aT)) | |
519 | 519 | then throw(("passed duration is less then minLockDuration=" + toString(aw))) | |
520 | 520 | else if ((aT > ax)) | |
521 | 521 | then throw(("passed duration is greater then maxLockDuration=" + toString(ax))) | |
522 | 522 | else if (if (dE) | |
523 | 523 | then ((k(this, co) + k(this, cp)) >= bP) | |
524 | 524 | else false) | |
525 | 525 | then throw("there is an active lock - consider to use increaseLock") | |
526 | 526 | else if ((h(this, cn) > 0)) | |
527 | 527 | then throw(("there are locked WXs - consider to use increaseLock " + cn)) | |
528 | 528 | else { | |
529 | 529 | let dF = fraction(aT, c, ax) | |
530 | 530 | let dG = fraction(dC, dF, c) | |
531 | 531 | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, bP, aT], nil)) | |
532 | 532 | let bQ = q(dH[0]) | |
533 | 533 | let bR = q(dH[1]) | |
534 | 534 | let bi = toString(q(dH[2])) | |
535 | 535 | let cS = k(by, ae()) | |
536 | 536 | let cT = k(by, ag()) | |
537 | 537 | let cU = k(by, ai()) | |
538 | 538 | let ck = if ((height > cU)) | |
539 | 539 | then cU | |
540 | 540 | else height | |
541 | 541 | let cV = max([(ck - cT), 0]) | |
542 | 542 | let cX = bo(cJ) | |
543 | 543 | let cZ = (((cS * cV) * 2) / 3) | |
544 | 544 | let df = br(cJ) | |
545 | 545 | let dg = bs() | |
546 | 546 | let dh = ((dG * aT) / 2) | |
547 | 547 | let di = h(this, dg) | |
548 | 548 | let bJ = bB(false) | |
549 | 549 | let dI = if (dE) | |
550 | 550 | then nil | |
551 | 551 | else [IntegerEntry(dD, (aQ + 1)), StringEntry(ba(cF), cJ), StringEntry(bb(cJ), cF)] | |
552 | 552 | $Tuple2(((((dI ++ cm(cF, cJ, dC, bP, aT, bQ, bR, bi)) ++ bU(dC, aT, 1, if (dE) | |
553 | 553 | then 0 | |
554 | 554 | else 1)) :+ bM("lock", cF, dC, bP, aT, bQ, bR, aD)) ++ [IntegerEntry(cX, cZ), IntegerEntry(bv(), (bJ + dG))]), dG) | |
555 | 555 | } | |
556 | 556 | } | |
557 | 557 | } | |
558 | 558 | } | |
559 | 559 | ||
560 | 560 | ||
561 | 561 | @Callable(aD) | |
562 | 562 | func constructor (dJ,dK,av,dL,dM,as) = { | |
563 | 563 | let dN = aC(aD) | |
564 | 564 | if ((dN == dN)) | |
565 | 565 | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay(dK, av, dL, dM, as)), StringEntry(x(), dJ)] ++ bU(0, 0, 0, 0)) | |
566 | 566 | else throw("Strict value is not equal to itself.") | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | ||
571 | 571 | @Callable(aD) | |
572 | 572 | func lockRef (aT,dO,dP) = { | |
573 | 573 | let dQ = dz(aD, aT) | |
574 | 574 | let dR = dQ._1 | |
575 | 575 | let dG = dQ._2 | |
576 | 576 | let dS = toString(aD.caller) | |
577 | 577 | let dT = if (if ((dO == "")) | |
578 | 578 | then true | |
579 | 579 | else (dP == base58'')) | |
580 | 580 | then unit | |
581 | 581 | else invoke(t, "createPair", [w, dO, dS, dP], nil) | |
582 | 582 | if ((dT == dT)) | |
583 | 583 | then { | |
584 | 584 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
585 | 585 | if ((dU == dU)) | |
586 | 586 | then $Tuple2(dR, unit) | |
587 | 587 | else throw("Strict value is not equal to itself.") | |
588 | 588 | } | |
589 | 589 | else throw("Strict value is not equal to itself.") | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(aD) | |
595 | 595 | func lock (aT) = { | |
596 | 596 | let dV = dz(aD, aT) | |
597 | 597 | let dR = dV._1 | |
598 | 598 | let dG = dV._2 | |
599 | 599 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
600 | 600 | if ((dU == dU)) | |
601 | 601 | then $Tuple2(dR, unit) | |
602 | 602 | else throw("Strict value is not equal to itself.") | |
603 | 603 | } | |
604 | 604 | ||
605 | 605 | ||
606 | 606 | ||
607 | 607 | @Callable(aD) | |
608 | 608 | func increaseLock (dW) = { | |
609 | 609 | let dA = ar() | |
610 | 610 | let dB = dA[al] | |
611 | 611 | let au = fromBase58String(dB) | |
612 | 612 | let aw = parseIntValue(dA[an]) | |
613 | 613 | let ax = parseIntValue(dA[ao]) | |
614 | 614 | let dC = cu(aD, au) | |
615 | 615 | let cF = toString(aD.caller) | |
616 | 616 | let cI = aO(cF) | |
617 | 617 | let cJ = cI[aG] | |
618 | 618 | let dX = parseIntValue(cI[aH]) | |
619 | 619 | let bP = parseIntValue(cI[aI]) | |
620 | 620 | let dY = parseIntValue(cI[aJ]) | |
621 | 621 | let dZ = (bP + dY) | |
622 | 622 | let ea = max([(dZ - height), 0]) | |
623 | 623 | let eb = (dX + dC) | |
624 | 624 | let ec = (ea + dW) | |
625 | 625 | if ((0 > dW)) | |
626 | 626 | then throw("duration is less then zero") | |
627 | 627 | else if ((aw > ec)) | |
628 | 628 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aw))) | |
629 | 629 | else if ((ec > ax)) | |
630 | 630 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(ax))) | |
631 | 631 | else { | |
632 | 632 | let dF = fraction(ec, c, ax) | |
633 | 633 | let dG = fraction(eb, dF, c) | |
634 | 634 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
635 | 635 | if ((dU == dU)) | |
636 | 636 | then { | |
637 | 637 | let ed = height | |
638 | 638 | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, ed, ec], nil)) | |
639 | 639 | let bQ = q(dH[0]) | |
640 | 640 | let bR = q(dH[1]) | |
641 | 641 | let bi = toString(q(dH[2])) | |
642 | 642 | let cS = k(by, ae()) | |
643 | 643 | let cT = k(by, ag()) | |
644 | 644 | let cU = k(by, ai()) | |
645 | 645 | let ck = if ((height > cU)) | |
646 | 646 | then cU | |
647 | 647 | else height | |
648 | 648 | let cV = max([(ck - cT), 0]) | |
649 | 649 | let cX = bo(cJ) | |
650 | 650 | let cY = h(this, cX) | |
651 | 651 | let cZ = (((cS * cV) * 2) / 3) | |
652 | 652 | let da = (cZ - cY) | |
653 | 653 | if ((0 > da)) | |
654 | 654 | then throw("wrong calculations") | |
655 | 655 | else { | |
656 | 656 | let df = br(cJ) | |
657 | 657 | let dg = bs() | |
658 | 658 | let dh = h(this, df) | |
659 | 659 | let di = h(this, dg) | |
660 | 660 | let ee = cC(cF) | |
661 | 661 | let ef = (dG - ee) | |
662 | 662 | if ((0 > ef)) | |
663 | 663 | then throw(("gwxDiff is less then 0: " + toString(ef))) | |
664 | 664 | else { | |
665 | 665 | let bJ = bB(false) | |
666 | 666 | let dj = bB(true) | |
667 | 667 | let dl = bt(cJ) | |
668 | 668 | let dm = h(this, dl) | |
669 | 669 | let dt = fraction(da, ee, dj) | |
670 | 670 | let eg = ((dG * ec) / 2) | |
671 | 671 | let eh = ((ee * ea) / 2) | |
672 | 672 | let ei = (eg - eh) | |
673 | 673 | (((cm(cF, cJ, eb, ed, ec, bQ, bR, bi) ++ bU(dC, dW, 0, 0)) :+ bM("lock", cF, dC, bP, ec, bQ, bR, aD)) ++ [IntegerEntry(bv(), (bJ + ef))]) | |
674 | 674 | } | |
675 | 675 | } | |
676 | 676 | } | |
677 | 677 | else throw("Strict value is not equal to itself.") | |
678 | 678 | } | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(aD) | |
684 | 684 | func claimWxBoost (cE,cF) = if ((bz != aD.caller)) | |
685 | 685 | then throw("permissions denied") | |
686 | 686 | else { | |
687 | 687 | let ej = cD(cE, cF, false) | |
688 | 688 | let dw = ej._1 | |
689 | 689 | let dx = ej._2 | |
690 | 690 | let dy = ej._3 | |
691 | 691 | $Tuple2(dx, [dw]) | |
692 | 692 | } | |
693 | 693 | ||
694 | 694 | ||
695 | 695 | ||
696 | 696 | @Callable(aD) | |
697 | 697 | func claimWxBoostREADONLY (cE,cF) = { | |
698 | 698 | let ek = cD(cE, cF, true) | |
699 | 699 | let dw = ek._1 | |
700 | 700 | let dx = ek._2 | |
701 | 701 | let dy = ek._3 | |
702 | 702 | $Tuple2(nil, [dw, dy]) | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | ||
707 | 707 | @Callable(aD) | |
708 | 708 | func unlock (aN) = { | |
709 | 709 | let cI = aO(aN) | |
710 | 710 | let cJ = cI[aG] | |
711 | 711 | let dX = parseIntValue(cI[aH]) | |
712 | 712 | let bP = parseIntValue(cI[aI]) | |
713 | 713 | let dY = parseIntValue(cI[aJ]) | |
714 | 714 | let dZ = (bP + dY) | |
715 | 715 | let dA = ar() | |
716 | 716 | let au = fromBase58String(dA[al]) | |
717 | 717 | if ((dZ >= height)) | |
718 | 718 | then throw((("wait " + toString(dZ)) + " to unlock")) | |
719 | 719 | else if ((0 >= dX)) | |
720 | 720 | then throw("nothing to unlock") | |
721 | 721 | else { | |
722 | 722 | let bi = valueOrElse(getInteger(as, aj()), 0) | |
723 | 723 | (((cm(aN, cJ, 0, bP, dY, 0, 0, toString(bi)) ++ bU(-(dX), 0, 0, -1)) :+ bM("unlock", aN, dX, bP, dY, 0, 0, aD)) :+ ScriptTransfer(addressFromStringValue(aN), dX, au)) | |
724 | 724 | } | |
725 | 725 | } | |
726 | 726 | ||
727 | 727 | ||
728 | 728 | ||
729 | 729 | @Callable(aD) | |
730 | 730 | func gwxUserInfoREADONLY (aN) = { | |
731 | 731 | let aX = cC(aN) | |
732 | 732 | $Tuple2(nil, [aX]) | |
733 | 733 | } | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(aD) | |
738 | - | func userMaxDurationREADONLY (cF) = { | |
739 | - | let dA = ar() | |
740 | - | let ax = parseIntValue(dA[ao]) | |
741 | - | let el = getString(this, aM(cF)) | |
742 | - | if ((el == unit)) | |
743 | - | then $Tuple2(nil, $Tuple2("lock", ax)) | |
744 | - | else { | |
745 | - | let cI = split(value(el), a) | |
746 | - | let bP = parseIntValue(cI[aI]) | |
747 | - | let dY = parseIntValue(cI[aJ]) | |
748 | - | let dZ = (bP + dY) | |
749 | - | let ea = max([(dZ - height), 0]) | |
750 | - | let em = (ax - ea) | |
751 | - | $Tuple2(nil, $Tuple2("increaseLock", em)) | |
752 | - | } | |
753 | - | } | |
754 | - | ||
755 | - | ||
756 | - | ||
757 | - | @Callable(aD) | |
758 | 738 | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
759 | 739 | let aX = cx(aN, cy) | |
760 | 740 | $Tuple2(nil, aX) | |
761 | 741 | } | |
762 | 742 | ||
763 | 743 | ||
764 | 744 | ||
765 | 745 | @Callable(aD) | |
766 | 746 | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bB(true)) | |
767 | 747 | ||
768 | 748 | ||
769 | 749 | ||
770 | 750 | @Callable(aD) | |
771 | - | func setManager ( | |
751 | + | func setManager (el) = { | |
772 | 752 | let dN = aC(aD) | |
773 | 753 | if ((dN == dN)) | |
774 | 754 | then { | |
775 | - | let | |
776 | - | if (( | |
777 | - | then [StringEntry(ad(), | |
755 | + | let em = fromBase58String(el) | |
756 | + | if ((em == em)) | |
757 | + | then [StringEntry(ad(), el)] | |
778 | 758 | else throw("Strict value is not equal to itself.") | |
779 | 759 | } | |
780 | 760 | else throw("Strict value is not equal to itself.") | |
781 | 761 | } | |
782 | 762 | ||
783 | 763 | ||
784 | 764 | ||
785 | 765 | @Callable(aD) | |
786 | 766 | func confirmManager () = { | |
787 | - | let | |
788 | - | let | |
767 | + | let en = aB() | |
768 | + | let eo = if (isDefined(en)) | |
789 | 769 | then true | |
790 | 770 | else throw("No pending manager") | |
791 | - | if (( | |
771 | + | if ((eo == eo)) | |
792 | 772 | then { | |
793 | - | let | |
773 | + | let ep = if ((aD.callerPublicKey == value(en))) | |
794 | 774 | then true | |
795 | 775 | else throw("You are not pending manager") | |
796 | - | if (( | |
797 | - | then [StringEntry(ac(), toBase58String(value( | |
776 | + | if ((ep == ep)) | |
777 | + | then [StringEntry(ac(), toBase58String(value(en))), DeleteEntry(ad())] | |
798 | 778 | else throw("Strict value is not equal to itself.") | |
799 | 779 | } | |
800 | 780 | else throw("Strict value is not equal to itself.") | |
801 | 781 | } | |
802 | 782 | ||
803 | 783 | ||
804 | - | @Verifier( | |
805 | - | func | |
806 | - | let | |
784 | + | @Verifier(eq) | |
785 | + | func er () = { | |
786 | + | let es = { | |
807 | 787 | let o = az() | |
808 | 788 | if ($isInstanceOf(o, "ByteVector")) | |
809 | 789 | then { | |
810 | 790 | let aF = o | |
811 | 791 | aF | |
812 | 792 | } | |
813 | 793 | else if ($isInstanceOf(o, "Unit")) | |
814 | - | then | |
794 | + | then eq.senderPublicKey | |
815 | 795 | else throw("Match error") | |
816 | 796 | } | |
817 | - | sigVerify( | |
797 | + | sigVerify(eq.bodyBytes, eq.proofs[0], es) | |
818 | 798 | } | |
819 | 799 |
github/deemru/w8io/026f985 78.75 ms ◑