tx · 9vzsiqofpS5Cj8Ny4cxoArxyzgs9jg7YRVSWb5bUC3tW 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01300000 Waves 2023.04.24 11:38 [2548400] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "9vzsiqofpS5Cj8Ny4cxoArxyzgs9jg7YRVSWb5bUC3tW", "fee": 1300000, "feeAssetId": null, "timestamp": 1682325554301, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "31niTMdYwBbGRL54R4E8b7ntFhHsiywUNnRYKwi4A2T5miP68vA5DRWg1e8zyyy9gqpR1GSQKBCvoRAzH2st3we8" ], "script": "base64:AAIFAAAAAAAABjgIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAIgNTRVAiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IhFrZXlGYWN0b3J5QWRkcmVzcyIZa2V5Vm90aW5nVmVyaWZpZWRDb250cmFjdCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIUa2V5VXNlclBvb2xzQ29udHJhY3QiFnZvdGluZ1ZlcmlmaWVkQ29udHJhY3QiH3ZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEXVzZXJQb29sc0NvbnRyYWN0IhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAiGUlkeEZhY3RvcnlDZmdFbWlzc2lvbkRhcHAiFUlkeEZhY3RvcnlDZmdS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GVzCQABkQAAAAIIBQAAAAJhSAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFK9qp44A==", "height": 2548400, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4okyA9gs8PXLfYhfdto5m9HMC1pvQetxUbfMY5H9S82o Next: 2r1pMMbvY2SayHU6Q9bLG2vvKAW8Nd8Et7pK4q1eeSgY Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
91 | 91 | func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func keyRatePerBlockNext () = "%s%s__ratePerBlock__next" | |
95 | - | ||
96 | - | ||
97 | 94 | func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP) | |
98 | 95 | ||
99 | 96 | ||
112 | 109 | let boostCoeffDefault = 3 | |
113 | 110 | ||
114 | 111 | let boostCoeff = valueOrElse(getInteger(this, keyBoostCoeff()), boostCoeffDefault) | |
115 | - | ||
116 | - | func keyGwxHoldersRewardCurrent () = "%s%s__gwxHoldersReward__current" | |
117 | - | ||
118 | - | ||
119 | - | func keyGwxHoldersRewardNext () = "%s%s__gwxHoldersReward__next" | |
120 | - | ||
121 | 112 | ||
122 | 113 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
123 | 114 | ||
227 | 218 | ||
228 | 219 | ||
229 | 220 | @Callable(i) | |
230 | - | func gwxHoldersRewardUpdate () = { | |
231 | - | let factoryContract = readFactoryAddressOrFail() | |
232 | - | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
233 | - | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
234 | - | let checkCaller = if ((i.caller == gwxRewardsContract)) | |
235 | - | then true | |
236 | - | else mustManager(i) | |
237 | - | if ((checkCaller == checkCaller)) | |
238 | - | then { | |
239 | - | let gwxHolderRewardCurrent = valueOrElse(getInteger(keyGwxHoldersRewardCurrent()), 0) | |
240 | - | let gwxHolderRewardNext = valueOrElse(getInteger(keyGwxHoldersRewardNext()), gwxHolderRewardCurrent) | |
241 | - | let shouldBeUpdated = (gwxHolderRewardCurrent != gwxHolderRewardNext) | |
242 | - | let actions = if (shouldBeUpdated) | |
243 | - | then [IntegerEntry(keyGwxHoldersRewardCurrent(), gwxHolderRewardNext), DeleteEntry(keyGwxHoldersRewardNext())] | |
244 | - | else nil | |
245 | - | $Tuple2(actions, shouldBeUpdated) | |
246 | - | } | |
247 | - | else throw("Strict value is not equal to itself.") | |
248 | - | } | |
249 | - | ||
250 | - | ||
251 | - | ||
252 | - | @Callable(i) | |
253 | 221 | func setManager (pendingManagerPublicKey) = { | |
254 | 222 | let checkCaller = mustManager(i) | |
255 | 223 | if ((checkCaller == checkCaller)) |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | func wrapErr (msg) = makeString(["emission.ride:", toString(this), msg], " ") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func throwErr (msg) = throw(wrapErr(msg)) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((("mandatory this." + key) + " is not defined"))) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract" | |
19 | 19 | ||
20 | 20 | let keyVotingEmissionCandidateContract = "%s%s__config__votingEmissionCandidateContract" | |
21 | 21 | ||
22 | 22 | let keyUserPoolsContract = "%s%s__config__userPoolsContract" | |
23 | 23 | ||
24 | 24 | let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract)) | |
25 | 25 | ||
26 | 26 | let votingEmissionCandidateContract = addressFromStringValue(getStringOrFail(this, keyVotingEmissionCandidateContract)) | |
27 | 27 | ||
28 | 28 | let userPoolsContract = addressFromStringValue(getStringOrFail(this, keyUserPoolsContract)) | |
29 | 29 | ||
30 | 30 | let IdxFactoryCfgStakingDapp = 1 | |
31 | 31 | ||
32 | 32 | let IdxFactoryCfgBoostingDapp = 2 | |
33 | 33 | ||
34 | 34 | let IdxFactoryCfgIdoDapp = 3 | |
35 | 35 | ||
36 | 36 | let IdxFactoryCfgTeamDapp = 4 | |
37 | 37 | ||
38 | 38 | let IdxFactoryCfgEmissionDapp = 5 | |
39 | 39 | ||
40 | 40 | let IdxFactoryCfgRestDapp = 6 | |
41 | 41 | ||
42 | 42 | let IdxFactoryCfgSlippageDapp = 7 | |
43 | 43 | ||
44 | 44 | let IdxFactoryCfgGwxRewardDapp = 10 | |
45 | 45 | ||
46 | 46 | func keyFactoryCfg () = "%s__factoryConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func keyFactoryLpList () = "%s__lpTokensList" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress())) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyConfig () = "%s__config" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func keyRatePerBlockNext () = "%s%s__ratePerBlock__next" | |
95 | - | ||
96 | - | ||
97 | 94 | func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP) | |
98 | 95 | ||
99 | 96 | ||
100 | 97 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
101 | 98 | ||
102 | 99 | ||
103 | 100 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
104 | 101 | ||
105 | 102 | ||
106 | 103 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
107 | 104 | ||
108 | 105 | ||
109 | 106 | func keyBoostCoeff () = "%s__boostCoeff" | |
110 | 107 | ||
111 | 108 | ||
112 | 109 | let boostCoeffDefault = 3 | |
113 | 110 | ||
114 | 111 | let boostCoeff = valueOrElse(getInteger(this, keyBoostCoeff()), boostCoeffDefault) | |
115 | - | ||
116 | - | func keyGwxHoldersRewardCurrent () = "%s%s__gwxHoldersReward__current" | |
117 | - | ||
118 | - | ||
119 | - | func keyGwxHoldersRewardNext () = "%s%s__gwxHoldersReward__next" | |
120 | - | ||
121 | 112 | ||
122 | 113 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
123 | 114 | ||
124 | 115 | ||
125 | 116 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
126 | 117 | ||
127 | 118 | ||
128 | 119 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
129 | 120 | case s: String => | |
130 | 121 | fromBase58String(s) | |
131 | 122 | case _: Unit => | |
132 | 123 | unit | |
133 | 124 | case _ => | |
134 | 125 | throw("Match error") | |
135 | 126 | } | |
136 | 127 | ||
137 | 128 | ||
138 | 129 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
139 | 130 | case s: String => | |
140 | 131 | fromBase58String(s) | |
141 | 132 | case _: Unit => | |
142 | 133 | unit | |
143 | 134 | case _ => | |
144 | 135 | throw("Match error") | |
145 | 136 | } | |
146 | 137 | ||
147 | 138 | ||
148 | 139 | func mustManager (i) = { | |
149 | 140 | let pd = throwErr("Permission denied") | |
150 | 141 | match managerPublicKeyOrUnit() { | |
151 | 142 | case pk: ByteVector => | |
152 | 143 | if ((i.callerPublicKey == pk)) | |
153 | 144 | then true | |
154 | 145 | else pd | |
155 | 146 | case _: Unit => | |
156 | 147 | if ((i.caller == this)) | |
157 | 148 | then true | |
158 | 149 | else pd | |
159 | 150 | case _ => | |
160 | 151 | throw("Match error") | |
161 | 152 | } | |
162 | 153 | } | |
163 | 154 | ||
164 | 155 | ||
165 | 156 | @Callable(i) | |
166 | 157 | func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = { | |
167 | 158 | let checkCaller = mustManager(i) | |
168 | 159 | if ((checkCaller == checkCaller)) | |
169 | 160 | then [IntegerEntry(keyRatePerBlockMaxStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlockMax), IntegerEntry(keyRatePerBlockMaxCurrent(), ratePerBlockMax), IntegerEntry(keyRatePerBlockStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlock), IntegerEntry(keyRatePerBlockCurrent(), ratePerBlock), IntegerEntry(keyEmissionStartBlock(), emissionStartBlock), IntegerEntry(keyEmissionDurationInBlocks(), emissionDuration), IntegerEntry(keyEmissionEndBlock(), (emissionStartBlock + emissionDuration)), StringEntry(keyFactoryAddress(), factoryAddress), StringEntry(keyConfig(), ("%s__" + wxAssetIdStr))] | |
170 | 161 | else throw("Strict value is not equal to itself.") | |
171 | 162 | } | |
172 | 163 | ||
173 | 164 | ||
174 | 165 | ||
175 | 166 | @Callable(i) | |
176 | 167 | func constructorV2 (votingVerifiedContractPrm) = { | |
177 | 168 | let checkCaller = mustManager(i) | |
178 | 169 | if ((checkCaller == checkCaller)) | |
179 | 170 | then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit) | |
180 | 171 | else throw("Strict value is not equal to itself.") | |
181 | 172 | } | |
182 | 173 | ||
183 | 174 | ||
184 | 175 | ||
185 | 176 | @Callable(i) | |
186 | 177 | func emit (amount) = if ((0 >= amount)) | |
187 | 178 | then $Tuple2(nil, nil) | |
188 | 179 | else { | |
189 | 180 | let factoryContract = readFactoryAddressOrFail() | |
190 | 181 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
191 | 182 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
192 | 183 | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
193 | 184 | let caller = i.caller | |
194 | 185 | if (if ((caller != stakingContract)) | |
195 | 186 | then (caller != gwxRewardsContract) | |
196 | 187 | else false) | |
197 | 188 | then throwErr("permissions denied") | |
198 | 189 | else { | |
199 | 190 | let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1] | |
200 | 191 | let wxAssetId = fromBase58String(wxAssetIdStr) | |
201 | 192 | $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId]) | |
202 | 193 | } | |
203 | 194 | } | |
204 | 195 | ||
205 | 196 | ||
206 | 197 | ||
207 | 198 | @Callable(i) | |
208 | 199 | func burn () = { | |
209 | 200 | let factoryContract = readFactoryAddressOrFail() | |
210 | 201 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
211 | 202 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
212 | 203 | if ((size(i.payments) != 1)) | |
213 | 204 | then throwErr("exact one payment is allowed") | |
214 | 205 | else { | |
215 | 206 | let pmt = i.payments[0] | |
216 | 207 | let assetId = value(pmt.assetId) | |
217 | 208 | let pmtAmount = pmt.amount | |
218 | 209 | let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1]) | |
219 | 210 | if ((assetId != wxAssetId)) | |
220 | 211 | then throwErr("invalid wxAssetId is passed") | |
221 | 212 | else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller))) | |
222 | 213 | then throwErr("permissions denied") | |
223 | 214 | else [Burn(assetId, pmtAmount), StringEntry(("%s%s%s__history__burn__" + toBase58String(i.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(pmtAmount)], SEP))] | |
224 | 215 | } | |
225 | 216 | } | |
226 | 217 | ||
227 | 218 | ||
228 | 219 | ||
229 | 220 | @Callable(i) | |
230 | - | func gwxHoldersRewardUpdate () = { | |
231 | - | let factoryContract = readFactoryAddressOrFail() | |
232 | - | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
233 | - | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
234 | - | let checkCaller = if ((i.caller == gwxRewardsContract)) | |
235 | - | then true | |
236 | - | else mustManager(i) | |
237 | - | if ((checkCaller == checkCaller)) | |
238 | - | then { | |
239 | - | let gwxHolderRewardCurrent = valueOrElse(getInteger(keyGwxHoldersRewardCurrent()), 0) | |
240 | - | let gwxHolderRewardNext = valueOrElse(getInteger(keyGwxHoldersRewardNext()), gwxHolderRewardCurrent) | |
241 | - | let shouldBeUpdated = (gwxHolderRewardCurrent != gwxHolderRewardNext) | |
242 | - | let actions = if (shouldBeUpdated) | |
243 | - | then [IntegerEntry(keyGwxHoldersRewardCurrent(), gwxHolderRewardNext), DeleteEntry(keyGwxHoldersRewardNext())] | |
244 | - | else nil | |
245 | - | $Tuple2(actions, shouldBeUpdated) | |
246 | - | } | |
247 | - | else throw("Strict value is not equal to itself.") | |
248 | - | } | |
249 | - | ||
250 | - | ||
251 | - | ||
252 | - | @Callable(i) | |
253 | 221 | func setManager (pendingManagerPublicKey) = { | |
254 | 222 | let checkCaller = mustManager(i) | |
255 | 223 | if ((checkCaller == checkCaller)) | |
256 | 224 | then { | |
257 | 225 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
258 | 226 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
259 | 227 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
260 | 228 | else throw("Strict value is not equal to itself.") | |
261 | 229 | } | |
262 | 230 | else throw("Strict value is not equal to itself.") | |
263 | 231 | } | |
264 | 232 | ||
265 | 233 | ||
266 | 234 | ||
267 | 235 | @Callable(i) | |
268 | 236 | func confirmManager () = { | |
269 | 237 | let pm = pendingManagerPublicKeyOrUnit() | |
270 | 238 | let hasPM = if (isDefined(pm)) | |
271 | 239 | then true | |
272 | 240 | else throwErr("No pending manager") | |
273 | 241 | if ((hasPM == hasPM)) | |
274 | 242 | then { | |
275 | 243 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
276 | 244 | then true | |
277 | 245 | else throwErr("You are not pending manager") | |
278 | 246 | if ((checkPM == checkPM)) | |
279 | 247 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
280 | 248 | else throw("Strict value is not equal to itself.") | |
281 | 249 | } | |
282 | 250 | else throw("Strict value is not equal to itself.") | |
283 | 251 | } | |
284 | 252 | ||
285 | 253 | ||
286 | 254 | ||
287 | 255 | @Callable(i) | |
288 | 256 | func getBoostCoeffREADONLY () = $Tuple2(nil, boostCoeff) | |
289 | 257 | ||
290 | 258 | ||
291 | 259 | @Verifier(tx) | |
292 | 260 | func verify () = { | |
293 | 261 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
294 | 262 | case pk: ByteVector => | |
295 | 263 | pk | |
296 | 264 | case _: Unit => | |
297 | 265 | tx.senderPublicKey | |
298 | 266 | case _ => | |
299 | 267 | throw("Match error") | |
300 | 268 | } | |
301 | 269 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
302 | 270 | } | |
303 | 271 |
github/deemru/w8io/026f985 37.12 ms ◑