tx · F4ZRZKEp5Tdpuwvtz9A7MmyUEwa7FJwExVLEHZD3TyBT

3NAg2HDvKz7gwrNc2wnUxdK74NydBFUXTYP:  -0.03300000 Waves

2024.12.09 16:58 [3407157] smart account 3NAg2HDvKz7gwrNc2wnUxdK74NydBFUXTYP > SELF 0.00000000 Waves

{ "type": 13, "id": "F4ZRZKEp5Tdpuwvtz9A7MmyUEwa7FJwExVLEHZD3TyBT", "fee": 3300000, "feeAssetId": null, "timestamp": 1733752673809, "version": 2, "chainId": 84, "sender": "3NAg2HDvKz7gwrNc2wnUxdK74NydBFUXTYP", "senderPublicKey": "BEbZF8zo7WjaQFZFFuPs7hqSLEgGwjwQFGg4tSidf9C3", "proofs": [ "5LvhauEw6qzaYyW7rRZQvQivmRydM9VcooxrxEXZeMnsjfjhmftRYRo3rR98tpiThLipMmMVZZfAvVwcCFAWqzYB" ], "script": "base64:BwJuCAISCAoGCAgICAgIEggKBggICAgICBIJCgcICAgICAgIEgUKAwgICBIDCgEIEgwKCggICAgICAgICAgSBgoECAgICBIFCgMBCAgSBQoDAQgIEgMKAQESAwoBCBIDCgEIEgASABIDCgEIEgMKAQhxAAlTRVBBUkFUT1ICAl9fAAxLRVlfTVVMVElTSUcCCE1VTFRJU0lHAApLRVlfU1RBVFVTAgZTVEFUVVMACEtFWV9JTklUAgRJTklUAApLRVlfUEFVU0VEAgZQQVVTRUQACktFWV9QQVVTRVICBlBBVVNFUgAMS0VZX0VYRUNVVE9SAghFWEVDVVRPUgATS0VZX0NBTExFUl9DT05UUkFDVAIPQ0FMTEVSX0NPTlRSQUNUAA9LRVlfV0FWRVNfVkFVTFQCC1dBVkVTX1ZBVUxUABNLRVlfQUNDT1VOVF9TVE9SQUdFAg9BQ0NPVU5UX1NUT1JBR0UACUtFWV9DSEFJTgIFQ0hBSU4AEktFWV9BU1NFVF9DVVJSRU5DWQIOQVNTRVRfQ1VSUkVOQ1kAEktFWV9BU1NFVF9SRVNFUlZFUwIOQVNTRVRfUkVTRVJ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KDEwNjIpAQUJbXVsdGlzaWdfBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAkAoggBBQxLRVlfTVVMVElTSUcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwkAuQkCCQDMCAIFCktFWV9TVEFUVVMJAMwIAgkApQgBBQR0aGlzCQDMCAIJANgEAQgFAnR4AmlkBQNuaWwFCVNFUEFSQVRPUgcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXl0QOf/", "height": 3407157, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HfrtsyoqcdEVaFxU5r5WYqxKStbNaMKKcXtUkx3P5Yxf Next: 74rf9Vdqi9f8SHdP9ipAKhpd68m8VwbfeMKCcNExBi45 Diff:
OldNewDifferences
8080 let ALG_TYPE_WAVES = 1
8181
8282 let ALG_TYPE_EVM = 2
83+
84+let WAVES_PREFIX = base58'7YXq4t'
8385
8486 let EVM_SIGNATURE_PREFIX = base58'G5Nu92G2p7moXW9qjjN3na7gtq4dWCeVdaSjry'
8587
474476
475477 func _validateWithdrawalSignature (withdrawalHash_,signature_,web3Id_,alg_,err_) = {
476478 let result = if ((alg_ == ALG_TYPE_WAVES))
477- then sigVerify(withdrawalHash_, signature_, web3Id_)
479+ then {
480+ let hashWithPrefix = keccak256_16Kb((WAVES_PREFIX + toBytes(toBase58String(withdrawalHash_))))
481+ sigVerify(hashWithPrefix, signature_, web3Id_)
482+ }
478483 else if ((alg_ == ALG_TYPE_EVM))
479484 then {
480485 let hashWithPrefix = keccak256_16Kb((EVM_SIGNATURE_PREFIX + withdrawalHash_))
604609 then {
605610 let lockedReserves = _loadAssetReservesLocked(toChainId, asset_)
606611 let userLockedCurrency = _loadUserLockedCurrency(currency, from_)
607- let $t01929519750 = if (if (((availableBalance - userLockedCurrency) >= amount))
612+ let $t01943719892 = if (if (((availableBalance - userLockedCurrency) >= amount))
608613 then ((_loadAssetReserves(toChainId, asset_) - lockedReserves) >= amount)
609614 else false)
610615 then $Tuple2(REQUEST_STATUS_CREATED, (_saveAssetReservesLocked(toChainId, asset_, (lockedReserves + amount)) ++ _saveUserLockedCurrency(currency, from_, (amount + userLockedCurrency))))
611616 else $Tuple2(REQUEST_STATUS_REJECTED, nil)
612- let requestStatus = $t01929519750._1
613- let reservesActions = $t01929519750._2
617+ let requestStatus = $t01943719892._1
618+ let reservesActions = $t01943719892._2
614619 let requestWithdrawalSize = _loadRequestWithdrawalSize()
615620 let requestWithdrawal = $Tuple8(from_, to_, toChainId, asset_, amount, height, toBase58String(i.transactionId), requestStatus)
616621 $Tuple2(((_saveRequestWithdrawal(requestWithdrawalSize, requestWithdrawal) ++ _saveRequestWithdrawalSize((requestWithdrawalSize + 1))) ++ reservesActions), requestWithdrawalSize)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEPARATOR = "__"
55
66 let KEY_MULTISIG = "MULTISIG"
77
88 let KEY_STATUS = "STATUS"
99
1010 let KEY_INIT = "INIT"
1111
1212 let KEY_PAUSED = "PAUSED"
1313
1414 let KEY_PAUSER = "PAUSER"
1515
1616 let KEY_EXECUTOR = "EXECUTOR"
1717
1818 let KEY_CALLER_CONTRACT = "CALLER_CONTRACT"
1919
2020 let KEY_WAVES_VAULT = "WAVES_VAULT"
2121
2222 let KEY_ACCOUNT_STORAGE = "ACCOUNT_STORAGE"
2323
2424 let KEY_CHAIN = "CHAIN"
2525
2626 let KEY_ASSET_CURRENCY = "ASSET_CURRENCY"
2727
2828 let KEY_ASSET_RESERVES = "ASSET_RESERVES"
2929
3030 let KEY_ASSET_RESERVES_LOCKED = "ASSET_RESERVES_LOCKED"
3131
3232 let KEY_USER_LOCKED_CURRENCY = "USER_LOCKED_CURRENCY"
3333
3434 let KEY_CURRENCY_RESERVES = "CURRENCY_RESERVES"
3535
3636 let KEY_REQUEST_WITHDRAWAL_SIZE = "REQUEST_WITHDRAWAL_SIZE"
3737
3838 let KEY_REQUEST_WITHDRAWAL = "REQUEST_WITHDRAWAL"
3939
4040 let KEY_REQUEST_WITHDRAWAL_BLOCK_DELAY = "REQUEST_WITHDRAWAL_BLOCK_DELAY"
4141
4242 let KEY_SEQUENCER = "SEQUENCER"
4343
4444 let KEY_WITHDRAWAL_HASH = "WITHDRAWAL_HASH"
4545
4646 let KEY_VAULT_ADAPTER = "VAULT_ADAPTER"
4747
4848 let KEY_REWARD_DISTRIBUTOR = "REWARD_DISTRIBUTOR"
4949
5050 let KEY_RELAYER_FEE_RECIPIENT = "RELAYER_FEE_RECIPIENT"
5151
5252 let FUNC_DEPOSIT = "deposit"
5353
5454 let FUNC_GET_USER_BALANCE = "getUserBalance"
5555
5656 let FUNC_INTERNAL_TRANSFER = "internalTransfer"
5757
5858 let FUNC_WITHDRAW = "withdraw"
5959
6060 let FUNC_DEPOSIT_STAKING_REWARD = "depositStakingReward"
6161
6262 let REQUEST_STATUS_CREATED = 0
6363
6464 let REQUEST_STATUS_DONE = 1
6565
6666 let REQUEST_STATUS_REJECTED = 2
6767
6868 let WAVES = "WAVES"
6969
7070 let SPOT_WALLET = "SPOT"
7171
7272 let MAX_INT = 9223372036854775807
7373
7474 let ZERO_BIGINT = toBigInt(0)
7575
7676 let ONE_BIGINT = toBigInt(1)
7777
7878 let ONE_DAY = 86400000
7979
8080 let ALG_TYPE_WAVES = 1
8181
8282 let ALG_TYPE_EVM = 2
83+
84+let WAVES_PREFIX = base58'7YXq4t'
8385
8486 let EVM_SIGNATURE_PREFIX = base58'G5Nu92G2p7moXW9qjjN3na7gtq4dWCeVdaSjry'
8587
8688 func _validateAddress (address_,err_) = match addressFromString(address_) {
8789 case a: Address =>
8890 true
8991 case _ =>
9092 throw(err_)
9193 }
9294
9395
9496 func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_))
9597 then true
9698 else (val_ > upperBoundary_))
9799 then throw(err_)
98100 else true
99101
100102
101103 func _validateBigInt (val_,lowerBoundary_,err_) = if ((lowerBoundary_ > val_))
102104 then throw(err_)
103105 else true
104106
105107
106108 func _validateBigInt_2 (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_))
107109 then true
108110 else (val_ > upperBoundary_))
109111 then throw(err_)
110112 else true
111113
112114
113115 func _validateString (val_,err_) = if (if ((0 >= size(val_)))
114116 then true
115117 else contains(val_, SEPARATOR))
116118 then throw(err_)
117119 else true
118120
119121
120122 func _validateStringEqual (val1_,val2_,err_) = if ((val1_ != val2_))
121123 then throw(err_)
122124 else true
123125
124126
125127 func _loadInit () = match getBoolean(KEY_INIT) {
126128 case a: Boolean =>
127129 a
128130 case _ =>
129131 false
130132 }
131133
132134
133135 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
134136
135137
136138 func _loadPause () = match getBoolean(KEY_PAUSED) {
137139 case a: Boolean =>
138140 a
139141 case _ =>
140142 false
141143 }
142144
143145
144146 func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)]
145147
146148
147149 func _loadPauser () = match getString(KEY_PAUSER) {
148150 case a: String =>
149151 addressFromStringValue(a)
150152 case _ =>
151153 Address(base58'')
152154 }
153155
154156
155157 func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))]
156158
157159
158160 func _loadMultisig () = match getString(KEY_MULTISIG) {
159161 case a: String =>
160162 addressFromStringValue(a)
161163 case _ =>
162164 Address(base58'')
163165 }
164166
165167
166168 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
167169
168170
169171 func _loadCallerContract (chainId_) = match getString(makeString([KEY_CALLER_CONTRACT, toString(chainId_)], SEPARATOR)) {
170172 case a: String =>
171173 a
172174 case _ =>
173175 ""
174176 }
175177
176178
177179 func _saveCallerContract (chainId_,callerContract_) = [StringEntry(makeString([KEY_CALLER_CONTRACT, toString(chainId_)], SEPARATOR), callerContract_)]
178180
179181
180182 func _loadExecutor () = match getString(KEY_EXECUTOR) {
181183 case a: String =>
182184 addressFromStringValue(a)
183185 case _ =>
184186 Address(base58'')
185187 }
186188
187189
188190 func _saveExecutor (executor_) = [StringEntry(KEY_EXECUTOR, toString(executor_))]
189191
190192
191193 func _loadAccountStorage () = match getString(KEY_ACCOUNT_STORAGE) {
192194 case a: String =>
193195 addressFromStringValue(a)
194196 case _ =>
195197 Address(base58'')
196198 }
197199
198200
199201 func _saveAccountStorage (accountStorage_) = [StringEntry(KEY_ACCOUNT_STORAGE, toString(accountStorage_))]
200202
201203
202204 func _loadWavesVault () = match getString(KEY_WAVES_VAULT) {
203205 case a: String =>
204206 addressFromStringValue(a)
205207 case _ =>
206208 Address(base58'')
207209 }
208210
209211
210212 func _saveWavesVault (wavesVault_) = [StringEntry(KEY_WAVES_VAULT, toString(wavesVault_))]
211213
212214
213215 func _loadChain (chainId_) = match getString(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR)) {
214216 case a: String =>
215217 a
216218 case _ =>
217219 ""
218220 }
219221
220222
221223 func _saveChain (chainId_,name_) = [StringEntry(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR), name_)]
222224
223225
224226 func _loadAssetCurrency (chainId_,asset_) = match getString(makeString([KEY_ASSET_CURRENCY, toString(chainId_), asset_], SEPARATOR)) {
225227 case a: String =>
226228 a
227229 case _ =>
228230 ""
229231 }
230232
231233
232234 func _saveAssetCurrency (chainId_,asset_,currency_) = [StringEntry(makeString([KEY_ASSET_CURRENCY, toString(chainId_), asset_], SEPARATOR), currency_)]
233235
234236
235237 func _loadAssetReserves (chainId_,asset_) = match getString(makeString([KEY_ASSET_RESERVES, toString(chainId_), asset_], SEPARATOR)) {
236238 case a: String =>
237239 parseBigIntValue(a)
238240 case _ =>
239241 ZERO_BIGINT
240242 }
241243
242244
243245 func _saveAssetReserves (chainId_,asset_,reserves_) = [StringEntry(makeString([KEY_ASSET_RESERVES, toString(chainId_), asset_], SEPARATOR), toString(reserves_))]
244246
245247
246248 func _loadAssetReservesLocked (chainId_,asset_) = match getString(makeString([KEY_ASSET_RESERVES_LOCKED, toString(chainId_), asset_], SEPARATOR)) {
247249 case a: String =>
248250 parseBigIntValue(a)
249251 case _ =>
250252 ZERO_BIGINT
251253 }
252254
253255
254256 func _saveAssetReservesLocked (chainId_,asset_,reserves_) = [StringEntry(makeString([KEY_ASSET_RESERVES_LOCKED, toString(chainId_), asset_], SEPARATOR), toString(reserves_))]
255257
256258
257259 func _loadUserLockedCurrency (currency_,user_) = match getString(makeString([KEY_USER_LOCKED_CURRENCY, currency_, user_], SEPARATOR)) {
258260 case a: String =>
259261 parseBigIntValue(a)
260262 case _ =>
261263 ZERO_BIGINT
262264 }
263265
264266
265267 func _saveUserLockedCurrency (currency_,user_,amount_) = [StringEntry(makeString([KEY_USER_LOCKED_CURRENCY, currency_, user_], SEPARATOR), toString(amount_))]
266268
267269
268270 func _loadCurrencyReserves (currency_) = match getString(makeString([KEY_CURRENCY_RESERVES, currency_], SEPARATOR)) {
269271 case a: String =>
270272 parseBigIntValue(a)
271273 case _ =>
272274 ZERO_BIGINT
273275 }
274276
275277
276278 func _saveCurrencyReserves (currency_,reserves_) = [StringEntry(makeString([KEY_CURRENCY_RESERVES, currency_], SEPARATOR), toString(reserves_))]
277279
278280
279281 func _loadRequestWithdrawalSize () = match getInteger(KEY_REQUEST_WITHDRAWAL_SIZE) {
280282 case a: Int =>
281283 a
282284 case _ =>
283285 0
284286 }
285287
286288
287289 func _saveRequestWithdrawalSize (val_) = [IntegerEntry(KEY_REQUEST_WITHDRAWAL_SIZE, val_)]
288290
289291
290292 func _loadRequestWithdrawal (index_) = match getString(makeString([KEY_REQUEST_WITHDRAWAL, toString(index_)], SEPARATOR)) {
291293 case a: String =>
292294 let struct = split(a, SEPARATOR)
293295 $Tuple8(struct[0], struct[1], parseIntValue(struct[2]), struct[3], parseBigIntValue(struct[4]), parseIntValue(struct[5]), struct[6], parseIntValue(struct[7]))
294296 case _ =>
295297 $Tuple8("", "", 0, "", ZERO_BIGINT, 0, "", REQUEST_STATUS_CREATED)
296298 }
297299
298300
299301 func _saveRequestWithdrawal (index_,request_) = [StringEntry(makeString([KEY_REQUEST_WITHDRAWAL, toString(index_)], SEPARATOR), makeString([request_._1, request_._2, toString(request_._3), request_._4, toString(request_._5), toString(request_._6), request_._7, toString(request_._8)], SEPARATOR))]
300302
301303
302304 func _loadRequestWithdrawalBlockDelay () = match getInteger(KEY_REQUEST_WITHDRAWAL_BLOCK_DELAY) {
303305 case a: Int =>
304306 a
305307 case _ =>
306308 0
307309 }
308310
309311
310312 func _saveRequestWithdrawalBlockDelay (delay_) = [IntegerEntry(KEY_REQUEST_WITHDRAWAL_BLOCK_DELAY, delay_)]
311313
312314
313315 func _loadSequencer () = match getString(KEY_SEQUENCER) {
314316 case a: String =>
315317 addressFromStringValue(a)
316318 case _ =>
317319 Address(base58'')
318320 }
319321
320322
321323 func _saveSequencer (sequencer_) = [StringEntry(KEY_SEQUENCER, toString(sequencer_))]
322324
323325
324326 func _loadWithdrawalHash (withdrawalHash_) = match getString(makeString([KEY_WITHDRAWAL_HASH, toBase58String(withdrawalHash_)], SEPARATOR)) {
325327 case a: String =>
326328 a
327329 case _ =>
328330 ""
329331 }
330332
331333
332334 func _saveWithdrawalHash (withdrawalHash_,txId_) = [StringEntry(makeString([KEY_WITHDRAWAL_HASH, toBase58String(withdrawalHash_)], SEPARATOR), txId_)]
333335
334336
335337 func _loadVaultAdapter () = match getString(KEY_VAULT_ADAPTER) {
336338 case a: String =>
337339 addressFromStringValue(a)
338340 case _ =>
339341 Address(base58'')
340342 }
341343
342344
343345 func _saveVaultAdapter (vaultAdapter_) = [StringEntry(KEY_VAULT_ADAPTER, toString(vaultAdapter_))]
344346
345347
346348 func _loadRewardDistributor () = match getString(KEY_REWARD_DISTRIBUTOR) {
347349 case a: String =>
348350 a
349351 case _ =>
350352 ""
351353 }
352354
353355
354356 func _saveRewardDistributor (distributor_) = [StringEntry(KEY_REWARD_DISTRIBUTOR, distributor_)]
355357
356358
357359 func _loadRelayerFeeRecipient () = match getString(KEY_RELAYER_FEE_RECIPIENT) {
358360 case a: String =>
359361 a
360362 case _ =>
361363 ""
362364 }
363365
364366
365367 func _saveRelayerFeeRecipient (relayerFeeRecipient_) = [StringEntry(KEY_RELAYER_FEE_RECIPIENT, relayerFeeRecipient_)]
366368
367369
368370 func _onlyThisContract (caller_) = if ((caller_ != this))
369371 then throw("_onlyThisContract: revert")
370372 else true
371373
372374
373375 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
374376 then throw("_whenMultisigSet: revert")
375377 else true
376378
377379
378380 func _whenNotInitialized () = if (_loadInit())
379381 then throw("_whenNotInitialized: revert")
380382 else true
381383
382384
383385 func _whenInitialized () = if (!(_loadInit()))
384386 then throw("_whenInitialized: revert")
385387 else true
386388
387389
388390 func _whenNotPaused () = if (_loadPause())
389391 then throw("_whenNotPaused: revert")
390392 else true
391393
392394
393395 func _whenPaused () = if (!(_loadPause()))
394396 then throw("_whenPaused: revert")
395397 else true
396398
397399
398400 func _onlyPauser (caller_) = if ((caller_ != _loadPauser()))
399401 then throw("_onlyPauser: revert")
400402 else true
401403
402404
403405 func _validateExecutor (val_,err_) = if ((val_ != _loadExecutor()))
404406 then throw(err_)
405407 else true
406408
407409
408410 func _validateCallerContract (chainId_,callerContract_,err_) = if ((_loadCallerContract(chainId_) != callerContract_))
409411 then throw(err_)
410412 else true
411413
412414
413415 func _chainExists (chainId_,err_) = if ((0 >= size(_loadChain(chainId_))))
414416 then throw(err_)
415417 else true
416418
417419
418420 func _chainNotExist (chainId_,err_) = if ((size(_loadChain(chainId_)) > 0))
419421 then throw(err_)
420422 else true
421423
422424
423425 func _assetCurrencyExists (chainId_,asset_,err_) = if ((0 >= size(_loadAssetCurrency(chainId_, asset_))))
424426 then throw(err_)
425427 else true
426428
427429
428430 func _assetCurrencyNotExist (chainId_,asset_,err_) = if ((size(_loadAssetCurrency(chainId_, asset_)) > 0))
429431 then throw(err_)
430432 else true
431433
432434
433435 func _validateWavesVault (caller,err_) = if ((_loadWavesVault() != caller))
434436 then throw(err_)
435437 else true
436438
437439
438440 func _requestIsCreated (status_,err_) = if ((status_ != REQUEST_STATUS_CREATED))
439441 then throw(err_)
440442 else true
441443
442444
443445 func _validateSequencer (caller,err_) = if ((_loadSequencer() != caller))
444446 then throw(err_)
445447 else true
446448
447449
448450 func _checkWithdrawalHashNotExist (withdrawalHash_,err_) = if ((size(_loadWithdrawalHash(withdrawalHash_)) > 0))
449451 then throw(err_)
450452 else true
451453
452454
453455 func _validateSignatureFormat (signature_,alg_,err_) = if ((alg_ == ALG_TYPE_WAVES))
454456 then if ((size(signature_) != 64))
455457 then throw(err_)
456458 else true
457459 else if ((alg_ == ALG_TYPE_EVM))
458460 then if ((size(signature_) != 65))
459461 then throw(err_)
460462 else true
461463 else throw((err_ + ": inv alg"))
462464
463465
464466 func _validateWeb3Id (web3Id_,alg_,err_) = if ((alg_ == ALG_TYPE_WAVES))
465467 then if ((size(web3Id_) != 32))
466468 then throw(err_)
467469 else true
468470 else if ((alg_ == ALG_TYPE_EVM))
469471 then if ((size(web3Id_) != 20))
470472 then throw(err_)
471473 else true
472474 else throw((err_ + ": inv alg"))
473475
474476
475477 func _validateWithdrawalSignature (withdrawalHash_,signature_,web3Id_,alg_,err_) = {
476478 let result = if ((alg_ == ALG_TYPE_WAVES))
477- then sigVerify(withdrawalHash_, signature_, web3Id_)
479+ then {
480+ let hashWithPrefix = keccak256_16Kb((WAVES_PREFIX + toBytes(toBase58String(withdrawalHash_))))
481+ sigVerify(hashWithPrefix, signature_, web3Id_)
482+ }
478483 else if ((alg_ == ALG_TYPE_EVM))
479484 then {
480485 let hashWithPrefix = keccak256_16Kb((EVM_SIGNATURE_PREFIX + withdrawalHash_))
481486 (takeRight(keccak256_16Kb(ecrecover(hashWithPrefix, signature_)), 20) == web3Id_)
482487 }
483488 else throw((err_ + ": inv alg"))
484489 if (!(result))
485490 then throw(err_)
486491 else true
487492 }
488493
489494
490495 func _validateWeb3IdMatchesAddress (web3Id_,from_,alg_,err_) = {
491496 let address = if ((alg_ == ALG_TYPE_WAVES))
492497 then toString(addressFromPublicKey(web3Id_))
493498 else if ((alg_ == ALG_TYPE_EVM))
494499 then ("0x" + toBase16String(web3Id_))
495500 else throw((err_ + ": inv alg"))
496501 if ((address != from_))
497502 then throw(err_)
498503 else true
499504 }
500505
501506
502507 @Callable(i)
503508 func init (executor_,pauser_,accountStorage_,wavesVault_,sequencer_,vaultAdapter_) = {
504509 let err = if (if (if (if (if (if (if (if (_onlyThisContract(i.caller))
505510 then _whenNotInitialized()
506511 else false)
507512 then _whenMultisigSet()
508513 else false)
509514 then _validateAddress(executor_, "init: invalid executor")
510515 else false)
511516 then _validateAddress(pauser_, "init: invalid pauser")
512517 else false)
513518 then _validateAddress(accountStorage_, "init: invalid accountStorage")
514519 else false)
515520 then _validateAddress(wavesVault_, "init: invalid wavesVault")
516521 else false)
517522 then _validateAddress(sequencer_, "init: invalid sequencer")
518523 else false)
519524 then _validateAddress(vaultAdapter_, "init: invalid vaultAdapter")
520525 else false
521526 if ((err == err))
522527 then $Tuple2(((((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveAccountStorage(addressFromStringValue(accountStorage_))) ++ _saveWavesVault(addressFromStringValue(wavesVault_))) ++ _saveSequencer(addressFromStringValue(sequencer_))) ++ _saveVaultAdapter(addressFromStringValue(vaultAdapter_))), unit)
523528 else throw("Strict value is not equal to itself.")
524529 }
525530
526531
527532
528533 @Callable(i)
529534 func deposit (callerContract_,from_,to_,chainId_,asset_,amount_) = {
530535 let chainId = valueOrErrorMessage(parseInt(chainId_), "deposit: chainId not int")
531536 let amount = valueOrErrorMessage(parseBigInt(amount_), "deposit: amount not int")
532537 let err = if (if (if (if (if (if (_whenInitialized())
533538 then _whenNotPaused()
534539 else false)
535540 then _chainExists(chainId, "deposit: invalid chainId")
536541 else false)
537542 then _validateString(from_, "deposit: invalid from")
538543 else false)
539544 then _validateString(to_, "deposit: invalid to")
540545 else false)
541546 then _assetCurrencyExists(chainId, asset_, "deposit: invalid asset")
542547 else false)
543548 then _validateBigInt(amount, ZERO_BIGINT, "deposit: invalid amount")
544549 else false
545550 if ((err == err))
546551 then {
547552 let err1 = if ((_loadChain(chainId) == WAVES))
548553 then _validateWavesVault(i.caller, "deposit: invalid waves vault")
549554 else if (_validateExecutor(i.caller, "deposit: invalid executor"))
550555 then _validateCallerContract(chainId, callerContract_, "deposit: invalid caller contract")
551556 else false
552557 if ((err1 == err1))
553558 then {
554559 let newAssetReserves = (_loadAssetReserves(chainId, asset_) + amount)
555560 let currency = _loadAssetCurrency(chainId, asset_)
556561 let newCurrencyReserves = (_loadCurrencyReserves(currency) + amount)
557562 let invocation = invoke(_loadAccountStorage(), FUNC_DEPOSIT, [to_, currency, amount_], nil)
558563 if ((invocation == invocation))
559564 then $Tuple2((_saveAssetReserves(chainId, asset_, newAssetReserves) ++ _saveCurrencyReserves(currency, newCurrencyReserves)), unit)
560565 else throw("Strict value is not equal to itself.")
561566 }
562567 else throw("Strict value is not equal to itself.")
563568 }
564569 else throw("Strict value is not equal to itself.")
565570 }
566571
567572
568573
569574 @Callable(i)
570575 func requestWithdrawal (callerContract_,from_,to_,fromChainId_,toChainId_,asset_,amount_) = {
571576 let fromChainId = valueOrErrorMessage(parseInt(fromChainId_), "requestWithdrawal: fromChainId not int")
572577 let toChainId = valueOrErrorMessage(parseInt(toChainId_), "requestWithdrawal: toChainId not int")
573578 let amount = valueOrErrorMessage(parseBigInt(amount_), "requestWithdrawal: amount not int")
574579 let err = if (if (if (if (if (if (_whenInitialized())
575580 then _chainExists(fromChainId, "requestWithdrawal: invalid fromChainId")
576581 else false)
577582 then _chainExists(toChainId, "requestWithdrawal: invalid toChainId")
578583 else false)
579584 then _validateString(from_, "requestWithdrawal: invalid from")
580585 else false)
581586 then _validateString(to_, "requestWithdrawal: invalid to")
582587 else false)
583588 then _assetCurrencyExists(toChainId, asset_, "requestWithdrawal: invalid asset")
584589 else false)
585590 then _validateBigInt(amount, ZERO_BIGINT, "requestWithdrawal: invalid amount")
586591 else false
587592 if ((err == err))
588593 then {
589594 let err1 = if ((_loadChain(fromChainId) == WAVES))
590595 then _validateWavesVault(i.caller, "requestWithdrawal: invalid waves vault")
591596 else if (_validateExecutor(i.caller, "requestWithdrawal: invalid executor"))
592597 then _validateCallerContract(fromChainId, callerContract_, "requestWithdrawal: invalid caller contract")
593598 else false
594599 if ((err1 == err1))
595600 then {
596601 let currency = _loadAssetCurrency(toChainId, asset_)
597602 let availableBalance = match invoke(_loadAccountStorage(), FUNC_GET_USER_BALANCE, [from_, SPOT_WALLET, currency], nil) {
598603 case a: String =>
599604 parseBigIntValue(a)
600605 case _ =>
601606 throw("requestWithdrawal: can't take available balance from storage")
602607 }
603608 if ((availableBalance == availableBalance))
604609 then {
605610 let lockedReserves = _loadAssetReservesLocked(toChainId, asset_)
606611 let userLockedCurrency = _loadUserLockedCurrency(currency, from_)
607- let $t01929519750 = if (if (((availableBalance - userLockedCurrency) >= amount))
612+ let $t01943719892 = if (if (((availableBalance - userLockedCurrency) >= amount))
608613 then ((_loadAssetReserves(toChainId, asset_) - lockedReserves) >= amount)
609614 else false)
610615 then $Tuple2(REQUEST_STATUS_CREATED, (_saveAssetReservesLocked(toChainId, asset_, (lockedReserves + amount)) ++ _saveUserLockedCurrency(currency, from_, (amount + userLockedCurrency))))
611616 else $Tuple2(REQUEST_STATUS_REJECTED, nil)
612- let requestStatus = $t01929519750._1
613- let reservesActions = $t01929519750._2
617+ let requestStatus = $t01943719892._1
618+ let reservesActions = $t01943719892._2
614619 let requestWithdrawalSize = _loadRequestWithdrawalSize()
615620 let requestWithdrawal = $Tuple8(from_, to_, toChainId, asset_, amount, height, toBase58String(i.transactionId), requestStatus)
616621 $Tuple2(((_saveRequestWithdrawal(requestWithdrawalSize, requestWithdrawal) ++ _saveRequestWithdrawalSize((requestWithdrawalSize + 1))) ++ reservesActions), requestWithdrawalSize)
617622 }
618623 else throw("Strict value is not equal to itself.")
619624 }
620625 else throw("Strict value is not equal to itself.")
621626 }
622627 else throw("Strict value is not equal to itself.")
623628 }
624629
625630
626631
627632 @Callable(i)
628633 func executeWithdrawal (callerContract_,chainId_,requestWithdrawalId_) = {
629634 let chainId = valueOrErrorMessage(parseInt(chainId_), "executeWithdrawal: chainId not int")
630635 let requestWithdrawalId = valueOrErrorMessage(parseInt(requestWithdrawalId_), "executeWithdrawal: requestWithdrawalId not int")
631636 let requestWithdrawalSize = _loadRequestWithdrawalSize()
632637 let err = if (if (_whenInitialized())
633638 then _chainExists(chainId, "executeWithdrawal: invalid chainId")
634639 else false)
635640 then _validateInt(requestWithdrawalId, 0, (requestWithdrawalSize - 1), "executeWithdrawal: invalid requestWithdrawalId")
636641 else false
637642 if ((err == err))
638643 then {
639644 let err1 = if ((_loadChain(chainId) == WAVES))
640645 then _validateWavesVault(i.caller, "executeWithdrawal: invalid waves vault")
641646 else if (_validateExecutor(i.caller, "executeWithdrawal: invalid executor"))
642647 then _validateCallerContract(chainId, callerContract_, "executeWithdrawal: invalid caller contract")
643648 else false
644649 if ((err1 == err1))
645650 then {
646651 let request = _loadRequestWithdrawal(requestWithdrawalId)
647652 let requestFrom = request._1
648653 let requestTo = request._2
649654 let requestToChainId = request._3
650655 let requestAsset = request._4
651656 let requestAmount = request._5
652657 let requestHeight = request._6
653658 let requestStatus = request._8
654659 let newAssetReserves = (_loadAssetReserves(requestToChainId, requestAsset) - requestAmount)
655660 let newAssetReservesLocked = (_loadAssetReservesLocked(requestToChainId, requestAsset) - requestAmount)
656661 let currency = _loadAssetCurrency(requestToChainId, requestAsset)
657662 let newCurrencyReserves = (_loadCurrencyReserves(currency) - requestAmount)
658663 let newUserLockedCurrency = (_loadUserLockedCurrency(currency, requestFrom) - requestAmount)
659664 let err2 = if (if (if (if (if (_validateBigInt(newAssetReserves, ZERO_BIGINT, "executeWithdrawal: negative newAssetReserves"))
660665 then _validateBigInt(newAssetReservesLocked, ZERO_BIGINT, "executeWithdrawal: negative newAssetReservesLocked")
661666 else false)
662667 then _validateBigInt(newCurrencyReserves, ZERO_BIGINT, "executeWithdrawal: negative newCurrencyReserves")
663668 else false)
664669 then _validateBigInt(newUserLockedCurrency, ZERO_BIGINT, "executeWithdrawal: negative newUserLockedCurrency")
665670 else false)
666671 then _validateInt((height - requestHeight), _loadRequestWithdrawalBlockDelay(), MAX_INT, "executeWithdrawal: too early to execute")
667672 else false)
668673 then _requestIsCreated(requestStatus, "executeWithdrawal: request is resolved")
669674 else false
670675 if ((err2 == err2))
671676 then {
672677 let storageInvocation = invoke(_loadAccountStorage(), FUNC_WITHDRAW, [requestFrom, currency, toString(requestAmount)], nil)
673678 if ((storageInvocation == storageInvocation))
674679 then {
675680 let withdrawInvocation = if ((_loadChain(requestToChainId) == WAVES))
676681 then invoke(_loadWavesVault(), FUNC_WITHDRAW, [requestTo, requestAsset, toString(requestAmount)], nil)
677682 else invoke(_loadVaultAdapter(), FUNC_WITHDRAW, [requestToChainId, requestAsset, toString(requestAmount), requestTo], nil)
678683 if ((withdrawInvocation == withdrawInvocation))
679684 then {
680685 let requestUpdated = $Tuple8(request._1, request._2, request._3, request._4, request._5, request._6, request._7, REQUEST_STATUS_DONE)
681686 $Tuple2(((((_saveAssetReserves(requestToChainId, requestAsset, newAssetReserves) ++ _saveAssetReservesLocked(requestToChainId, requestAsset, newAssetReservesLocked)) ++ _saveCurrencyReserves(currency, newCurrencyReserves)) ++ _saveUserLockedCurrency(currency, requestFrom, newUserLockedCurrency)) ++ _saveRequestWithdrawal(requestWithdrawalId, requestUpdated)), unit)
682687 }
683688 else throw("Strict value is not equal to itself.")
684689 }
685690 else throw("Strict value is not equal to itself.")
686691 }
687692 else throw("Strict value is not equal to itself.")
688693 }
689694 else throw("Strict value is not equal to itself.")
690695 }
691696 else throw("Strict value is not equal to itself.")
692697 }
693698
694699
695700
696701 @Callable(i)
697702 func rejectWithdrawal (requestWithdrawalId_) = {
698703 let requestWithdrawalId = valueOrErrorMessage(parseInt(requestWithdrawalId_), "rejectWithdrawal: requestWithdrawalId not int")
699704 let requestWithdrawalSize = _loadRequestWithdrawalSize()
700705 let err = if (if (_whenInitialized())
701706 then _validateSequencer(i.caller, "rejectWithdrawal: invalid sequencer")
702707 else false)
703708 then _validateInt(requestWithdrawalId, 0, (requestWithdrawalSize - 1), "rejectWithdrawal: invalid requestWithdrawalId")
704709 else false
705710 if ((err == err))
706711 then {
707712 let request = _loadRequestWithdrawal(requestWithdrawalId)
708713 let requestFrom = request._1
709714 let requestTo = request._2
710715 let requestToChainId = request._3
711716 let requestAsset = request._4
712717 let requestAmount = request._5
713718 let requestHeight = request._6
714719 let requestStatus = request._8
715720 let currency = _loadAssetCurrency(requestToChainId, requestAsset)
716721 let newAssetReservesLocked = (_loadAssetReservesLocked(requestToChainId, requestAsset) - requestAmount)
717722 let newUserLockedCurrency = (_loadUserLockedCurrency(currency, requestFrom) - requestAmount)
718723 let err1 = if (if (_validateBigInt(newAssetReservesLocked, ZERO_BIGINT, "rejectWithdrawal: negative newAssetReservesLocked"))
719724 then _validateBigInt(newUserLockedCurrency, ZERO_BIGINT, "rejectWithdrawal: negative newUserLockedCurrency")
720725 else false)
721726 then _requestIsCreated(requestStatus, "rejectWithdrawal: request is resolved")
722727 else false
723728 if ((err1 == err1))
724729 then {
725730 let availableBalance = match invoke(_loadAccountStorage(), FUNC_GET_USER_BALANCE, [requestFrom, SPOT_WALLET, currency], nil) {
726731 case a: String =>
727732 parseBigIntValue(a)
728733 case _ =>
729734 throw("rejectWithdrawal: can't take available balance from storage")
730735 }
731736 if ((availableBalance == availableBalance))
732737 then if ((requestAmount > availableBalance))
733738 then {
734739 let requestUpdated = $Tuple8(request._1, request._2, request._3, request._4, request._5, request._6, request._7, REQUEST_STATUS_REJECTED)
735740 $Tuple2(((_saveAssetReservesLocked(requestToChainId, requestAsset, newAssetReservesLocked) ++ _saveUserLockedCurrency(currency, requestFrom, newUserLockedCurrency)) ++ _saveRequestWithdrawal(requestWithdrawalId, requestUpdated)), true)
736741 }
737742 else $Tuple2(nil, false)
738743 else throw("Strict value is not equal to itself.")
739744 }
740745 else throw("Strict value is not equal to itself.")
741746 }
742747 else throw("Strict value is not equal to itself.")
743748 }
744749
745750
746751
747752 @Callable(i)
748753 func withdraw (from_,to_,toChainId_,asset_,amount_,relayerFee_,timestamp_,web3Id_,alg_,signature_) = {
749754 let toChainId = valueOrErrorMessage(parseInt(toChainId_), "withdraw: toChainId not int")
750755 let amount = valueOrErrorMessage(parseBigInt(amount_), "withdraw: amount not int")
751756 let relayerFee = valueOrErrorMessage(parseBigInt(relayerFee_), "withdraw: relayerFee not int")
752757 let timestamp = valueOrErrorMessage(parseInt(timestamp_), "withdraw: timestamp not int")
753758 let alg = valueOrErrorMessage(parseInt(alg_), "withdraw: alg not int")
754759 let web3Id = fromBase58String(web3Id_)
755760 let signature = fromBase58String(signature_)
756761 let err = if (if (if (if (if (if (if (if (if (if (if (_whenInitialized())
757762 then _validateSequencer(i.caller, "withdraw: invalid sequencer")
758763 else false)
759764 then _validateString(from_, "withdraw: invalid from")
760765 else false)
761766 then _validateString(to_, "withdraw: invalid to")
762767 else false)
763768 then _chainExists(toChainId, "withdraw: invalid toChainId")
764769 else false)
765770 then _assetCurrencyExists(toChainId, asset_, "withdraw: invalid asset")
766771 else false)
767772 then _validateBigInt(amount, ZERO_BIGINT, "withdraw: invalid amount")
768773 else false)
769774 then _validateBigInt_2(relayerFee, ZERO_BIGINT, amount, "withdraw: invalid relayerFee")
770775 else false)
771776 then _validateInt((timestamp + ONE_DAY), lastBlock.timestamp, MAX_INT, "withdraw: invalid timestamp")
772777 else false)
773778 then _validateWeb3Id(web3Id, alg, "withdraw: inv web3Id")
774779 else false)
775780 then _validateSignatureFormat(signature, alg, "withdraw: inv sig format")
776781 else false)
777782 then _validateWeb3IdMatchesAddress(web3Id, from_, alg, "withdraw: web3Id mismatch")
778783 else false
779784 if ((err == err))
780785 then {
781786 let withdrawalBytes = (((((((((((toBytes(size(from_)) + toBytes(from_)) + toBytes(size(to_))) + toBytes(to_)) + toBytes(toChainId)) + toBytes(size(asset_))) + toBytes(asset_)) + toBytes(amount)) + toBytes(relayerFee)) + toBytes(timestamp)) + web3Id) + toBytes(alg))
782787 let withdrawalHash = keccak256_16Kb(withdrawalBytes)
783788 let currency = _loadAssetCurrency(toChainId, asset_)
784789 let availableBalance = match invoke(_loadAccountStorage(), FUNC_GET_USER_BALANCE, [from_, SPOT_WALLET, currency], nil) {
785790 case a: String =>
786791 parseBigIntValue(a)
787792 case _ =>
788793 throw("withdraw: can't take available balance from storage")
789794 }
790795 if ((availableBalance == availableBalance))
791796 then {
792797 let assetReserves = _loadAssetReserves(toChainId, asset_)
793798 let lockedReserves = _loadAssetReservesLocked(toChainId, asset_)
794799 let amountToSend = (amount - relayerFee)
795800 let amountToSendStr = toString(amountToSend)
796801 let err1 = if (if (if (_validateWithdrawalSignature(withdrawalHash, signature, web3Id, alg, "withdraw: invalid sig"))
797802 then _checkWithdrawalHashNotExist(withdrawalHash, "withdraw: already executed")
798803 else false)
799804 then _validateBigInt(availableBalance, amountToSend, "withdraw: insufficient balance")
800805 else false)
801806 then _validateBigInt((assetReserves - lockedReserves), amountToSend, "withdraw: insufficient reserves")
802807 else false
803808 if ((err1 == err1))
804809 then {
805810 let newAssetReserves = (assetReserves - amountToSend)
806811 let newCurrencyReserves = (_loadCurrencyReserves(currency) - amountToSend)
807812 let err2 = if (_validateBigInt(newAssetReserves, ZERO_BIGINT, "withdraw: negative newAssetReserves"))
808813 then _validateBigInt(newCurrencyReserves, ZERO_BIGINT, "withdraw: negative newCurrencyReserves")
809814 else false
810815 if ((err2 == err2))
811816 then {
812817 let storageInvocation1 = invoke(_loadAccountStorage(), FUNC_WITHDRAW, [from_, currency, amount_], nil)
813818 if ((storageInvocation1 == storageInvocation1))
814819 then {
815820 let storageInvocation2 = invoke(_loadAccountStorage(), FUNC_DEPOSIT, [_loadRelayerFeeRecipient(), currency, relayerFee_], nil)
816821 if ((storageInvocation2 == storageInvocation2))
817822 then {
818823 let withdrawInvocation = if ((_loadChain(toChainId) == WAVES))
819824 then invoke(_loadWavesVault(), FUNC_WITHDRAW, [to_, asset_, amountToSendStr], nil)
820825 else invoke(_loadVaultAdapter(), FUNC_WITHDRAW, [toChainId, asset_, amountToSendStr, to_, relayerFee_], nil)
821826 if ((withdrawInvocation == withdrawInvocation))
822827 then $Tuple2(((_saveAssetReserves(toChainId, asset_, newAssetReserves) ++ _saveCurrencyReserves(currency, newCurrencyReserves)) ++ _saveWithdrawalHash(withdrawalHash, toBase58String(i.transactionId))), unit)
823828 else throw("Strict value is not equal to itself.")
824829 }
825830 else throw("Strict value is not equal to itself.")
826831 }
827832 else throw("Strict value is not equal to itself.")
828833 }
829834 else throw("Strict value is not equal to itself.")
830835 }
831836 else throw("Strict value is not equal to itself.")
832837 }
833838 else throw("Strict value is not equal to itself.")
834839 }
835840 else throw("Strict value is not equal to itself.")
836841 }
837842
838843
839844
840845 @Callable(i)
841846 func depositStakingReward (callerContract_,chainId_,asset_,amount_) = {
842847 let chainId = valueOrErrorMessage(parseInt(chainId_), "depositStakingReward: chainId not int")
843848 let amount = valueOrErrorMessage(parseBigInt(amount_), "depositStakingReward: amount not int")
844849 let err = if (if (if (if (_whenInitialized())
845850 then _whenNotPaused()
846851 else false)
847852 then _chainExists(chainId, "depositStakingReward: invalid chainId")
848853 else false)
849854 then _assetCurrencyExists(chainId, asset_, "depositStakingReward: invalid asset")
850855 else false)
851856 then _validateBigInt(amount, ZERO_BIGINT, "depositStakingReward: invalid amount")
852857 else false
853858 if ((err == err))
854859 then {
855860 let err1 = if ((_loadChain(chainId) == WAVES))
856861 then _validateWavesVault(i.caller, "depositStakingReward: invalid waves vault")
857862 else if (_validateExecutor(i.caller, "depositStakingReward: invalid executor"))
858863 then _validateCallerContract(chainId, callerContract_, "depositStakingReward: invalid caller contract")
859864 else false
860865 if ((err1 == err1))
861866 then {
862867 let newAssetReserves = (_loadAssetReserves(chainId, asset_) + amount)
863868 let currency = _loadAssetCurrency(chainId, asset_)
864869 let newCurrencyReserves = (_loadCurrencyReserves(currency) + amount)
865870 let invocation = invoke(_loadAccountStorage(), FUNC_DEPOSIT_STAKING_REWARD, [_loadRewardDistributor(), currency, amount_], nil)
866871 if ((invocation == invocation))
867872 then $Tuple2((_saveAssetReserves(chainId, asset_, newAssetReserves) ++ _saveCurrencyReserves(currency, newCurrencyReserves)), unit)
868873 else throw("Strict value is not equal to itself.")
869874 }
870875 else throw("Strict value is not equal to itself.")
871876 }
872877 else throw("Strict value is not equal to itself.")
873878 }
874879
875880
876881
877882 @Callable(i)
878883 func addChain (chainId_,name_,callerContract_) = {
879884 let err = if (if (if (if (if (_onlyThisContract(i.caller))
880885 then _whenInitialized()
881886 else false)
882887 then _validateInt(chainId_, 0, MAX_INT, "addChain: invalid chainId")
883888 else false)
884889 then _validateString(name_, "addChain: invalid name")
885890 else false)
886891 then _validateString(callerContract_, "addChain: invalid callerContract")
887892 else false)
888893 then _chainNotExist(chainId_, "addChain: already exists")
889894 else false
890895 if ((err == err))
891896 then $Tuple2((_saveChain(chainId_, name_) ++ _saveCallerContract(chainId_, callerContract_)), unit)
892897 else throw("Strict value is not equal to itself.")
893898 }
894899
895900
896901
897902 @Callable(i)
898903 func addAsset (chainId_,asset_,currency_) = {
899904 let err = if (if (if (if (if (_onlyThisContract(i.caller))
900905 then _whenInitialized()
901906 else false)
902907 then _chainExists(chainId_, "addAsset: invalid chainId")
903908 else false)
904909 then _validateString(asset_, "addAsset: invalid asset")
905910 else false)
906911 then _validateString(currency_, "addAsset: invalid currency")
907912 else false)
908913 then _assetCurrencyNotExist(chainId_, asset_, "addAsset: already exists")
909914 else false
910915 if ((err == err))
911916 then $Tuple2(_saveAssetCurrency(chainId_, asset_, currency_), unit)
912917 else throw("Strict value is not equal to itself.")
913918 }
914919
915920
916921
917922 @Callable(i)
918923 func setRequestWithdrawalBlockDelay (delay_) = {
919924 let err = if (if (_onlyThisContract(i.caller))
920925 then _whenInitialized()
921926 else false)
922927 then _validateInt(delay_, 0, MAX_INT, "setRequestWithdrawalBlockDelay: invalid delay")
923928 else false
924929 if ((err == err))
925930 then $Tuple2(_saveRequestWithdrawalBlockDelay(delay_), unit)
926931 else throw("Strict value is not equal to itself.")
927932 }
928933
929934
930935
931936 @Callable(i)
932937 func updateRewardDistributor (rewardDistributor_) = {
933938 let err = if (if (_onlyThisContract(i.caller))
934939 then _whenInitialized()
935940 else false)
936941 then _validateString(rewardDistributor_, "updateRewardDistributor: invalid rewardDistributor")
937942 else false
938943 if ((err == err))
939944 then $Tuple2(_saveRewardDistributor(rewardDistributor_), unit)
940945 else throw("Strict value is not equal to itself.")
941946 }
942947
943948
944949
945950 @Callable(i)
946951 func updateRelayerFeeRecipient (relayerFeeRecipient_) = {
947952 let err = if (if (_onlyThisContract(i.caller))
948953 then _whenInitialized()
949954 else false)
950955 then _validateString(relayerFeeRecipient_, "updateRelayerFeeRecipient: invalid relayerFeeRecipient")
951956 else false
952957 if ((err == err))
953958 then $Tuple2(_saveRelayerFeeRecipient(relayerFeeRecipient_), unit)
954959 else throw("Strict value is not equal to itself.")
955960 }
956961
957962
958963
959964 @Callable(i)
960965 func pause () = {
961966 let err = if (if (_onlyPauser(i.caller))
962967 then _whenInitialized()
963968 else false)
964969 then _whenNotPaused()
965970 else false
966971 if ((err == err))
967972 then $Tuple2(_savePause(true), unit)
968973 else throw("Strict value is not equal to itself.")
969974 }
970975
971976
972977
973978 @Callable(i)
974979 func unpause () = {
975980 let err = if (if (_onlyPauser(i.caller))
976981 then _whenInitialized()
977982 else false)
978983 then _whenPaused()
979984 else false
980985 if ((err == err))
981986 then $Tuple2(_savePause(false), unit)
982987 else throw("Strict value is not equal to itself.")
983988 }
984989
985990
986991
987992 @Callable(i)
988993 func updatePauser (pauser_) = {
989994 let err = if (if (_onlyThisContract(i.caller))
990995 then _whenInitialized()
991996 else false)
992997 then _validateAddress(pauser_, "updatePauser: invalid pauser")
993998 else false
994999 if ((err == err))
9951000 then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit)
9961001 else throw("Strict value is not equal to itself.")
9971002 }
9981003
9991004
10001005
10011006 @Callable(i)
10021007 func setMultisig (multisig_) = {
10031008 let err = if (_onlyThisContract(i.caller))
10041009 then _validateAddress(multisig_, "setMultisig: invalid multisig")
10051010 else false
10061011 if ((err == err))
10071012 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
10081013 else throw("Strict value is not equal to itself.")
10091014 }
10101015
10111016
10121017 @Verifier(tx)
10131018 func verify () = match getString(KEY_MULTISIG) {
10141019 case multisig: String =>
10151020 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
10161021 case _ =>
10171022 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
10181023 }
10191024

github/deemru/w8io/026f985 
132.01 ms