tx · CLwmJoY6vTjNHUwb9YLPhbo8nCNt5tEgk4VxYgica2ia 3NA7tfU3Yk1ybkxQtbWTbpjKUVkbBJ5J578: -0.01800000 Waves 2023.07.03 12:27 [2649548] smart account 3NA7tfU3Yk1ybkxQtbWTbpjKUVkbBJ5J578 > SELF 0.00000000 Waves
{ "type": 13, "id": "CLwmJoY6vTjNHUwb9YLPhbo8nCNt5tEgk4VxYgica2ia", "fee": 1800000, "feeAssetId": null, "timestamp": 1688376402413, "version": 2, "chainId": 84, "sender": "3NA7tfU3Yk1ybkxQtbWTbpjKUVkbBJ5J578", "senderPublicKey": "GuyzrvLfyReVDFedCM3ck59ubJ8aLwfmyYWu4Wz5ka2C", "proofs": [ "3HYmtcR2P2QP4Vg5Ff3iMLL7oFJXtDnhbJgcTmkAaMJPTmzS2S1rPYtxRfbCorueXq5iW8kkZi8P9U4ZqW5YYV7x" ], "script": "base64:BgJcCAISBgoECAgICBIJCgcICAgICAgIEgUKAwEIARIGCgQBCAgBEgQKAgEIEgMKAQgSBAoCAQQSAwoBCBIFCgMBCAESCwoJAQgIAQEBAQEEEgASABIDCgEIEgMKAQhAAAlTRVBBUkFUT1ICAl9fAAhLRVlfSU5JVAIESU5JVAAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAApLRVlfUEFVU0VEAgZQQVVTRUQACktFWV9QQVVTRVICBlBBVVNFUgAMS0VZX0VYRUNVVE9SAghFWEVDVVRPUgAQS0VZX1JPT1RfQURBUFRFUgIMUk9PVF9BREFQVEVSABNLRVlfQ0FMTEVSX0NPTlRSQUNUAg9DQUxMRVJfQ09OVFJBQ1QACUtFWV9DSEFJTgIFQ0hBSU4AC0tFWV9CSU5ESU5HAgdCSU5ESU5HAAdLRVlfRkVFAgNGRUUAEUtFWV9GRUVfUkVDSVBJRU5UAg1GRUVfUkVDSVBJRU5UABhLRVlfUkVGRVJSRVJfRkVFX1BFUkNFTlQCFFJFRkVSUkVSX0Z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wfRyLTXocqF Next: F2C6GwLaUYYm6oSUnquwjhh9ED7heReXEdRRczC6a2uM Diff:
Old | New | Differences | |
---|---|---|---|
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(i) | |
377 | - | func burnTokens (executionChainId_,recipient_, | |
377 | + | func burnTokens (executionChainId_,recipient_,gaslessReward_) = { | |
378 | 378 | let err = if (if (if (if (if (_whenInitialized()) | |
379 | 379 | then _whenNotPaused() | |
380 | 380 | else false) | |
496 | 496 | let err2 = _validateInt(amount, (fee + 1), MAX_INT, "burnTokensV2: fee more than amount") | |
497 | 497 | if ((err2 == err2)) | |
498 | 498 | then { | |
499 | - | let $ | |
499 | + | let $t01620116606 = if ((referrer_ != "")) | |
500 | 500 | then { | |
501 | 501 | let referrer = addressFromStringValue(referrer_) | |
502 | 502 | let referrerFeeAmount = fraction(_loadReferrerFeePercent(executionChainId_, referrer), fee, PERCENT_FACTOR) | |
503 | 503 | $Tuple2(referrerFeeAmount, [ScriptTransfer(referrer, referrerFeeAmount, assetId)]) | |
504 | 504 | } | |
505 | 505 | else $Tuple2(0, nil) | |
506 | - | let referrerFee = $ | |
507 | - | let referrerActions = $ | |
506 | + | let referrerFee = $t01620116606._1 | |
507 | + | let referrerActions = $t01620116606._2 | |
508 | 508 | let amountToSend = (amount - fee) | |
509 | 509 | let err3 = _validateInt(amountToSend, (gaslessReward_ + 1), MAX_INT, "burnTokensV2: reward more than amount") | |
510 | 510 | if ((err3 == err3)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEPARATOR = "__" | |
5 | 5 | ||
6 | 6 | let KEY_INIT = "INIT" | |
7 | 7 | ||
8 | 8 | let KEY_MULTISIG = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let KEY_STATUS = "STATUS" | |
11 | 11 | ||
12 | 12 | let KEY_PAUSED = "PAUSED" | |
13 | 13 | ||
14 | 14 | let KEY_PAUSER = "PAUSER" | |
15 | 15 | ||
16 | 16 | let KEY_EXECUTOR = "EXECUTOR" | |
17 | 17 | ||
18 | 18 | let KEY_ROOT_ADAPTER = "ROOT_ADAPTER" | |
19 | 19 | ||
20 | 20 | let KEY_CALLER_CONTRACT = "CALLER_CONTRACT" | |
21 | 21 | ||
22 | 22 | let KEY_CHAIN = "CHAIN" | |
23 | 23 | ||
24 | 24 | let KEY_BINDING = "BINDING" | |
25 | 25 | ||
26 | 26 | let KEY_FEE = "FEE" | |
27 | 27 | ||
28 | 28 | let KEY_FEE_RECIPIENT = "FEE_RECIPIENT" | |
29 | 29 | ||
30 | 30 | let KEY_REFERRER_FEE_PERCENT = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | 32 | let FUNC_RELEASE_TOKENS = "releaseTokens" | |
33 | 33 | ||
34 | 34 | let WAVES = "WAVES" | |
35 | 35 | ||
36 | 36 | let WAVES_DECIMALS = 8 | |
37 | 37 | ||
38 | 38 | let DECIMALS = 6 | |
39 | 39 | ||
40 | 40 | let PERCENT_FACTOR = 1000000 | |
41 | 41 | ||
42 | 42 | let MAX_REFERRER_FEE = 200000 | |
43 | 43 | ||
44 | 44 | let MAX_INT = 9223372036854775807 | |
45 | 45 | ||
46 | 46 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
47 | 47 | case a: Address => | |
48 | 48 | true | |
49 | 49 | case _ => | |
50 | 50 | throw(err_) | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func _validateAsset (assetId_,err_) = match assetInfo(fromBase58String(assetId_)) { | |
55 | 55 | case a: Asset => | |
56 | 56 | true | |
57 | 57 | case _ => | |
58 | 58 | throw(err_) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
63 | 63 | then true | |
64 | 64 | else (val_ > upperBoundary_)) | |
65 | 65 | then throw(err_) | |
66 | 66 | else true | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func _validateBool (val_,target_,err_) = if ((val_ != target_)) | |
70 | 70 | then throw(err_) | |
71 | 71 | else true | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_)) | |
75 | 75 | then throw(err_) | |
76 | 76 | else true | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func _validateReferrer (referrer_,err_) = if ((referrer_ != "")) | |
80 | 80 | then _validateAddress(referrer_, err_) | |
81 | 81 | else true | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func _normalizeDecimals (amount_,sourceDecimals_,targetDecimals_) = if ((sourceDecimals_ >= targetDecimals_)) | |
85 | 85 | then (amount_ / pow(10, 0, (sourceDecimals_ - targetDecimals_), 0, 0, DOWN)) | |
86 | 86 | else (amount_ * pow(10, 0, (targetDecimals_ - sourceDecimals_), 0, 0, DOWN)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func _loadInit () = match getBoolean(KEY_INIT) { | |
90 | 90 | case a: Boolean => | |
91 | 91 | a | |
92 | 92 | case _ => | |
93 | 93 | false | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)] | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func _loadPause () = match getBoolean(KEY_PAUSED) { | |
101 | 101 | case a: Boolean => | |
102 | 102 | a | |
103 | 103 | case _ => | |
104 | 104 | false | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)] | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func _loadPauser () = match getString(KEY_PAUSER) { | |
112 | 112 | case a: String => | |
113 | 113 | addressFromStringValue(a) | |
114 | 114 | case _ => | |
115 | 115 | Address(base58'') | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))] | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
123 | 123 | case a: String => | |
124 | 124 | addressFromStringValue(a) | |
125 | 125 | case _ => | |
126 | 126 | Address(base58'') | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func _loadExecutor () = match getString(KEY_EXECUTOR) { | |
134 | 134 | case a: String => | |
135 | 135 | addressFromStringValue(a) | |
136 | 136 | case _ => | |
137 | 137 | Address(base58'') | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func _saveExecutor (executor_) = [StringEntry(KEY_EXECUTOR, toString(executor_))] | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func _loadCallerContract () = match getString(KEY_CALLER_CONTRACT) { | |
145 | 145 | case a: String => | |
146 | 146 | a | |
147 | 147 | case _ => | |
148 | 148 | "" | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func _saveCallerContract (caller_) = [StringEntry(KEY_CALLER_CONTRACT, caller_)] | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func _loadChain (chainId_) = match getBoolean(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR)) { | |
156 | 156 | case a: Boolean => | |
157 | 157 | a | |
158 | 158 | case _ => | |
159 | 159 | false | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func _saveChain (chainId_,val_) = [BooleanEntry(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR), val_)] | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func _loadBinding (executionChainId_,assetId_) = match getString(makeString([KEY_BINDING, toString(executionChainId_), toBase58String(assetId_)], SEPARATOR)) { | |
167 | 167 | case a: String => | |
168 | 168 | let struct = split(a, SEPARATOR) | |
169 | 169 | $Tuple8(addressFromStringValue(struct[0]), struct[1], parseIntValue(struct[2]), parseIntValue(struct[3]), parseIntValue(struct[4]), parseIntValue(struct[5]), parseIntValue(struct[6]), if ((struct[7] == "1")) | |
170 | 170 | then true | |
171 | 171 | else false) | |
172 | 172 | case _ => | |
173 | 173 | $Tuple8(Address(base58''), "", 0, 0, 0, 0, 0, false) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func _saveBinding (executionChainId_,assetId_,binding_) = [StringEntry(makeString([KEY_BINDING, toString(executionChainId_), toBase58String(assetId_)], SEPARATOR), makeString([toString(binding_._1), binding_._2, toString(binding_._3), toString(binding_._4), toString(binding_._5), toString(binding_._6), toString(binding_._7), if (binding_._8) | |
178 | 178 | then "1" | |
179 | 179 | else "0"], SEPARATOR))] | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func _loadFee (assetId_) = match getInteger(makeString([KEY_FEE, toBase58String(assetId_)], SEPARATOR)) { | |
183 | 183 | case a: Int => | |
184 | 184 | a | |
185 | 185 | case _ => | |
186 | 186 | 0 | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func _saveFee (assetId_,val_) = [IntegerEntry(makeString([KEY_FEE, toBase58String(assetId_)], SEPARATOR), val_)] | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func _loadRootAdapter () = match getString(KEY_ROOT_ADAPTER) { | |
194 | 194 | case a: String => | |
195 | 195 | addressFromStringValue(a) | |
196 | 196 | case _ => | |
197 | 197 | Address(base58'') | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func _saveRootAdapter (adapter_) = [StringEntry(KEY_ROOT_ADAPTER, toString(adapter_))] | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func _loadFeeRecipient () = match getString(KEY_FEE_RECIPIENT) { | |
205 | 205 | case a: String => | |
206 | 206 | addressFromStringValue(a) | |
207 | 207 | case _ => | |
208 | 208 | Address(base58'') | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func _saveFeeRecipient (val_) = [StringEntry(KEY_FEE_RECIPIENT, toString(val_))] | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func _loadReferrerFeePercent (executionChainId_,referrer_) = match getInteger(makeString([KEY_REFERRER_FEE_PERCENT, toString(executionChainId_), toString(referrer_)], SEPARATOR)) { | |
216 | 216 | case a: Int => | |
217 | 217 | a | |
218 | 218 | case _ => | |
219 | 219 | 0 | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func _saveReferrerFeePercent (executionChainId_,referrer_,val_) = [IntegerEntry(makeString([KEY_REFERRER_FEE_PERCENT, toString(executionChainId_), toString(referrer_)], SEPARATOR), val_)] | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
227 | 227 | then throw("_onlyThisContract: revert") | |
228 | 228 | else true | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
232 | 232 | then throw("_whenMultisigSet: revert") | |
233 | 233 | else true | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func _whenNotInitialized () = if (_loadInit()) | |
237 | 237 | then throw("_whenNotInitialized: revert") | |
238 | 238 | else true | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func _whenInitialized () = if (!(_loadInit())) | |
242 | 242 | then throw("_whenInitialized: revert") | |
243 | 243 | else true | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func _whenNotPaused () = if (_loadPause()) | |
247 | 247 | then throw("_whenNotPaused: revert") | |
248 | 248 | else true | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func _whenPaused () = if (!(_loadPause())) | |
252 | 252 | then throw("_whenPaused: revert") | |
253 | 253 | else true | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func _onlyPauser (caller_) = if ((caller_ != _loadPauser())) | |
257 | 257 | then throw("_onlyPauser: revert") | |
258 | 258 | else true | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func _asInt (val_) = match val_ { | |
262 | 262 | case a: Int => | |
263 | 263 | a | |
264 | 264 | case _ => | |
265 | 265 | throw("_asInt: revert") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func _asBytes (val_) = match val_ { | |
270 | 270 | case a: ByteVector => | |
271 | 271 | a | |
272 | 272 | case _ => | |
273 | 273 | throw("_asBytes: revert") | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func _validateExecutor (val_,err_) = if ((val_ != _loadExecutor())) | |
278 | 278 | then throw(err_) | |
279 | 279 | else true | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func _validateCaller (val_,err_) = if ((val_ != _loadCallerContract())) | |
283 | 283 | then throw(err_) | |
284 | 284 | else true | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func _validateChain (executionChainId_,err_) = if (!(_loadChain(executionChainId_))) | |
288 | 288 | then throw(err_) | |
289 | 289 | else true | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | @Callable(i) | |
293 | 293 | func init (executor_,adapter_,pauser_,feeRecipient_) = { | |
294 | 294 | let err = if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
295 | 295 | then _whenNotInitialized() | |
296 | 296 | else false) | |
297 | 297 | then _whenMultisigSet() | |
298 | 298 | else false) | |
299 | 299 | then _validateAddress(executor_, "init: invalid executor") | |
300 | 300 | else false) | |
301 | 301 | then _validateAddress(adapter_, "init: invalid adapter") | |
302 | 302 | else false) | |
303 | 303 | then _validateAddress(pauser_, "init: invalid pauser") | |
304 | 304 | else false) | |
305 | 305 | then _validateAddress(feeRecipient_, "init: invalid feeRecipient") | |
306 | 306 | else false | |
307 | 307 | if ((err == err)) | |
308 | 308 | then $Tuple2(((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveRootAdapter(addressFromStringValue(adapter_))) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveFeeRecipient(addressFromStringValue(feeRecipient_))), unit) | |
309 | 309 | else throw("Strict value is not equal to itself.") | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(i) | |
315 | 315 | func mintTokens (callerContract_,assetContract_,amount_,recipient_,gaslessReward_,referrer_,referrerFee_) = { | |
316 | 316 | let amount = valueOrErrorMessage(parseInt(amount_), "mint: amount is not Int") | |
317 | 317 | let gaslessReward = valueOrErrorMessage(parseInt(gaslessReward_), "mint: gaslessReward is not Int") | |
318 | 318 | let referrerFee = valueOrErrorMessage(parseInt(referrerFee_), "mint: referrerFee is not Int") | |
319 | 319 | let err = if (if (if (if (if (if (if (if (_whenInitialized()) | |
320 | 320 | then _whenNotPaused() | |
321 | 321 | else false) | |
322 | 322 | then _validateAddress(assetContract_, "mint: invalid asset contract") | |
323 | 323 | else false) | |
324 | 324 | then _validateExecutor(i.caller, "mint: invalid executor") | |
325 | 325 | else false) | |
326 | 326 | then _validateCaller(callerContract_, "mint: invalid caller") | |
327 | 327 | else false) | |
328 | 328 | then _validateAddress(recipient_, "mint: invalid recipient address") | |
329 | 329 | else false) | |
330 | 330 | then _validateInt(amount, 0, MAX_INT, "mint: invalid amount") | |
331 | 331 | else false) | |
332 | 332 | then _validateInt(gaslessReward, 0, MAX_INT, "mint: invalid gaslessReward") | |
333 | 333 | else false) | |
334 | 334 | then _validateInt(referrerFee, 0, MAX_INT, "mint: invalid referrer fee") | |
335 | 335 | else false | |
336 | 336 | if ((err == err)) | |
337 | 337 | then { | |
338 | 338 | let assetId = _asBytes(invoke(addressFromStringValue(assetContract_), "getAssetId", nil, nil)) | |
339 | 339 | if ((assetId == assetId)) | |
340 | 340 | then { | |
341 | 341 | let assetDecimals = _asInt(invoke(addressFromStringValue(assetContract_), "getDecimals", nil, nil)) | |
342 | 342 | if ((assetDecimals == assetDecimals)) | |
343 | 343 | then { | |
344 | 344 | let normalizedAmount = _normalizeDecimals(amount, DECIMALS, assetDecimals) | |
345 | 345 | let normalizedGasless = _normalizeDecimals(gaslessReward, DECIMALS, assetDecimals) | |
346 | 346 | let referrer = match addressFromString(referrer_) { | |
347 | 347 | case refererAddress: Address => | |
348 | 348 | let normalizedReferrerFee = _normalizeDecimals(referrerFee, DECIMALS, assetDecimals) | |
349 | 349 | $Tuple2(normalizedReferrerFee, [ScriptTransfer(refererAddress, normalizedReferrerFee, assetId)]) | |
350 | 350 | case _ => | |
351 | 351 | $Tuple2(0, nil) | |
352 | 352 | } | |
353 | 353 | let normalizedReferrerFee = referrer._1 | |
354 | 354 | let referrerActions = referrer._2 | |
355 | 355 | let invocation = invoke(addressFromStringValue(assetContract_), "mint", [(normalizedAmount + normalizedReferrerFee), toString(this)], nil) | |
356 | 356 | if ((invocation == invocation)) | |
357 | 357 | then { | |
358 | 358 | let actions = if (if ((normalizedGasless > 0)) | |
359 | 359 | then (addressFromStringValue(recipient_) != i.originCaller) | |
360 | 360 | else false) | |
361 | 361 | then [ScriptTransfer(addressFromStringValue(recipient_), (normalizedAmount - normalizedGasless), assetId), ScriptTransfer(i.originCaller, normalizedGasless, assetId)] | |
362 | 362 | else [ScriptTransfer(addressFromStringValue(recipient_), normalizedAmount, assetId)] | |
363 | 363 | $Tuple2((actions ++ referrerActions), unit) | |
364 | 364 | } | |
365 | 365 | else throw("Strict value is not equal to itself.") | |
366 | 366 | } | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | else throw("Strict value is not equal to itself.") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(i) | |
377 | - | func burnTokens (executionChainId_,recipient_, | |
377 | + | func burnTokens (executionChainId_,recipient_,gaslessReward_) = { | |
378 | 378 | let err = if (if (if (if (if (_whenInitialized()) | |
379 | 379 | then _whenNotPaused() | |
380 | 380 | else false) | |
381 | 381 | then _validateChain(executionChainId_, "burnTokens: invalid execution chain") | |
382 | 382 | else false) | |
383 | 383 | then _validatePaymentsSize(i.payments, 1, "burnTokens: no payment") | |
384 | 384 | else false) | |
385 | 385 | then _validateInt(gaslessReward_, 0, MAX_INT, "burnTokens: invalid gaslessReward") | |
386 | 386 | else false) | |
387 | 387 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "burnTokens: invalid payment amount") | |
388 | 388 | else false | |
389 | 389 | if ((err == err)) | |
390 | 390 | then { | |
391 | 391 | let amount = i.payments[0].amount | |
392 | 392 | let assetId = match i.payments[0].assetId { | |
393 | 393 | case a: ByteVector => | |
394 | 394 | a | |
395 | 395 | case _ => | |
396 | 396 | throw("burnTokens: invalid asset") | |
397 | 397 | } | |
398 | 398 | let binding = _loadBinding(executionChainId_, assetId) | |
399 | 399 | let assetContract = binding._1 | |
400 | 400 | let executionAsset = binding._2 | |
401 | 401 | let minAmount = binding._3 | |
402 | 402 | let minFee = binding._4 | |
403 | 403 | let thresholdFee = binding._5 | |
404 | 404 | let beforePercentFee = binding._6 | |
405 | 405 | let afterPercentFee = binding._7 | |
406 | 406 | let enabled = binding._8 | |
407 | 407 | let err1 = if (if (_validateAddress(toString(assetContract), "burnTokens: no such binding")) | |
408 | 408 | then _validateInt(amount, minAmount, MAX_INT, "burnTokens: less than min") | |
409 | 409 | else false) | |
410 | 410 | then _validateBool(enabled, true, "burnTokens: token is disabled") | |
411 | 411 | else false | |
412 | 412 | if ((err1 == err1)) | |
413 | 413 | then { | |
414 | 414 | let assetDecimals = _asInt(invoke(assetContract, "getDecimals", nil, nil)) | |
415 | 415 | if ((assetDecimals == assetDecimals)) | |
416 | 416 | then { | |
417 | 417 | let percent = if ((amount > thresholdFee)) | |
418 | 418 | then afterPercentFee | |
419 | 419 | else beforePercentFee | |
420 | 420 | let fee = (minFee + fraction(amount, percent, PERCENT_FACTOR)) | |
421 | 421 | let err2 = _validateInt(amount, (fee + 1), MAX_INT, "burnTokens: fee more than amount") | |
422 | 422 | if ((err2 == err2)) | |
423 | 423 | then { | |
424 | 424 | let amountToSend = (amount - fee) | |
425 | 425 | let err3 = _validateInt(amountToSend, (gaslessReward_ + 1), MAX_INT, "burnTokens: reward more than amount") | |
426 | 426 | if ((err3 == err3)) | |
427 | 427 | then { | |
428 | 428 | let updateFee = (_loadFee(assetId) + fee) | |
429 | 429 | let normalizedAmount = _normalizeDecimals(amountToSend, assetDecimals, DECIMALS) | |
430 | 430 | let normalizedGasless = _normalizeDecimals(gaslessReward_, assetDecimals, DECIMALS) | |
431 | 431 | let invocation = invoke(_loadRootAdapter(), FUNC_RELEASE_TOKENS, [executionChainId_, executionAsset, normalizedAmount, recipient_, normalizedGasless], nil) | |
432 | 432 | if ((invocation == invocation)) | |
433 | 433 | then $Tuple2((_saveFee(assetId, updateFee) ++ [Burn(assetId, amountToSend)]), unit) | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | else throw("Strict value is not equal to itself.") | |
437 | 437 | } | |
438 | 438 | else throw("Strict value is not equal to itself.") | |
439 | 439 | } | |
440 | 440 | else throw("Strict value is not equal to itself.") | |
441 | 441 | } | |
442 | 442 | else throw("Strict value is not equal to itself.") | |
443 | 443 | } | |
444 | 444 | else throw("Strict value is not equal to itself.") | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(i) | |
450 | 450 | func burnTokensV2 (executionChainId_,recipient_,referrer_,gaslessReward_) = { | |
451 | 451 | let err = if (if (if (if (if (if (_whenInitialized()) | |
452 | 452 | then _whenNotPaused() | |
453 | 453 | else false) | |
454 | 454 | then _validateChain(executionChainId_, "burnTokensV2: invalid execution chain") | |
455 | 455 | else false) | |
456 | 456 | then _validatePaymentsSize(i.payments, 1, "burnTokensV2: no payment") | |
457 | 457 | else false) | |
458 | 458 | then _validateInt(gaslessReward_, 0, MAX_INT, "burnTokensV2: invalid gaslessReward") | |
459 | 459 | else false) | |
460 | 460 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "burnTokensV2: invalid payment amount") | |
461 | 461 | else false) | |
462 | 462 | then _validateReferrer(referrer_, "burnTokensV2: invalid referrer") | |
463 | 463 | else false | |
464 | 464 | if ((err == err)) | |
465 | 465 | then { | |
466 | 466 | let amount = i.payments[0].amount | |
467 | 467 | let assetId = match i.payments[0].assetId { | |
468 | 468 | case a: ByteVector => | |
469 | 469 | a | |
470 | 470 | case _ => | |
471 | 471 | throw("burnTokensV2: invalid asset") | |
472 | 472 | } | |
473 | 473 | let binding = _loadBinding(executionChainId_, assetId) | |
474 | 474 | let assetContract = binding._1 | |
475 | 475 | let executionAsset = binding._2 | |
476 | 476 | let minAmount = binding._3 | |
477 | 477 | let minFee = binding._4 | |
478 | 478 | let thresholdFee = binding._5 | |
479 | 479 | let beforePercentFee = binding._6 | |
480 | 480 | let afterPercentFee = binding._7 | |
481 | 481 | let enabled = binding._8 | |
482 | 482 | let err1 = if (if (_validateAddress(toString(assetContract), "burnTokensV2: no such binding")) | |
483 | 483 | then _validateInt(amount, minAmount, MAX_INT, "burnTokensV2: less than min") | |
484 | 484 | else false) | |
485 | 485 | then _validateBool(enabled, true, "burnTokensV2: token is disabled") | |
486 | 486 | else false | |
487 | 487 | if ((err1 == err1)) | |
488 | 488 | then { | |
489 | 489 | let assetDecimals = _asInt(invoke(assetContract, "getDecimals", nil, nil)) | |
490 | 490 | if ((assetDecimals == assetDecimals)) | |
491 | 491 | then { | |
492 | 492 | let percent = if ((amount > thresholdFee)) | |
493 | 493 | then afterPercentFee | |
494 | 494 | else beforePercentFee | |
495 | 495 | let fee = (minFee + fraction(amount, percent, PERCENT_FACTOR)) | |
496 | 496 | let err2 = _validateInt(amount, (fee + 1), MAX_INT, "burnTokensV2: fee more than amount") | |
497 | 497 | if ((err2 == err2)) | |
498 | 498 | then { | |
499 | - | let $ | |
499 | + | let $t01620116606 = if ((referrer_ != "")) | |
500 | 500 | then { | |
501 | 501 | let referrer = addressFromStringValue(referrer_) | |
502 | 502 | let referrerFeeAmount = fraction(_loadReferrerFeePercent(executionChainId_, referrer), fee, PERCENT_FACTOR) | |
503 | 503 | $Tuple2(referrerFeeAmount, [ScriptTransfer(referrer, referrerFeeAmount, assetId)]) | |
504 | 504 | } | |
505 | 505 | else $Tuple2(0, nil) | |
506 | - | let referrerFee = $ | |
507 | - | let referrerActions = $ | |
506 | + | let referrerFee = $t01620116606._1 | |
507 | + | let referrerActions = $t01620116606._2 | |
508 | 508 | let amountToSend = (amount - fee) | |
509 | 509 | let err3 = _validateInt(amountToSend, (gaslessReward_ + 1), MAX_INT, "burnTokensV2: reward more than amount") | |
510 | 510 | if ((err3 == err3)) | |
511 | 511 | then { | |
512 | 512 | let updateFee = ((_loadFee(assetId) + fee) - referrerFee) | |
513 | 513 | let normalizedAmount = _normalizeDecimals(amountToSend, assetDecimals, DECIMALS) | |
514 | 514 | let normalizedGasless = _normalizeDecimals(gaslessReward_, assetDecimals, DECIMALS) | |
515 | 515 | let invocation = invoke(_loadRootAdapter(), FUNC_RELEASE_TOKENS, [executionChainId_, executionAsset, normalizedAmount, recipient_, normalizedGasless], nil) | |
516 | 516 | if ((invocation == invocation)) | |
517 | 517 | then $Tuple2(((_saveFee(assetId, updateFee) ++ referrerActions) ++ [Burn(assetId, amountToSend)]), unit) | |
518 | 518 | else throw("Strict value is not equal to itself.") | |
519 | 519 | } | |
520 | 520 | else throw("Strict value is not equal to itself.") | |
521 | 521 | } | |
522 | 522 | else throw("Strict value is not equal to itself.") | |
523 | 523 | } | |
524 | 524 | else throw("Strict value is not equal to itself.") | |
525 | 525 | } | |
526 | 526 | else throw("Strict value is not equal to itself.") | |
527 | 527 | } | |
528 | 528 | else throw("Strict value is not equal to itself.") | |
529 | 529 | } | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | ||
533 | 533 | @Callable(i) | |
534 | 534 | func transferFee (executionChainId_,assetId_) = { | |
535 | 535 | let err = if (if (_whenInitialized()) | |
536 | 536 | then _whenNotPaused() | |
537 | 537 | else false) | |
538 | 538 | then _validateAsset(assetId_, "transferFee: invalid asset") | |
539 | 539 | else false | |
540 | 540 | if ((err == err)) | |
541 | 541 | then { | |
542 | 542 | let assetId = fromBase58String(assetId_) | |
543 | 543 | let binding = _loadBinding(executionChainId_, assetId) | |
544 | 544 | let assetContract = binding._1 | |
545 | 545 | let enabled = binding._8 | |
546 | 546 | let err1 = if (_validateAddress(toString(assetContract), "transferFee: no such binding")) | |
547 | 547 | then _validateBool(enabled, true, "transferFee: token is disabled") | |
548 | 548 | else false | |
549 | 549 | if ((err1 == err1)) | |
550 | 550 | then $Tuple2((_saveFee(assetId, 0) ++ [ScriptTransfer(_loadFeeRecipient(), _loadFee(assetId), assetId)]), unit) | |
551 | 551 | else throw("Strict value is not equal to itself.") | |
552 | 552 | } | |
553 | 553 | else throw("Strict value is not equal to itself.") | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Callable(i) | |
559 | 559 | func updateCallerContract (callerContract_) = { | |
560 | 560 | let err = if (_onlyThisContract(i.caller)) | |
561 | 561 | then _whenInitialized() | |
562 | 562 | else false | |
563 | 563 | if ((err == err)) | |
564 | 564 | then $Tuple2(_saveCallerContract(callerContract_), unit) | |
565 | 565 | else throw("Strict value is not equal to itself.") | |
566 | 566 | } | |
567 | 567 | ||
568 | 568 | ||
569 | 569 | ||
570 | 570 | @Callable(i) | |
571 | 571 | func updateExecutionChain (executionChainId_,enabled_) = { | |
572 | 572 | let err = if (if (_onlyThisContract(i.caller)) | |
573 | 573 | then _whenInitialized() | |
574 | 574 | else false) | |
575 | 575 | then _validateInt(executionChainId_, 0, MAX_INT, "updateExecutionChain: invalid executionChainId") | |
576 | 576 | else false | |
577 | 577 | if ((err == err)) | |
578 | 578 | then $Tuple2(_saveChain(executionChainId_, enabled_), unit) | |
579 | 579 | else throw("Strict value is not equal to itself.") | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | ||
584 | 584 | @Callable(i) | |
585 | 585 | func updateFeeRecipient (feeRecipient_) = { | |
586 | 586 | let err = if (if (_onlyThisContract(i.caller)) | |
587 | 587 | then _whenInitialized() | |
588 | 588 | else false) | |
589 | 589 | then _validateAddress(feeRecipient_, "updateFeeRecipient: invalid feeRecipient") | |
590 | 590 | else false | |
591 | 591 | if ((err == err)) | |
592 | 592 | then $Tuple2(_saveFeeRecipient(addressFromStringValue(feeRecipient_)), unit) | |
593 | 593 | else throw("Strict value is not equal to itself.") | |
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | 597 | ||
598 | 598 | @Callable(i) | |
599 | 599 | func updateReferrer (executionChainId_,referrer_,fee_) = { | |
600 | 600 | let err = if (if (if (if (_onlyThisContract(i.caller)) | |
601 | 601 | then _whenInitialized() | |
602 | 602 | else false) | |
603 | 603 | then _validateChain(executionChainId_, "updateReferrer: invalid execution chain") | |
604 | 604 | else false) | |
605 | 605 | then _validateAddress(referrer_, "updateReferrer: invalid referrer") | |
606 | 606 | else false) | |
607 | 607 | then _validateInt(fee_, 0, MAX_REFERRER_FEE, "updateReferrer: invalid fee") | |
608 | 608 | else false | |
609 | 609 | if ((err == err)) | |
610 | 610 | then $Tuple2(_saveReferrerFeePercent(executionChainId_, addressFromStringValue(referrer_), fee_), unit) | |
611 | 611 | else throw("Strict value is not equal to itself.") | |
612 | 612 | } | |
613 | 613 | ||
614 | 614 | ||
615 | 615 | ||
616 | 616 | @Callable(i) | |
617 | 617 | func updateBindingInfo (executionChainId_,assetContract_,executionAsset_,minAmount_,minFee_,thresholdFee_,beforePercentFee_,afterPercentFee_,enabled_) = { | |
618 | 618 | let err = if (if (if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
619 | 619 | then _whenInitialized() | |
620 | 620 | else false) | |
621 | 621 | then _validateAddress(assetContract_, "updateBindingInfo: invalid asset contract") | |
622 | 622 | else false) | |
623 | 623 | then _validateInt(executionChainId_, 0, MAX_INT, "updateBindingInfo: invalid executionChainId") | |
624 | 624 | else false) | |
625 | 625 | then _validateInt(minAmount_, 0, MAX_INT, "updateBindingInfo: invalid minAmount") | |
626 | 626 | else false) | |
627 | 627 | then _validateInt(minFee_, 0, MAX_INT, "updateBindingInfo: invalid minFee") | |
628 | 628 | else false) | |
629 | 629 | then _validateInt(thresholdFee_, 0, MAX_INT, "updateBindingInfo: invalid thresholdFee") | |
630 | 630 | else false) | |
631 | 631 | then _validateInt(beforePercentFee_, 0, MAX_INT, "updateBindingInfo: invalid beforePercentFee") | |
632 | 632 | else false) | |
633 | 633 | then _validateInt(afterPercentFee_, 0, MAX_INT, "updateBindingInfo: invalid afterPercentFee") | |
634 | 634 | else false | |
635 | 635 | if ((err == err)) | |
636 | 636 | then { | |
637 | 637 | let assetId = _asBytes(invoke(addressFromStringValue(assetContract_), "getAssetId", nil, nil)) | |
638 | 638 | if ((assetId == assetId)) | |
639 | 639 | then { | |
640 | 640 | let binding = $Tuple8(addressFromStringValue(assetContract_), executionAsset_, minAmount_, minFee_, thresholdFee_, beforePercentFee_, afterPercentFee_, enabled_) | |
641 | 641 | $Tuple2(_saveBinding(executionChainId_, assetId, binding), unit) | |
642 | 642 | } | |
643 | 643 | else throw("Strict value is not equal to itself.") | |
644 | 644 | } | |
645 | 645 | else throw("Strict value is not equal to itself.") | |
646 | 646 | } | |
647 | 647 | ||
648 | 648 | ||
649 | 649 | ||
650 | 650 | @Callable(i) | |
651 | 651 | func pause () = { | |
652 | 652 | let err = if (if (_onlyPauser(i.caller)) | |
653 | 653 | then _whenInitialized() | |
654 | 654 | else false) | |
655 | 655 | then _whenNotPaused() | |
656 | 656 | else false | |
657 | 657 | if ((err == err)) | |
658 | 658 | then $Tuple2(_savePause(true), unit) | |
659 | 659 | else throw("Strict value is not equal to itself.") | |
660 | 660 | } | |
661 | 661 | ||
662 | 662 | ||
663 | 663 | ||
664 | 664 | @Callable(i) | |
665 | 665 | func unpause () = { | |
666 | 666 | let err = if (if (_onlyPauser(i.caller)) | |
667 | 667 | then _whenInitialized() | |
668 | 668 | else false) | |
669 | 669 | then _whenPaused() | |
670 | 670 | else false | |
671 | 671 | if ((err == err)) | |
672 | 672 | then $Tuple2(_savePause(false), unit) | |
673 | 673 | else throw("Strict value is not equal to itself.") | |
674 | 674 | } | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | ||
678 | 678 | @Callable(i) | |
679 | 679 | func updatePauser (pauser_) = { | |
680 | 680 | let err = if (if (_onlyThisContract(i.caller)) | |
681 | 681 | then _whenInitialized() | |
682 | 682 | else false) | |
683 | 683 | then _validateAddress(pauser_, "updatePauser: invalid pauser") | |
684 | 684 | else false | |
685 | 685 | if ((err == err)) | |
686 | 686 | then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit) | |
687 | 687 | else throw("Strict value is not equal to itself.") | |
688 | 688 | } | |
689 | 689 | ||
690 | 690 | ||
691 | 691 | ||
692 | 692 | @Callable(i) | |
693 | 693 | func setMultisig (multisig_) = { | |
694 | 694 | let err = if (_onlyThisContract(i.caller)) | |
695 | 695 | then _validateAddress(multisig_, "setMultisig: invalid multisig") | |
696 | 696 | else false | |
697 | 697 | if ((err == err)) | |
698 | 698 | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
699 | 699 | else throw("Strict value is not equal to itself.") | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | 703 | @Verifier(tx) | |
704 | 704 | func verify () = match getString(KEY_MULTISIG) { | |
705 | 705 | case multisig: String => | |
706 | 706 | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false) | |
707 | 707 | case _ => | |
708 | 708 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
709 | 709 | } | |
710 | 710 |
github/deemru/w8io/169f3d6 56.29 ms ◑