tx · 7W58ExSwMiaKxKHAHt3gaJf3UaCtFdzuYNexDujfTNvi

3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA:  -0.01400000 Waves

2022.05.11 11:47 [2046775] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves

{ "type": 13, "id": "7W58ExSwMiaKxKHAHt3gaJf3UaCtFdzuYNexDujfTNvi", "fee": 1400000, "feeAssetId": null, "timestamp": 1652258894910, "version": 1, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "4PRgbd9emsE53mMT6xZjuusbkCLP98wHepZRaEbrVmYS6eo5j59hGmUSjqgKSU3FToFJSqdGX5FeaJf6HeQjYjqj" ], "script": "base64:AAIFAAAAAAAAACAIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSAAAAACgAAAAAA1NFUAIAAAACX18BAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABFrZXlGYWN0b3J5QWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fZmFjdG9yeUFkZHJlc3MAAAAAGWtleVZvdGluZ1ZlcmlmaWVkQ29udHJhY3QCAAAAJCVzJXNfX2NvbmZpZ19fdm90aW5nVmVyaWZpZWRDb250cmFjdAAAAAAia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdAIAAAAtJXMlc19fY29uZmlnX192b3RpbmdFbWlzc2lvbkNhbmRpZGF0ZUNvbnRyYWN0AA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AAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5LJjHGA==", "chainId": 84, "height": 2046775, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CzxjTAPjUHpug2GKuFdA3ZrRWEoXQ7ZGouWJCXNaLYoC Next: J56AUVLsHq1Hy5bvgbRZpuckeZrFpV2dkfW7yvKeY7G6 Diff:
OldNewDifferences
1111
1212 let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
1313
14+let keyVotingEmissionCandidateContract = "%s%s__config__votingEmissionCandidateContract"
15+
1416 let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
17+
18+let votingEmissionCandidateContract = addressFromStringValue(getStringOrFail(this, keyVotingEmissionCandidateContract))
1519
1620 let IdxFactoryCfgStakingDapp = 1
1721
143147
144148
145149 @Callable(i)
146-func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
150+func constructorV2 (votingVerifiedContractPrm) = {
151+ let checkCaller = mustManager(i)
152+ if ((checkCaller == checkCaller))
153+ then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
154+ else throw("Strict value is not equal to itself.")
155+ }
147156
148157
149158
183192 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
184193 if ((assetId != wxAssetId))
185194 then throw("invalid wxAssetId is passed")
186- else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller)))
195+ else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract], i.caller)))
187196 then throw("permissions denied")
188197 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))]
189198 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
77
88
99 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1010
1111
1212 let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
1313
14+let keyVotingEmissionCandidateContract = "%s%s__config__votingEmissionCandidateContract"
15+
1416 let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
17+
18+let votingEmissionCandidateContract = addressFromStringValue(getStringOrFail(this, keyVotingEmissionCandidateContract))
1519
1620 let IdxFactoryCfgStakingDapp = 1
1721
1822 let IdxFactoryCfgBoostingDapp = 2
1923
2024 let IdxFactoryCfgIdoDapp = 3
2125
2226 let IdxFactoryCfgTeamDapp = 4
2327
2428 let IdxFactoryCfgEmissionDapp = 5
2529
2630 let IdxFactoryCfgRestDapp = 6
2731
2832 let IdxFactoryCfgSlippageDapp = 7
2933
3034 let IdxFactoryCfgGwxRewardDapp = 10
3135
3236 func keyFactoryCfg () = "%s__factoryConfig"
3337
3438
3539 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
3640
3741
3842 func keyFactoryLpList () = "%s__lpTokensList"
3943
4044
4145 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
4246
4347
4448 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
4549
4650
4751 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
4852
4953
5054 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
5155
5256
5357 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
5458
5559
5660 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
5761
5862
5963 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
6064
6165
6266 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
6367
6468
6569 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
6670
6771
6872 func keyConfig () = "%s__config"
6973
7074
7175 func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
7276
7377
7478 func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
7579
7680
7781 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
7882
7983
8084 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
8185
8286
8387 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
8488
8589
8690 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
8791
8892
8993 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
9094
9195
9296 func keyManagerPublicKey () = "%s__managerPublicKey"
9397
9498
9599 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
96100
97101
98102 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
99103 case s: String =>
100104 fromBase58String(s)
101105 case _: Unit =>
102106 unit
103107 case _ =>
104108 throw("Match error")
105109 }
106110
107111
108112 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
109113 case s: String =>
110114 fromBase58String(s)
111115 case _: Unit =>
112116 unit
113117 case _ =>
114118 throw("Match error")
115119 }
116120
117121
118122 func mustManager (i) = {
119123 let pd = throw("Permission denied")
120124 match managerPublicKeyOrUnit() {
121125 case pk: ByteVector =>
122126 if ((i.callerPublicKey == pk))
123127 then true
124128 else pd
125129 case _: Unit =>
126130 if ((i.caller == this))
127131 then true
128132 else pd
129133 case _ =>
130134 throw("Match error")
131135 }
132136 }
133137
134138
135139 @Callable(i)
136140 func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = {
137141 let checkCaller = mustManager(i)
138142 if ((checkCaller == checkCaller))
139143 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))]
140144 else throw("Strict value is not equal to itself.")
141145 }
142146
143147
144148
145149 @Callable(i)
146-func constructorV2 (votingVerifiedContractPrm) = $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
150+func constructorV2 (votingVerifiedContractPrm) = {
151+ let checkCaller = mustManager(i)
152+ if ((checkCaller == checkCaller))
153+ then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
154+ else throw("Strict value is not equal to itself.")
155+ }
147156
148157
149158
150159 @Callable(i)
151160 func emit (amount) = if ((0 >= amount))
152161 then $Tuple2(nil, nil)
153162 else {
154163 let factoryContract = readFactoryAddressOrFail()
155164 let factoryCfg = readFactoryCfgOrFail(factoryContract)
156165 let stakingContract = getStakingAddressOrFail(factoryCfg)
157166 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
158167 let caller = i.caller
159168 if (if ((caller != stakingContract))
160169 then (caller != gwxRewardsContract)
161170 else false)
162171 then throw("permissions denied")
163172 else {
164173 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
165174 let wxAssetId = fromBase58String(wxAssetIdStr)
166175 $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId])
167176 }
168177 }
169178
170179
171180
172181 @Callable(i)
173182 func burn () = {
174183 let factoryContract = readFactoryAddressOrFail()
175184 let factoryCfg = readFactoryCfgOrFail(factoryContract)
176185 let boostingContract = getBoostingAddressOrFail(factoryCfg)
177186 if ((size(i.payments) != 1))
178187 then throw("exact one payment is allowed")
179188 else {
180189 let pmt = i.payments[0]
181190 let assetId = value(pmt.assetId)
182191 let pmtAmount = pmt.amount
183192 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
184193 if ((assetId != wxAssetId))
185194 then throw("invalid wxAssetId is passed")
186- else if (!(containsElement([boostingContract, votingVerifiedContract], i.caller)))
195+ else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract], i.caller)))
187196 then throw("permissions denied")
188197 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))]
189198 }
190199 }
191200
192201
193202
194203 @Callable(i)
195204 func setManager (pendingManagerPublicKey) = {
196205 let checkCaller = mustManager(i)
197206 if ((checkCaller == checkCaller))
198207 then {
199208 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
200209 if ((checkManagerPublicKey == checkManagerPublicKey))
201210 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
202211 else throw("Strict value is not equal to itself.")
203212 }
204213 else throw("Strict value is not equal to itself.")
205214 }
206215
207216
208217
209218 @Callable(i)
210219 func confirmManager () = {
211220 let pm = pendingManagerPublicKeyOrUnit()
212221 let hasPM = if (isDefined(pm))
213222 then true
214223 else throw("No pending manager")
215224 if ((hasPM == hasPM))
216225 then {
217226 let checkPM = if ((i.callerPublicKey == value(pm)))
218227 then true
219228 else throw("You are not pending manager")
220229 if ((checkPM == checkPM))
221230 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
222231 else throw("Strict value is not equal to itself.")
223232 }
224233 else throw("Strict value is not equal to itself.")
225234 }
226235
227236
228237 @Verifier(tx)
229238 func verify () = {
230239 let targetPublicKey = match managerPublicKeyOrUnit() {
231240 case pk: ByteVector =>
232241 pk
233242 case _: Unit =>
234243 tx.senderPublicKey
235244 case _ =>
236245 throw("Match error")
237246 }
238247 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
239248 }
240249

github/deemru/w8io/fabc49c 
36.50 ms