tx · A6FhHvWGiBRoZ9iSu8e61aMxarkuYPJDY3cHMhzXaESN

3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H:  -0.01400000 Waves

2023.05.04 13:10 [2562876] smart account 3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H > SELF 0.00000000 Waves

{ "type": 13, "id": "A6FhHvWGiBRoZ9iSu8e61aMxarkuYPJDY3cHMhzXaESN", "fee": 1400000, "feeAssetId": null, "timestamp": 1683195035117, "version": 2, "chainId": 84, "sender": "3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H", "senderPublicKey": "8pvajz9uNGrmuTHSzjyYc4LZJ6VkqBjwmS7HCWKsZk67", "proofs": [ "52rx1zZdSEahejZougkowo5V1qYn8y8m4Wb964DN5UbCcapXmnFyMBaVNSyFAjfSZj7a5zg8Um1ZfNVi9NEfqM7S" ], "script": "base64:AAIFAAAAAAAAACIIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAAAAALwAAAAADU0VQAgAAAAJfXwEAAAAHd3JhcEVycgAAAAEAAAADbXNnCQAEuQAAAAIJAARMAAAAAgIAAAAOZW1pc3Npb24ucmlkZToJAARMAAAAAgkABCUAAAABBQAAAAR0aGlzCQAETAAAAAIFAAAAA21zZwUAAAADbmlsAgAAAAEgAQAAAAh0aHJvd0VycgAAAAEAAAADbXNnCQAAAgAAAAEJAQAAAAd3cmFwRXJyAAAAAQUAAAADbXNnAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQEAAAAHd3JhcEVycgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABFrZXlGYWN0b3J5QWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19f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cm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleQgdbPA=", "height": 2562876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EjMZ4UQ9cDdqVM4odb9dMgPwfHs2qYMXZ9cvX95JFPBd Next: 7gAw8n94EQfmPdhReCNbmden3Xv464U18AwRPHBQ7UBi Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
6-func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
6+func wrapErr (msg) = makeString(["emission.ride:", toString(this), msg], " ")
7+
8+
9+func throwErr (msg) = throw(wrapErr(msg))
10+
11+
12+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((("mandatory this." + key) + " is not defined")))
713
814
915 func keyFactoryAddress () = "%s%s__config__factoryAddress"
97103 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
98104
99105
106+func keyBoostCoeff () = "%s__boostCoeff"
107+
108+
109+let boostCoeffDefault = 3
110+
111+let boostCoeff = valueOrElse(getInteger(this, keyBoostCoeff()), boostCoeffDefault)
112+
100113 func keyManagerPublicKey () = "%s__managerPublicKey"
101114
102115
124137
125138
126139 func mustManager (i) = {
127- let pd = throw("Permission denied")
140+ let pd = throwErr("Permission denied")
128141 match managerPublicKeyOrUnit() {
129142 case pk: ByteVector =>
130143 if ((i.callerPublicKey == pk))
172185 if (if ((caller != stakingContract))
173186 then (caller != gwxRewardsContract)
174187 else false)
175- then throw("permissions denied")
188+ then throwErr("permissions denied")
176189 else {
177190 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
178191 let wxAssetId = fromBase58String(wxAssetIdStr)
188201 let factoryCfg = readFactoryCfgOrFail(factoryContract)
189202 let boostingContract = getBoostingAddressOrFail(factoryCfg)
190203 if ((size(i.payments) != 1))
191- then throw("exact one payment is allowed")
204+ then throwErr("exact one payment is allowed")
192205 else {
193206 let pmt = i.payments[0]
194207 let assetId = value(pmt.assetId)
195208 let pmtAmount = pmt.amount
196209 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
197210 if ((assetId != wxAssetId))
198- then throw("invalid wxAssetId is passed")
211+ then throwErr("invalid wxAssetId is passed")
199212 else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller)))
200- then throw("permissions denied")
213+ then throwErr("permissions denied")
201214 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))]
202215 }
203216 }
224237 let pm = pendingManagerPublicKeyOrUnit()
225238 let hasPM = if (isDefined(pm))
226239 then true
227- else throw("No pending manager")
240+ else throwErr("No pending manager")
228241 if ((hasPM == hasPM))
229242 then {
230243 let checkPM = if ((i.callerPublicKey == value(pm)))
231244 then true
232- else throw("You are not pending manager")
245+ else throwErr("You are not pending manager")
233246 if ((checkPM == checkPM))
234247 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
235248 else throw("Strict value is not equal to itself.")
236249 }
237250 else throw("Strict value is not equal to itself.")
238251 }
252+
253+
254+
255+@Callable(i)
256+func getBoostCoeffREADONLY () = $Tuple2(nil, boostCoeff)
239257
240258
241259 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
6-func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
6+func wrapErr (msg) = makeString(["emission.ride:", toString(this), msg], " ")
7+
8+
9+func throwErr (msg) = throw(wrapErr(msg))
10+
11+
12+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((("mandatory this." + key) + " is not defined")))
713
814
915 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1016
1117
1218 let keyVotingVerifiedContract = "%s%s__config__votingVerifiedContract"
1319
1420 let keyVotingEmissionCandidateContract = "%s%s__config__votingEmissionCandidateContract"
1521
1622 let keyUserPoolsContract = "%s%s__config__userPoolsContract"
1723
1824 let votingVerifiedContract = addressFromStringValue(getStringOrFail(this, keyVotingVerifiedContract))
1925
2026 let votingEmissionCandidateContract = addressFromStringValue(getStringOrFail(this, keyVotingEmissionCandidateContract))
2127
2228 let userPoolsContract = addressFromStringValue(getStringOrFail(this, keyUserPoolsContract))
2329
2430 let IdxFactoryCfgStakingDapp = 1
2531
2632 let IdxFactoryCfgBoostingDapp = 2
2733
2834 let IdxFactoryCfgIdoDapp = 3
2935
3036 let IdxFactoryCfgTeamDapp = 4
3137
3238 let IdxFactoryCfgEmissionDapp = 5
3339
3440 let IdxFactoryCfgRestDapp = 6
3541
3642 let IdxFactoryCfgSlippageDapp = 7
3743
3844 let IdxFactoryCfgGwxRewardDapp = 10
3945
4046 func keyFactoryCfg () = "%s__factoryConfig"
4147
4248
4349 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
4450
4551
4652 func keyFactoryLpList () = "%s__lpTokensList"
4753
4854
4955 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
5056
5157
5258 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
5359
5460
5561 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
5662
5763
5864 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
5965
6066
6167 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
6268
6369
6470 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
6571
6672
6773 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
6874
6975
7076 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
7177
7278
7379 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
7480
7581
7682 func keyConfig () = "%s__config"
7783
7884
7985 func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
8086
8187
8288 func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
8389
8490
8591 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
8692
8793
8894 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
8995
9096
9197 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
9298
9399
94100 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
95101
96102
97103 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
98104
99105
106+func keyBoostCoeff () = "%s__boostCoeff"
107+
108+
109+let boostCoeffDefault = 3
110+
111+let boostCoeff = valueOrElse(getInteger(this, keyBoostCoeff()), boostCoeffDefault)
112+
100113 func keyManagerPublicKey () = "%s__managerPublicKey"
101114
102115
103116 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
104117
105118
106119 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
107120 case s: String =>
108121 fromBase58String(s)
109122 case _: Unit =>
110123 unit
111124 case _ =>
112125 throw("Match error")
113126 }
114127
115128
116129 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
117130 case s: String =>
118131 fromBase58String(s)
119132 case _: Unit =>
120133 unit
121134 case _ =>
122135 throw("Match error")
123136 }
124137
125138
126139 func mustManager (i) = {
127- let pd = throw("Permission denied")
140+ let pd = throwErr("Permission denied")
128141 match managerPublicKeyOrUnit() {
129142 case pk: ByteVector =>
130143 if ((i.callerPublicKey == pk))
131144 then true
132145 else pd
133146 case _: Unit =>
134147 if ((i.caller == this))
135148 then true
136149 else pd
137150 case _ =>
138151 throw("Match error")
139152 }
140153 }
141154
142155
143156 @Callable(i)
144157 func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = {
145158 let checkCaller = mustManager(i)
146159 if ((checkCaller == checkCaller))
147160 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))]
148161 else throw("Strict value is not equal to itself.")
149162 }
150163
151164
152165
153166 @Callable(i)
154167 func constructorV2 (votingVerifiedContractPrm) = {
155168 let checkCaller = mustManager(i)
156169 if ((checkCaller == checkCaller))
157170 then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit)
158171 else throw("Strict value is not equal to itself.")
159172 }
160173
161174
162175
163176 @Callable(i)
164177 func emit (amount) = if ((0 >= amount))
165178 then $Tuple2(nil, nil)
166179 else {
167180 let factoryContract = readFactoryAddressOrFail()
168181 let factoryCfg = readFactoryCfgOrFail(factoryContract)
169182 let stakingContract = getStakingAddressOrFail(factoryCfg)
170183 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
171184 let caller = i.caller
172185 if (if ((caller != stakingContract))
173186 then (caller != gwxRewardsContract)
174187 else false)
175- then throw("permissions denied")
188+ then throwErr("permissions denied")
176189 else {
177190 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
178191 let wxAssetId = fromBase58String(wxAssetIdStr)
179192 $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId])
180193 }
181194 }
182195
183196
184197
185198 @Callable(i)
186199 func burn () = {
187200 let factoryContract = readFactoryAddressOrFail()
188201 let factoryCfg = readFactoryCfgOrFail(factoryContract)
189202 let boostingContract = getBoostingAddressOrFail(factoryCfg)
190203 if ((size(i.payments) != 1))
191- then throw("exact one payment is allowed")
204+ then throwErr("exact one payment is allowed")
192205 else {
193206 let pmt = i.payments[0]
194207 let assetId = value(pmt.assetId)
195208 let pmtAmount = pmt.amount
196209 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
197210 if ((assetId != wxAssetId))
198- then throw("invalid wxAssetId is passed")
211+ then throwErr("invalid wxAssetId is passed")
199212 else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller)))
200- then throw("permissions denied")
213+ then throwErr("permissions denied")
201214 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))]
202215 }
203216 }
204217
205218
206219
207220 @Callable(i)
208221 func setManager (pendingManagerPublicKey) = {
209222 let checkCaller = mustManager(i)
210223 if ((checkCaller == checkCaller))
211224 then {
212225 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
213226 if ((checkManagerPublicKey == checkManagerPublicKey))
214227 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
215228 else throw("Strict value is not equal to itself.")
216229 }
217230 else throw("Strict value is not equal to itself.")
218231 }
219232
220233
221234
222235 @Callable(i)
223236 func confirmManager () = {
224237 let pm = pendingManagerPublicKeyOrUnit()
225238 let hasPM = if (isDefined(pm))
226239 then true
227- else throw("No pending manager")
240+ else throwErr("No pending manager")
228241 if ((hasPM == hasPM))
229242 then {
230243 let checkPM = if ((i.callerPublicKey == value(pm)))
231244 then true
232- else throw("You are not pending manager")
245+ else throwErr("You are not pending manager")
233246 if ((checkPM == checkPM))
234247 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
235248 else throw("Strict value is not equal to itself.")
236249 }
237250 else throw("Strict value is not equal to itself.")
238251 }
252+
253+
254+
255+@Callable(i)
256+func getBoostCoeffREADONLY () = $Tuple2(nil, boostCoeff)
239257
240258
241259 @Verifier(tx)
242260 func verify () = {
243261 let targetPublicKey = match managerPublicKeyOrUnit() {
244262 case pk: ByteVector =>
245263 pk
246264 case _: Unit =>
247265 tx.senderPublicKey
248266 case _ =>
249267 throw("Match error")
250268 }
251269 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
252270 }
253271

github/deemru/w8io/026f985 
46.79 ms