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