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