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:AAIFAAAAAAAABjgIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAIgNTRVAiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IhFrZXlGYWN0b3J5QWRkcmVzcyIZa2V5Vm90aW5nVmVyaWZpZWRDb250cmFjdCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIUa2V5VXNlclBvb2xzQ29udHJhY3QiFnZvdGluZ1ZlcmlmaWVkQ29udHJhY3QiH3ZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEXVzZXJQb29sc0NvbnRyYWN0IhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAiGUlkeEZhY3RvcnlDZmdFbWlzc2lvbkRhcHAiFUlkeEZhY3RvcnlDZmd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dGVzCQABkQAAAAIIBQAAAAJhSAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFK9qp44A==", "height": 2548400, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4okyA9gs8PXLfYhfdto5m9HMC1pvQetxUbfMY5H9S82o Next: 2r1pMMbvY2SayHU6Q9bLG2vvKAW8Nd8Et7pK4q1eeSgY Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
9191 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
9292
9393
94-func keyRatePerBlockNext () = "%s%s__ratePerBlock__next"
95-
96-
9794 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
9895
9996
112109 let boostCoeffDefault = 3
113110
114111 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-
121112
122113 func keyManagerPublicKey () = "%s__managerPublicKey"
123114
227218
228219
229220 @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)
253221 func setManager (pendingManagerPublicKey) = {
254222 let checkCaller = mustManager(i)
255223 if ((checkCaller == checkCaller))
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func wrapErr (msg) = makeString(["emission.ride:", toString(this), msg], " ")
77
88
99 func throwErr (msg) = throw(wrapErr(msg))
1010
1111
1212 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((("mandatory this." + key) + " is not defined")))
1313
1414
1515 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1616
1717
1818 let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
1919
2020 let keyVotingEmissionCandidateContract = "%s%s__config__votingEmissionCandidateContract"
2121
2222 let keyUserPoolsContract = "%s%s__config__userPoolsContract"
2323
2424 let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
2525
2626 let votingEmissionCandidateContract = addressFromStringValue(getStringOrFail(this, keyVotingEmissionCandidateContract))
2727
2828 let userPoolsContract = addressFromStringValue(getStringOrFail(this, keyUserPoolsContract))
2929
3030 let IdxFactoryCfgStakingDapp = 1
3131
3232 let IdxFactoryCfgBoostingDapp = 2
3333
3434 let IdxFactoryCfgIdoDapp = 3
3535
3636 let IdxFactoryCfgTeamDapp = 4
3737
3838 let IdxFactoryCfgEmissionDapp = 5
3939
4040 let IdxFactoryCfgRestDapp = 6
4141
4242 let IdxFactoryCfgSlippageDapp = 7
4343
4444 let IdxFactoryCfgGwxRewardDapp = 10
4545
4646 func keyFactoryCfg () = "%s__factoryConfig"
4747
4848
4949 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5050
5151
5252 func keyFactoryLpList () = "%s__lpTokensList"
5353
5454
5555 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5656
5757
5858 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
5959
6060
6161 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
6262
6363
6464 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
6565
6666
6767 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
6868
6969
7070 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
7171
7272
7373 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
7474
7575
7676 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
7777
7878
7979 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
8080
8181
8282 func keyConfig () = "%s__config"
8383
8484
8585 func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
8686
8787
8888 func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
8989
9090
9191 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
9292
9393
94-func keyRatePerBlockNext () = "%s%s__ratePerBlock__next"
95-
96-
9794 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
9895
9996
10097 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
10198
10299
103100 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
104101
105102
106103 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
107104
108105
109106 func keyBoostCoeff () = "%s__boostCoeff"
110107
111108
112109 let boostCoeffDefault = 3
113110
114111 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-
121112
122113 func keyManagerPublicKey () = "%s__managerPublicKey"
123114
124115
125116 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
126117
127118
128119 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
129120 case s: String =>
130121 fromBase58String(s)
131122 case _: Unit =>
132123 unit
133124 case _ =>
134125 throw("Match error")
135126 }
136127
137128
138129 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
139130 case s: String =>
140131 fromBase58String(s)
141132 case _: Unit =>
142133 unit
143134 case _ =>
144135 throw("Match error")
145136 }
146137
147138
148139 func mustManager (i) = {
149140 let pd = throwErr("Permission denied")
150141 match managerPublicKeyOrUnit() {
151142 case pk: ByteVector =>
152143 if ((i.callerPublicKey == pk))
153144 then true
154145 else pd
155146 case _: Unit =>
156147 if ((i.caller == this))
157148 then true
158149 else pd
159150 case _ =>
160151 throw("Match error")
161152 }
162153 }
163154
164155
165156 @Callable(i)
166157 func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = {
167158 let checkCaller = mustManager(i)
168159 if ((checkCaller == checkCaller))
169160 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))]
170161 else throw("Strict value is not equal to itself.")
171162 }
172163
173164
174165
175166 @Callable(i)
176167 func constructorV2 (votingVerifiedContractPrm) = {
177168 let checkCaller = mustManager(i)
178169 if ((checkCaller == checkCaller))
179170 then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
180171 else throw("Strict value is not equal to itself.")
181172 }
182173
183174
184175
185176 @Callable(i)
186177 func emit (amount) = if ((0 >= amount))
187178 then $Tuple2(nil, nil)
188179 else {
189180 let factoryContract = readFactoryAddressOrFail()
190181 let factoryCfg = readFactoryCfgOrFail(factoryContract)
191182 let stakingContract = getStakingAddressOrFail(factoryCfg)
192183 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
193184 let caller = i.caller
194185 if (if ((caller != stakingContract))
195186 then (caller != gwxRewardsContract)
196187 else false)
197188 then throwErr("permissions denied")
198189 else {
199190 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
200191 let wxAssetId = fromBase58String(wxAssetIdStr)
201192 $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId])
202193 }
203194 }
204195
205196
206197
207198 @Callable(i)
208199 func burn () = {
209200 let factoryContract = readFactoryAddressOrFail()
210201 let factoryCfg = readFactoryCfgOrFail(factoryContract)
211202 let boostingContract = getBoostingAddressOrFail(factoryCfg)
212203 if ((size(i.payments) != 1))
213204 then throwErr("exact one payment is allowed")
214205 else {
215206 let pmt = i.payments[0]
216207 let assetId = value(pmt.assetId)
217208 let pmtAmount = pmt.amount
218209 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
219210 if ((assetId != wxAssetId))
220211 then throwErr("invalid wxAssetId is passed")
221212 else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller)))
222213 then throwErr("permissions denied")
223214 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))]
224215 }
225216 }
226217
227218
228219
229220 @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)
253221 func setManager (pendingManagerPublicKey) = {
254222 let checkCaller = mustManager(i)
255223 if ((checkCaller == checkCaller))
256224 then {
257225 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
258226 if ((checkManagerPublicKey == checkManagerPublicKey))
259227 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
260228 else throw("Strict value is not equal to itself.")
261229 }
262230 else throw("Strict value is not equal to itself.")
263231 }
264232
265233
266234
267235 @Callable(i)
268236 func confirmManager () = {
269237 let pm = pendingManagerPublicKeyOrUnit()
270238 let hasPM = if (isDefined(pm))
271239 then true
272240 else throwErr("No pending manager")
273241 if ((hasPM == hasPM))
274242 then {
275243 let checkPM = if ((i.callerPublicKey == value(pm)))
276244 then true
277245 else throwErr("You are not pending manager")
278246 if ((checkPM == checkPM))
279247 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
280248 else throw("Strict value is not equal to itself.")
281249 }
282250 else throw("Strict value is not equal to itself.")
283251 }
284252
285253
286254
287255 @Callable(i)
288256 func getBoostCoeffREADONLY () = $Tuple2(nil, boostCoeff)
289257
290258
291259 @Verifier(tx)
292260 func verify () = {
293261 let targetPublicKey = match managerPublicKeyOrUnit() {
294262 case pk: ByteVector =>
295263 pk
296264 case _: Unit =>
297265 tx.senderPublicKey
298266 case _ =>
299267 throw("Match error")
300268 }
301269 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
302270 }
303271

github/deemru/w8io/026f985 
37.12 ms