tx · 7A5u8p8xKPJ1cD8oHe5VmfWhFYW1wU213LEv7ycbEKrC 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01300000 Waves 2023.03.27 18:11 [2508531] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "7A5u8p8xKPJ1cD8oHe5VmfWhFYW1wU213LEv7ycbEKrC", "fee": 1300000, "feeAssetId": null, "timestamp": 1679929943034, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "4VgebUhevVNc6wcWJCirhNJxxJS4UCq1TnvAL49vsZw8kWd679pzHSptj1UEjaH2hd8SwpoBW3guqMxJY6coksDQ" ], "script": "base64:AAIFAAAAAAAABjgIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAIgNTRVAiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IhFrZXlGYWN0b3J5QWRkcmVzcyIZa2V5Vm90aW5nVmVyaWZpZWRDb250cmFjdCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIUa2V5VXNlclBvb2xzQ29udHJhY3QiFnZvdGluZ1ZlcmlmaWVkQ29udHJhY3QiH3ZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEXVzZXJQb29sc0NvbnRyYWN0IhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAiGUlkeEZhY3RvcnlDZmdFbWlzc2lvbkRhcHAiFUlkeEZhY3RvcnlDZmdSZXN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CQABkQAAAAIIBQAAAAJhSAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFK9qp44A==", "height": 2508531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9LX9TmfgFMvNdxpdNuFmF1cnHUb3bVbQmBTqccJWMyWe Next: 4M8AEUuhVe2LGh2AJayJAGKCnMvfzgTKfU11XeJZbQcC 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" | |
131 | 137 | ||
132 | 138 | ||
133 | 139 | func mustManager (i) = { | |
134 | - | let pd = | |
140 | + | let pd = throwErr("Permission denied") | |
135 | 141 | match managerPublicKeyOrUnit() { | |
136 | 142 | case pk: ByteVector => | |
137 | 143 | if ((i.callerPublicKey == pk)) | |
179 | 185 | if (if ((caller != stakingContract)) | |
180 | 186 | then (caller != gwxRewardsContract) | |
181 | 187 | else false) | |
182 | - | then | |
188 | + | then throwErr("permissions denied") | |
183 | 189 | else { | |
184 | 190 | let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1] | |
185 | 191 | let wxAssetId = fromBase58String(wxAssetIdStr) | |
195 | 201 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
196 | 202 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
197 | 203 | if ((size(i.payments) != 1)) | |
198 | - | then | |
204 | + | then throwErr("exact one payment is allowed") | |
199 | 205 | else { | |
200 | 206 | let pmt = i.payments[0] | |
201 | 207 | let assetId = value(pmt.assetId) | |
202 | 208 | let pmtAmount = pmt.amount | |
203 | 209 | let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1]) | |
204 | 210 | if ((assetId != wxAssetId)) | |
205 | - | then | |
211 | + | then throwErr("invalid wxAssetId is passed") | |
206 | 212 | else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller))) | |
207 | - | then | |
213 | + | then throwErr("permissions denied") | |
208 | 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))] | |
209 | 215 | } | |
210 | 216 | } | |
231 | 237 | let pm = pendingManagerPublicKeyOrUnit() | |
232 | 238 | let hasPM = if (isDefined(pm)) | |
233 | 239 | then true | |
234 | - | else | |
240 | + | else throwErr("No pending manager") | |
235 | 241 | if ((hasPM == hasPM)) | |
236 | 242 | then { | |
237 | 243 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
238 | 244 | then true | |
239 | - | else | |
245 | + | else throwErr("You are not pending manager") | |
240 | 246 | if ((checkPM == checkPM)) | |
241 | 247 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
242 | 248 | else throw("Strict value is not equal to itself.") |
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 | ||
100 | 106 | func keyBoostCoeff () = "%s__boostCoeff" | |
101 | 107 | ||
102 | 108 | ||
103 | 109 | let boostCoeffDefault = 3 | |
104 | 110 | ||
105 | 111 | let boostCoeff = valueOrElse(getInteger(this, keyBoostCoeff()), boostCoeffDefault) | |
106 | 112 | ||
107 | 113 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
108 | 114 | ||
109 | 115 | ||
110 | 116 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
111 | 117 | ||
112 | 118 | ||
113 | 119 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
114 | 120 | case s: String => | |
115 | 121 | fromBase58String(s) | |
116 | 122 | case _: Unit => | |
117 | 123 | unit | |
118 | 124 | case _ => | |
119 | 125 | throw("Match error") | |
120 | 126 | } | |
121 | 127 | ||
122 | 128 | ||
123 | 129 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
124 | 130 | case s: String => | |
125 | 131 | fromBase58String(s) | |
126 | 132 | case _: Unit => | |
127 | 133 | unit | |
128 | 134 | case _ => | |
129 | 135 | throw("Match error") | |
130 | 136 | } | |
131 | 137 | ||
132 | 138 | ||
133 | 139 | func mustManager (i) = { | |
134 | - | let pd = | |
140 | + | let pd = throwErr("Permission denied") | |
135 | 141 | match managerPublicKeyOrUnit() { | |
136 | 142 | case pk: ByteVector => | |
137 | 143 | if ((i.callerPublicKey == pk)) | |
138 | 144 | then true | |
139 | 145 | else pd | |
140 | 146 | case _: Unit => | |
141 | 147 | if ((i.caller == this)) | |
142 | 148 | then true | |
143 | 149 | else pd | |
144 | 150 | case _ => | |
145 | 151 | throw("Match error") | |
146 | 152 | } | |
147 | 153 | } | |
148 | 154 | ||
149 | 155 | ||
150 | 156 | @Callable(i) | |
151 | 157 | func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = { | |
152 | 158 | let checkCaller = mustManager(i) | |
153 | 159 | if ((checkCaller == checkCaller)) | |
154 | 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))] | |
155 | 161 | else throw("Strict value is not equal to itself.") | |
156 | 162 | } | |
157 | 163 | ||
158 | 164 | ||
159 | 165 | ||
160 | 166 | @Callable(i) | |
161 | 167 | func constructorV2 (votingVerifiedContractPrm) = { | |
162 | 168 | let checkCaller = mustManager(i) | |
163 | 169 | if ((checkCaller == checkCaller)) | |
164 | 170 | then $Tuple2([StringEntry(keyVotingVerifiedContract, votingVerifiedContractPrm)], unit) | |
165 | 171 | else throw("Strict value is not equal to itself.") | |
166 | 172 | } | |
167 | 173 | ||
168 | 174 | ||
169 | 175 | ||
170 | 176 | @Callable(i) | |
171 | 177 | func emit (amount) = if ((0 >= amount)) | |
172 | 178 | then $Tuple2(nil, nil) | |
173 | 179 | else { | |
174 | 180 | let factoryContract = readFactoryAddressOrFail() | |
175 | 181 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
176 | 182 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
177 | 183 | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
178 | 184 | let caller = i.caller | |
179 | 185 | if (if ((caller != stakingContract)) | |
180 | 186 | then (caller != gwxRewardsContract) | |
181 | 187 | else false) | |
182 | - | then | |
188 | + | then throwErr("permissions denied") | |
183 | 189 | else { | |
184 | 190 | let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1] | |
185 | 191 | let wxAssetId = fromBase58String(wxAssetIdStr) | |
186 | 192 | $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId]) | |
187 | 193 | } | |
188 | 194 | } | |
189 | 195 | ||
190 | 196 | ||
191 | 197 | ||
192 | 198 | @Callable(i) | |
193 | 199 | func burn () = { | |
194 | 200 | let factoryContract = readFactoryAddressOrFail() | |
195 | 201 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
196 | 202 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
197 | 203 | if ((size(i.payments) != 1)) | |
198 | - | then | |
204 | + | then throwErr("exact one payment is allowed") | |
199 | 205 | else { | |
200 | 206 | let pmt = i.payments[0] | |
201 | 207 | let assetId = value(pmt.assetId) | |
202 | 208 | let pmtAmount = pmt.amount | |
203 | 209 | let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1]) | |
204 | 210 | if ((assetId != wxAssetId)) | |
205 | - | then | |
211 | + | then throwErr("invalid wxAssetId is passed") | |
206 | 212 | else if (!(containsElement([boostingContract, votingVerifiedContract, votingEmissionCandidateContract, userPoolsContract], i.caller))) | |
207 | - | then | |
213 | + | then throwErr("permissions denied") | |
208 | 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))] | |
209 | 215 | } | |
210 | 216 | } | |
211 | 217 | ||
212 | 218 | ||
213 | 219 | ||
214 | 220 | @Callable(i) | |
215 | 221 | func setManager (pendingManagerPublicKey) = { | |
216 | 222 | let checkCaller = mustManager(i) | |
217 | 223 | if ((checkCaller == checkCaller)) | |
218 | 224 | then { | |
219 | 225 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
220 | 226 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
221 | 227 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
222 | 228 | else throw("Strict value is not equal to itself.") | |
223 | 229 | } | |
224 | 230 | else throw("Strict value is not equal to itself.") | |
225 | 231 | } | |
226 | 232 | ||
227 | 233 | ||
228 | 234 | ||
229 | 235 | @Callable(i) | |
230 | 236 | func confirmManager () = { | |
231 | 237 | let pm = pendingManagerPublicKeyOrUnit() | |
232 | 238 | let hasPM = if (isDefined(pm)) | |
233 | 239 | then true | |
234 | - | else | |
240 | + | else throwErr("No pending manager") | |
235 | 241 | if ((hasPM == hasPM)) | |
236 | 242 | then { | |
237 | 243 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
238 | 244 | then true | |
239 | - | else | |
245 | + | else throwErr("You are not pending manager") | |
240 | 246 | if ((checkPM == checkPM)) | |
241 | 247 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
242 | 248 | else throw("Strict value is not equal to itself.") | |
243 | 249 | } | |
244 | 250 | else throw("Strict value is not equal to itself.") | |
245 | 251 | } | |
246 | 252 | ||
247 | 253 | ||
248 | 254 | ||
249 | 255 | @Callable(i) | |
250 | 256 | func getBoostCoeffREADONLY () = $Tuple2(nil, boostCoeff) | |
251 | 257 | ||
252 | 258 | ||
253 | 259 | @Verifier(tx) | |
254 | 260 | func verify () = { | |
255 | 261 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
256 | 262 | case pk: ByteVector => | |
257 | 263 | pk | |
258 | 264 | case _: Unit => | |
259 | 265 | tx.senderPublicKey | |
260 | 266 | case _ => | |
261 | 267 | throw("Match error") | |
262 | 268 | } | |
263 | 269 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
264 | 270 | } | |
265 | 271 |
github/deemru/w8io/026f985 36.42 ms ◑