tx · HWHY8ZWwCE6DDHCbA958WNaDHWz6JnfNHgcZq2iJofak 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01300000 Waves 2023.05.25 16:04 [2593543] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "HWHY8ZWwCE6DDHCbA958WNaDHWz6JnfNHgcZq2iJofak", "fee": 1300000, "feeAssetId": null, "timestamp": 1685019864845, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "4tyo6bSC4suL242APQHeyZpaMbcr4Y7wyBMyhdkw3dbUVxTUVmb4rU2u1GvSkrdjq2RjdDFgYEXvMGwMWsufMkJY" ], "script": "base64:AAIFAAAAAAAABf0IAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgAiA1NFUCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIPZ2V0U3RyaW5nT3JGYWlsIgdhZGRyZXNzIgNrZXkiEWtleUZhY3RvcnlBZGRyZXNzIhlrZXlWb3RpbmdWZXJpZmllZENvbnRyYWN0IiJrZXlWb3RpbmdFbWlzc2lvbkNhbmRpZGF0ZUNvbnRyYWN0IhRrZXlVc2VyUG9vbHNDb250cmFjdCIWdm90aW5nVmVyaWZpZWRDb250cmFjdCIfdm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIRdXNlclBvb2xzQ29udHJhY3QiGElkeEZhY3RvcnlDZmdTdGFraW5nRGFwcCIZSWR4RmFjdG9yeUNmZ0Jvb3N0aW5nRGFwcCIUSWR4RmFjdG9yeUNmZ0lkb0RhcHAiFUlkeEZhY3RvcnlDZmdUZWFtRGFwcCIZSWR4RmFjdG9yeUNmZ0VtaXNzaW9uRGFwcCIVSWR4RmFjdG9yeUNmZ1Jlc3REYXBwIhl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icationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3n6moM97LS3birEDsj5LZw9UMhQCFa5ashavD81dsjvz Next: 8b3mA5FnSW2UjPXr1AkwhytFELCBpd2LHDSVDnUkUzfd Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
21 | 21 | ||
22 | 22 | let k = "%s%s__config__userPoolsContract" | |
23 | 23 | ||
24 | - | let l = | |
24 | + | let l = addressFromStringValue(e(this, i)) | |
25 | 25 | ||
26 | - | let m = addressFromStringValue(e(this, | |
26 | + | let m = addressFromStringValue(e(this, j)) | |
27 | 27 | ||
28 | - | let n = addressFromStringValue(e(this, | |
28 | + | let n = addressFromStringValue(e(this, k)) | |
29 | 29 | ||
30 | - | let o = | |
30 | + | let o = 1 | |
31 | 31 | ||
32 | - | let p = | |
32 | + | let p = 2 | |
33 | 33 | ||
34 | - | let q = | |
34 | + | let q = 3 | |
35 | 35 | ||
36 | - | let r = | |
36 | + | let r = 4 | |
37 | 37 | ||
38 | - | let s = | |
38 | + | let s = 5 | |
39 | 39 | ||
40 | - | let t = | |
40 | + | let t = 6 | |
41 | 41 | ||
42 | - | let u = | |
42 | + | let u = 7 | |
43 | 43 | ||
44 | - | let v = | |
44 | + | let v = 10 | |
45 | 45 | ||
46 | - | let w = 7 | |
47 | - | ||
48 | - | let x = 10 | |
49 | - | ||
50 | - | func y () = "%s__factoryConfig" | |
46 | + | func w () = "%s__factoryConfig" | |
51 | 47 | ||
52 | 48 | ||
53 | - | func | |
49 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
54 | 50 | ||
55 | 51 | ||
56 | - | func | |
52 | + | func z () = "%s__lpTokensList" | |
57 | 53 | ||
58 | 54 | ||
59 | - | func | |
55 | + | func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
60 | 56 | ||
61 | 57 | ||
62 | - | func | |
58 | + | func B (C) = makeString(["%s%s", "poolWeight", C], a) | |
63 | 59 | ||
64 | 60 | ||
65 | - | func | |
61 | + | func D () = addressFromStringValue(e(this, h())) | |
66 | 62 | ||
67 | 63 | ||
68 | - | func | |
64 | + | func E () = split(valueOrElse(getString(D(), z()), ""), a) | |
69 | 65 | ||
70 | 66 | ||
71 | - | func | |
67 | + | func F (G) = split(e(G, w()), a) | |
72 | 68 | ||
73 | 69 | ||
74 | - | func | |
70 | + | func H (I) = addressFromStringValue(I[p]) | |
75 | 71 | ||
76 | 72 | ||
77 | - | func | |
73 | + | func J (I) = addressFromStringValue(I[s]) | |
78 | 74 | ||
79 | 75 | ||
80 | - | func | |
76 | + | func K (I) = addressFromStringValue(I[o]) | |
81 | 77 | ||
82 | 78 | ||
83 | - | func | |
79 | + | func L (I) = addressFromStringValue(I[v]) | |
84 | 80 | ||
85 | 81 | ||
86 | - | func | |
82 | + | func M () = "%s__config" | |
87 | 83 | ||
88 | 84 | ||
89 | - | func | |
85 | + | func N () = "%s%s__ratePerBlockMax__current" | |
90 | 86 | ||
91 | 87 | ||
92 | - | func | |
88 | + | func O (P,Q) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(P), toString(Q)], a) | |
93 | 89 | ||
94 | 90 | ||
95 | - | func | |
91 | + | func R () = "%s%s__ratePerBlock__current" | |
96 | 92 | ||
97 | 93 | ||
98 | - | func | |
94 | + | func S (P,Q) = makeString(["%s%s%d%d__ratePerBlock__start", toString(P), toString(Q)], a) | |
99 | 95 | ||
100 | 96 | ||
101 | - | func | |
97 | + | func T () = "%s%s__emission__startBlock" | |
102 | 98 | ||
103 | 99 | ||
104 | - | func | |
100 | + | func U () = "%s%s__emission__duration" | |
105 | 101 | ||
106 | 102 | ||
107 | - | func | |
103 | + | func V () = "%s%s__emission__endBlock" | |
108 | 104 | ||
109 | 105 | ||
110 | - | func | |
106 | + | func W () = "%s__boostCoeff" | |
111 | 107 | ||
112 | 108 | ||
113 | - | let | |
109 | + | let X = 3 | |
114 | 110 | ||
115 | - | let | |
111 | + | let Y = valueOrElse(getInteger(this, W()), X) | |
116 | 112 | ||
117 | - | func | |
113 | + | func Z () = "%s__managerPublicKey" | |
118 | 114 | ||
119 | 115 | ||
120 | - | func | |
116 | + | func aa () = "%s__managerVaultAddress" | |
121 | 117 | ||
122 | 118 | ||
123 | - | func ad () = "%s__managerPublicKey" | |
124 | - | ||
125 | - | ||
126 | - | func ae () = "%s__managerVaultAddress" | |
127 | - | ||
128 | - | ||
129 | - | func af () = { | |
130 | - | let ag = getString(ae()) | |
131 | - | if ($isInstanceOf(ag, "String")) | |
119 | + | func ab () = { | |
120 | + | let ac = getString(aa()) | |
121 | + | if ($isInstanceOf(ac, "String")) | |
132 | 122 | then { | |
133 | - | let | |
134 | - | addressFromStringValue( | |
123 | + | let ad = ac | |
124 | + | addressFromStringValue(ad) | |
135 | 125 | } | |
136 | 126 | else this | |
137 | 127 | } | |
138 | 128 | ||
139 | 129 | ||
140 | - | func | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
130 | + | func ae () = { | |
131 | + | let af = ab() | |
132 | + | let ac = getString(af, Z()) | |
133 | + | if ($isInstanceOf(ac, "String")) | |
144 | 134 | then { | |
145 | - | let | |
146 | - | fromBase58String( | |
135 | + | let ad = ac | |
136 | + | fromBase58String(ad) | |
147 | 137 | } | |
148 | - | else if ($isInstanceOf( | |
138 | + | else if ($isInstanceOf(ac, "Unit")) | |
149 | 139 | then unit | |
150 | 140 | else throw("Match error") | |
151 | 141 | } | |
152 | 142 | ||
153 | 143 | ||
154 | - | func | |
155 | - | let | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
144 | + | func ag (ah) = { | |
145 | + | let ai = d("Permission denied") | |
146 | + | let ac = ae() | |
147 | + | if ($isInstanceOf(ac, "ByteVector")) | |
158 | 148 | then { | |
159 | - | let | |
160 | - | if (( | |
149 | + | let aj = ac | |
150 | + | if ((ah.callerPublicKey == aj)) | |
161 | 151 | then true | |
162 | - | else | |
152 | + | else ai | |
163 | 153 | } | |
164 | - | else if ($isInstanceOf( | |
165 | - | then if (( | |
154 | + | else if ($isInstanceOf(ac, "Unit")) | |
155 | + | then if ((ah.caller == this)) | |
166 | 156 | then true | |
167 | - | else | |
157 | + | else ai | |
168 | 158 | else throw("Match error") | |
169 | 159 | } | |
170 | 160 | ||
171 | 161 | ||
172 | - | @Callable( | |
173 | - | func constructor (ao,ap,aq | |
174 | - | let | |
175 | - | if (( | |
176 | - | then [IntegerEntry( | |
162 | + | @Callable(ah) | |
163 | + | func constructor (ak,al,am,an,ao,ap,aq) = { | |
164 | + | let ar = ag(ah) | |
165 | + | if ((ar == ar)) | |
166 | + | then [IntegerEntry(O(ap, an), al), IntegerEntry(N(), al), IntegerEntry(S(ap, an), am), IntegerEntry(R(), am), IntegerEntry(T(), an), IntegerEntry(U(), ao), IntegerEntry(V(), (an + ao)), StringEntry(h(), ak), StringEntry(M(), ("%s__" + aq))] | |
177 | 167 | else throw("Strict value is not equal to itself.") | |
178 | 168 | } | |
179 | 169 | ||
180 | 170 | ||
181 | 171 | ||
182 | - | @Callable( | |
183 | - | func constructorV2 ( | |
184 | - | let | |
185 | - | if (( | |
186 | - | then $Tuple2([StringEntry(i, | |
172 | + | @Callable(ah) | |
173 | + | func constructorV2 (as) = { | |
174 | + | let ar = ag(ah) | |
175 | + | if ((ar == ar)) | |
176 | + | then $Tuple2([StringEntry(i, as)], unit) | |
187 | 177 | else throw("Strict value is not equal to itself.") | |
188 | 178 | } | |
189 | 179 | ||
190 | 180 | ||
191 | 181 | ||
192 | - | @Callable( | |
193 | - | func emit ( | |
182 | + | @Callable(ah) | |
183 | + | func emit (at) = if ((0 >= at)) | |
194 | 184 | then $Tuple2(nil, nil) | |
195 | 185 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | if (if (( | |
202 | - | then ( | |
186 | + | let au = D() | |
187 | + | let I = F(au) | |
188 | + | let av = K(I) | |
189 | + | let aw = L(I) | |
190 | + | let ax = ah.caller | |
191 | + | if (if ((ax != av)) | |
192 | + | then (ax != aw) | |
203 | 193 | else false) | |
204 | 194 | then d("permissions denied") | |
205 | 195 | else { | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple2([ScriptTransfer( | |
196 | + | let aq = split(e(this, M()), a)[1] | |
197 | + | let ay = fromBase58String(aq) | |
198 | + | $Tuple2([ScriptTransfer(ax, at, ay)], [ay]) | |
209 | 199 | } | |
210 | 200 | } | |
211 | 201 | ||
212 | 202 | ||
213 | 203 | ||
214 | - | @Callable( | |
204 | + | @Callable(ah) | |
215 | 205 | func burn () = { | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | if ((size( | |
206 | + | let au = D() | |
207 | + | let I = F(au) | |
208 | + | let az = H(I) | |
209 | + | if ((size(ah.payments) != 1)) | |
220 | 210 | then d("exact one payment is allowed") | |
221 | 211 | else { | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if (( | |
212 | + | let aA = ah.payments[0] | |
213 | + | let aB = value(aA.assetId) | |
214 | + | let aC = aA.amount | |
215 | + | let ay = fromBase58String(split(e(this, M()), a)[1]) | |
216 | + | if ((aB != ay)) | |
227 | 217 | then d("invalid wxAssetId is passed") | |
228 | - | else if (!(containsElement([ | |
218 | + | else if (!(containsElement([az, l, m, n], ah.caller))) | |
229 | 219 | then d("permissions denied") | |
230 | - | else [Burn( | |
220 | + | else [Burn(aB, aC), StringEntry(("%s%s%s__history__burn__" + toBase58String(ah.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aC)], a))] | |
231 | 221 | } | |
232 | 222 | } | |
233 | 223 | ||
234 | 224 | ||
235 | 225 | ||
236 | - | @Callable(al) | |
237 | - | func gwxHoldersRewardUpdate () = { | |
238 | - | let ay = F() | |
239 | - | let K = H(ay) | |
240 | - | let aA = N(K) | |
241 | - | let av = if ((al.caller == aA)) | |
242 | - | then true | |
243 | - | else ak(al) | |
244 | - | if ((av == av)) | |
245 | - | then { | |
246 | - | let aH = valueOrElse(getInteger(ab()), 0) | |
247 | - | let aI = valueOrElse(getInteger(ac()), aH) | |
248 | - | let aJ = (aH != aI) | |
249 | - | let aK = if (aJ) | |
250 | - | then [IntegerEntry(ab(), aI), DeleteEntry(ac())] | |
251 | - | else nil | |
252 | - | $Tuple2(aK, aJ) | |
253 | - | } | |
254 | - | else throw("Strict value is not equal to itself.") | |
255 | - | } | |
226 | + | @Callable(ah) | |
227 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
256 | 228 | ||
257 | 229 | ||
258 | - | ||
259 | - | @Callable(al) | |
260 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, aa) | |
261 | - | ||
262 | - | ||
263 | - | ||
264 | - | @Callable(al) | |
265 | - | func changeRatePerBlockINTERNAL (aL) = { | |
266 | - | let aM = if ((al.caller == this)) | |
267 | - | then true | |
268 | - | else d("should be invoked internally") | |
269 | - | if ((aM == aM)) | |
270 | - | then { | |
271 | - | let aN = { | |
272 | - | let ag = blockInfoByHeight(height) | |
273 | - | if ($isInstanceOf(ag, "BlockInfo")) | |
274 | - | then { | |
275 | - | let aO = ag | |
276 | - | aO.timestamp | |
277 | - | } | |
278 | - | else d("BlockInfo.timestamp error") | |
230 | + | @Verifier(aD) | |
231 | + | func aE () = { | |
232 | + | let aF = { | |
233 | + | let ac = ae() | |
234 | + | if ($isInstanceOf(ac, "ByteVector")) | |
235 | + | then { | |
236 | + | let aj = ac | |
237 | + | aj | |
279 | 238 | } | |
280 | - | [IntegerEntry(U(aN, height), aL), IntegerEntry(T(), aL)] | |
281 | - | } | |
282 | - | else throw("Strict value is not equal to itself.") | |
283 | - | } | |
284 | - | ||
285 | - | ||
286 | - | ||
287 | - | @Callable(al) | |
288 | - | func changeRatePerBlock (aL) = { | |
289 | - | let aM = if (if ((al.caller == p)) | |
290 | - | then true | |
291 | - | else ak(al)) | |
292 | - | then true | |
293 | - | else d("should be invoked by votingEmissionRateContract") | |
294 | - | if ((aM == aM)) | |
295 | - | then { | |
296 | - | let ay = F() | |
297 | - | let K = H(ay) | |
298 | - | let aD = J(K) | |
299 | - | let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil) | |
300 | - | if ((aP == aP)) | |
301 | - | then { | |
302 | - | let aQ = reentrantInvoke(aD, "onBoostEmissionUpdate", nil, nil) | |
303 | - | if ((aQ == aQ)) | |
304 | - | then nil | |
305 | - | else throw("Strict value is not equal to itself.") | |
306 | - | } | |
307 | - | else throw("Strict value is not equal to itself.") | |
308 | - | } | |
309 | - | else throw("Strict value is not equal to itself.") | |
310 | - | } | |
311 | - | ||
312 | - | ||
313 | - | @Verifier(aR) | |
314 | - | func aS () = { | |
315 | - | let aT = { | |
316 | - | let ag = ai() | |
317 | - | if ($isInstanceOf(ag, "ByteVector")) | |
318 | - | then { | |
319 | - | let an = ag | |
320 | - | an | |
321 | - | } | |
322 | - | else if ($isInstanceOf(ag, "Unit")) | |
323 | - | then aR.senderPublicKey | |
239 | + | else if ($isInstanceOf(ac, "Unit")) | |
240 | + | then aD.senderPublicKey | |
324 | 241 | else throw("Match error") | |
325 | 242 | } | |
326 | - | sigVerify( | |
243 | + | sigVerify(aD.bodyBytes, aD.proofs[0], aF) | |
327 | 244 | } | |
328 | 245 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b (c) = makeString(["emission.ride:", toString(this), c], " ") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func d (c) = throw(b(c)) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func e (f,g) = valueOrErrorMessage(getString(f, g), b((("mandatory this." + g) + " is not defined"))) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func h () = "%s%s__config__factoryAddress" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | let i = "%s%s__config__votingVerifiedContract" | |
19 | 19 | ||
20 | 20 | let j = "%s%s__config__votingEmissionCandidateContract" | |
21 | 21 | ||
22 | 22 | let k = "%s%s__config__userPoolsContract" | |
23 | 23 | ||
24 | - | let l = | |
24 | + | let l = addressFromStringValue(e(this, i)) | |
25 | 25 | ||
26 | - | let m = addressFromStringValue(e(this, | |
26 | + | let m = addressFromStringValue(e(this, j)) | |
27 | 27 | ||
28 | - | let n = addressFromStringValue(e(this, | |
28 | + | let n = addressFromStringValue(e(this, k)) | |
29 | 29 | ||
30 | - | let o = | |
30 | + | let o = 1 | |
31 | 31 | ||
32 | - | let p = | |
32 | + | let p = 2 | |
33 | 33 | ||
34 | - | let q = | |
34 | + | let q = 3 | |
35 | 35 | ||
36 | - | let r = | |
36 | + | let r = 4 | |
37 | 37 | ||
38 | - | let s = | |
38 | + | let s = 5 | |
39 | 39 | ||
40 | - | let t = | |
40 | + | let t = 6 | |
41 | 41 | ||
42 | - | let u = | |
42 | + | let u = 7 | |
43 | 43 | ||
44 | - | let v = | |
44 | + | let v = 10 | |
45 | 45 | ||
46 | - | let w = 7 | |
47 | - | ||
48 | - | let x = 10 | |
49 | - | ||
50 | - | func y () = "%s__factoryConfig" | |
46 | + | func w () = "%s__factoryConfig" | |
51 | 47 | ||
52 | 48 | ||
53 | - | func | |
49 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
54 | 50 | ||
55 | 51 | ||
56 | - | func | |
52 | + | func z () = "%s__lpTokensList" | |
57 | 53 | ||
58 | 54 | ||
59 | - | func | |
55 | + | func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
60 | 56 | ||
61 | 57 | ||
62 | - | func | |
58 | + | func B (C) = makeString(["%s%s", "poolWeight", C], a) | |
63 | 59 | ||
64 | 60 | ||
65 | - | func | |
61 | + | func D () = addressFromStringValue(e(this, h())) | |
66 | 62 | ||
67 | 63 | ||
68 | - | func | |
64 | + | func E () = split(valueOrElse(getString(D(), z()), ""), a) | |
69 | 65 | ||
70 | 66 | ||
71 | - | func | |
67 | + | func F (G) = split(e(G, w()), a) | |
72 | 68 | ||
73 | 69 | ||
74 | - | func | |
70 | + | func H (I) = addressFromStringValue(I[p]) | |
75 | 71 | ||
76 | 72 | ||
77 | - | func | |
73 | + | func J (I) = addressFromStringValue(I[s]) | |
78 | 74 | ||
79 | 75 | ||
80 | - | func | |
76 | + | func K (I) = addressFromStringValue(I[o]) | |
81 | 77 | ||
82 | 78 | ||
83 | - | func | |
79 | + | func L (I) = addressFromStringValue(I[v]) | |
84 | 80 | ||
85 | 81 | ||
86 | - | func | |
82 | + | func M () = "%s__config" | |
87 | 83 | ||
88 | 84 | ||
89 | - | func | |
85 | + | func N () = "%s%s__ratePerBlockMax__current" | |
90 | 86 | ||
91 | 87 | ||
92 | - | func | |
88 | + | func O (P,Q) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(P), toString(Q)], a) | |
93 | 89 | ||
94 | 90 | ||
95 | - | func | |
91 | + | func R () = "%s%s__ratePerBlock__current" | |
96 | 92 | ||
97 | 93 | ||
98 | - | func | |
94 | + | func S (P,Q) = makeString(["%s%s%d%d__ratePerBlock__start", toString(P), toString(Q)], a) | |
99 | 95 | ||
100 | 96 | ||
101 | - | func | |
97 | + | func T () = "%s%s__emission__startBlock" | |
102 | 98 | ||
103 | 99 | ||
104 | - | func | |
100 | + | func U () = "%s%s__emission__duration" | |
105 | 101 | ||
106 | 102 | ||
107 | - | func | |
103 | + | func V () = "%s%s__emission__endBlock" | |
108 | 104 | ||
109 | 105 | ||
110 | - | func | |
106 | + | func W () = "%s__boostCoeff" | |
111 | 107 | ||
112 | 108 | ||
113 | - | let | |
109 | + | let X = 3 | |
114 | 110 | ||
115 | - | let | |
111 | + | let Y = valueOrElse(getInteger(this, W()), X) | |
116 | 112 | ||
117 | - | func | |
113 | + | func Z () = "%s__managerPublicKey" | |
118 | 114 | ||
119 | 115 | ||
120 | - | func | |
116 | + | func aa () = "%s__managerVaultAddress" | |
121 | 117 | ||
122 | 118 | ||
123 | - | func ad () = "%s__managerPublicKey" | |
124 | - | ||
125 | - | ||
126 | - | func ae () = "%s__managerVaultAddress" | |
127 | - | ||
128 | - | ||
129 | - | func af () = { | |
130 | - | let ag = getString(ae()) | |
131 | - | if ($isInstanceOf(ag, "String")) | |
119 | + | func ab () = { | |
120 | + | let ac = getString(aa()) | |
121 | + | if ($isInstanceOf(ac, "String")) | |
132 | 122 | then { | |
133 | - | let | |
134 | - | addressFromStringValue( | |
123 | + | let ad = ac | |
124 | + | addressFromStringValue(ad) | |
135 | 125 | } | |
136 | 126 | else this | |
137 | 127 | } | |
138 | 128 | ||
139 | 129 | ||
140 | - | func | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
130 | + | func ae () = { | |
131 | + | let af = ab() | |
132 | + | let ac = getString(af, Z()) | |
133 | + | if ($isInstanceOf(ac, "String")) | |
144 | 134 | then { | |
145 | - | let | |
146 | - | fromBase58String( | |
135 | + | let ad = ac | |
136 | + | fromBase58String(ad) | |
147 | 137 | } | |
148 | - | else if ($isInstanceOf( | |
138 | + | else if ($isInstanceOf(ac, "Unit")) | |
149 | 139 | then unit | |
150 | 140 | else throw("Match error") | |
151 | 141 | } | |
152 | 142 | ||
153 | 143 | ||
154 | - | func | |
155 | - | let | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
144 | + | func ag (ah) = { | |
145 | + | let ai = d("Permission denied") | |
146 | + | let ac = ae() | |
147 | + | if ($isInstanceOf(ac, "ByteVector")) | |
158 | 148 | then { | |
159 | - | let | |
160 | - | if (( | |
149 | + | let aj = ac | |
150 | + | if ((ah.callerPublicKey == aj)) | |
161 | 151 | then true | |
162 | - | else | |
152 | + | else ai | |
163 | 153 | } | |
164 | - | else if ($isInstanceOf( | |
165 | - | then if (( | |
154 | + | else if ($isInstanceOf(ac, "Unit")) | |
155 | + | then if ((ah.caller == this)) | |
166 | 156 | then true | |
167 | - | else | |
157 | + | else ai | |
168 | 158 | else throw("Match error") | |
169 | 159 | } | |
170 | 160 | ||
171 | 161 | ||
172 | - | @Callable( | |
173 | - | func constructor (ao,ap,aq | |
174 | - | let | |
175 | - | if (( | |
176 | - | then [IntegerEntry( | |
162 | + | @Callable(ah) | |
163 | + | func constructor (ak,al,am,an,ao,ap,aq) = { | |
164 | + | let ar = ag(ah) | |
165 | + | if ((ar == ar)) | |
166 | + | then [IntegerEntry(O(ap, an), al), IntegerEntry(N(), al), IntegerEntry(S(ap, an), am), IntegerEntry(R(), am), IntegerEntry(T(), an), IntegerEntry(U(), ao), IntegerEntry(V(), (an + ao)), StringEntry(h(), ak), StringEntry(M(), ("%s__" + aq))] | |
177 | 167 | else throw("Strict value is not equal to itself.") | |
178 | 168 | } | |
179 | 169 | ||
180 | 170 | ||
181 | 171 | ||
182 | - | @Callable( | |
183 | - | func constructorV2 ( | |
184 | - | let | |
185 | - | if (( | |
186 | - | then $Tuple2([StringEntry(i, | |
172 | + | @Callable(ah) | |
173 | + | func constructorV2 (as) = { | |
174 | + | let ar = ag(ah) | |
175 | + | if ((ar == ar)) | |
176 | + | then $Tuple2([StringEntry(i, as)], unit) | |
187 | 177 | else throw("Strict value is not equal to itself.") | |
188 | 178 | } | |
189 | 179 | ||
190 | 180 | ||
191 | 181 | ||
192 | - | @Callable( | |
193 | - | func emit ( | |
182 | + | @Callable(ah) | |
183 | + | func emit (at) = if ((0 >= at)) | |
194 | 184 | then $Tuple2(nil, nil) | |
195 | 185 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | if (if (( | |
202 | - | then ( | |
186 | + | let au = D() | |
187 | + | let I = F(au) | |
188 | + | let av = K(I) | |
189 | + | let aw = L(I) | |
190 | + | let ax = ah.caller | |
191 | + | if (if ((ax != av)) | |
192 | + | then (ax != aw) | |
203 | 193 | else false) | |
204 | 194 | then d("permissions denied") | |
205 | 195 | else { | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple2([ScriptTransfer( | |
196 | + | let aq = split(e(this, M()), a)[1] | |
197 | + | let ay = fromBase58String(aq) | |
198 | + | $Tuple2([ScriptTransfer(ax, at, ay)], [ay]) | |
209 | 199 | } | |
210 | 200 | } | |
211 | 201 | ||
212 | 202 | ||
213 | 203 | ||
214 | - | @Callable( | |
204 | + | @Callable(ah) | |
215 | 205 | func burn () = { | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | if ((size( | |
206 | + | let au = D() | |
207 | + | let I = F(au) | |
208 | + | let az = H(I) | |
209 | + | if ((size(ah.payments) != 1)) | |
220 | 210 | then d("exact one payment is allowed") | |
221 | 211 | else { | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if (( | |
212 | + | let aA = ah.payments[0] | |
213 | + | let aB = value(aA.assetId) | |
214 | + | let aC = aA.amount | |
215 | + | let ay = fromBase58String(split(e(this, M()), a)[1]) | |
216 | + | if ((aB != ay)) | |
227 | 217 | then d("invalid wxAssetId is passed") | |
228 | - | else if (!(containsElement([ | |
218 | + | else if (!(containsElement([az, l, m, n], ah.caller))) | |
229 | 219 | then d("permissions denied") | |
230 | - | else [Burn( | |
220 | + | else [Burn(aB, aC), StringEntry(("%s%s%s__history__burn__" + toBase58String(ah.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aC)], a))] | |
231 | 221 | } | |
232 | 222 | } | |
233 | 223 | ||
234 | 224 | ||
235 | 225 | ||
236 | - | @Callable(al) | |
237 | - | func gwxHoldersRewardUpdate () = { | |
238 | - | let ay = F() | |
239 | - | let K = H(ay) | |
240 | - | let aA = N(K) | |
241 | - | let av = if ((al.caller == aA)) | |
242 | - | then true | |
243 | - | else ak(al) | |
244 | - | if ((av == av)) | |
245 | - | then { | |
246 | - | let aH = valueOrElse(getInteger(ab()), 0) | |
247 | - | let aI = valueOrElse(getInteger(ac()), aH) | |
248 | - | let aJ = (aH != aI) | |
249 | - | let aK = if (aJ) | |
250 | - | then [IntegerEntry(ab(), aI), DeleteEntry(ac())] | |
251 | - | else nil | |
252 | - | $Tuple2(aK, aJ) | |
253 | - | } | |
254 | - | else throw("Strict value is not equal to itself.") | |
255 | - | } | |
226 | + | @Callable(ah) | |
227 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
256 | 228 | ||
257 | 229 | ||
258 | - | ||
259 | - | @Callable(al) | |
260 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, aa) | |
261 | - | ||
262 | - | ||
263 | - | ||
264 | - | @Callable(al) | |
265 | - | func changeRatePerBlockINTERNAL (aL) = { | |
266 | - | let aM = if ((al.caller == this)) | |
267 | - | then true | |
268 | - | else d("should be invoked internally") | |
269 | - | if ((aM == aM)) | |
270 | - | then { | |
271 | - | let aN = { | |
272 | - | let ag = blockInfoByHeight(height) | |
273 | - | if ($isInstanceOf(ag, "BlockInfo")) | |
274 | - | then { | |
275 | - | let aO = ag | |
276 | - | aO.timestamp | |
277 | - | } | |
278 | - | else d("BlockInfo.timestamp error") | |
230 | + | @Verifier(aD) | |
231 | + | func aE () = { | |
232 | + | let aF = { | |
233 | + | let ac = ae() | |
234 | + | if ($isInstanceOf(ac, "ByteVector")) | |
235 | + | then { | |
236 | + | let aj = ac | |
237 | + | aj | |
279 | 238 | } | |
280 | - | [IntegerEntry(U(aN, height), aL), IntegerEntry(T(), aL)] | |
281 | - | } | |
282 | - | else throw("Strict value is not equal to itself.") | |
283 | - | } | |
284 | - | ||
285 | - | ||
286 | - | ||
287 | - | @Callable(al) | |
288 | - | func changeRatePerBlock (aL) = { | |
289 | - | let aM = if (if ((al.caller == p)) | |
290 | - | then true | |
291 | - | else ak(al)) | |
292 | - | then true | |
293 | - | else d("should be invoked by votingEmissionRateContract") | |
294 | - | if ((aM == aM)) | |
295 | - | then { | |
296 | - | let ay = F() | |
297 | - | let K = H(ay) | |
298 | - | let aD = J(K) | |
299 | - | let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil) | |
300 | - | if ((aP == aP)) | |
301 | - | then { | |
302 | - | let aQ = reentrantInvoke(aD, "onBoostEmissionUpdate", nil, nil) | |
303 | - | if ((aQ == aQ)) | |
304 | - | then nil | |
305 | - | else throw("Strict value is not equal to itself.") | |
306 | - | } | |
307 | - | else throw("Strict value is not equal to itself.") | |
308 | - | } | |
309 | - | else throw("Strict value is not equal to itself.") | |
310 | - | } | |
311 | - | ||
312 | - | ||
313 | - | @Verifier(aR) | |
314 | - | func aS () = { | |
315 | - | let aT = { | |
316 | - | let ag = ai() | |
317 | - | if ($isInstanceOf(ag, "ByteVector")) | |
318 | - | then { | |
319 | - | let an = ag | |
320 | - | an | |
321 | - | } | |
322 | - | else if ($isInstanceOf(ag, "Unit")) | |
323 | - | then aR.senderPublicKey | |
239 | + | else if ($isInstanceOf(ac, "Unit")) | |
240 | + | then aD.senderPublicKey | |
324 | 241 | else throw("Match error") | |
325 | 242 | } | |
326 | - | sigVerify( | |
243 | + | sigVerify(aD.bodyBytes, aD.proofs[0], aF) | |
327 | 244 | } | |
328 | 245 |
github/deemru/w8io/026f985 76.53 ms ◑