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