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