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