tx · 8kcReFwfsRJrzi6D6hVpGw48Q1gUeegTiGRjbGPWEZTs 3N6ALE8YyAYnRk9f38mdWRTvW77rFkg5hN1: -0.02300000 Waves 2024.02.05 12:14 [2962774] smart account 3N6ALE8YyAYnRk9f38mdWRTvW77rFkg5hN1 > SELF 0.00000000 Waves
{ "type": 13, "id": "8kcReFwfsRJrzi6D6hVpGw48Q1gUeegTiGRjbGPWEZTs", "fee": 2300000, "feeAssetId": null, "timestamp": 1707124403656, "version": 2, "chainId": 84, "sender": "3N6ALE8YyAYnRk9f38mdWRTvW77rFkg5hN1", "senderPublicKey": "HMMF9zUpZPBGLAhpc1yDdcJNJychSarGHS79P2mGvq7J", "proofs": [ "VmgV7MMTEP6EPZScoZCorNwg59aBmZouasWRJ2MtMo6PbkrhuiCm5DdihM6MCqDmuHjz92oy3EaePWgZokjr2w2" ], "script": "base64:BgJACAISBgoECAgICBIHCgUICAgICBIGCgQICAgIEgASAwoBARIECgIBARIDCgEIEgMKAQgSABIAEgMKAQgSAwoBCF0ACVNFUEFSQVRPUgICX18ABVdBVkVTAgVXQVZFUwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAKS0VZX1BBVVNFRAIGUEFVU0VEAApLRVlfUEFVU0VSAgZQQVVTRVIADEtFWV9FWEVDVVRPUgIIRVhFQ1VUT1IACktFWV9PUkFDTEUCBk9SQUNMRQATS0VZX0NBTExFUl9DT05UUkFDVAIPQ0FMTEVSX0NPTlRSQUNUAAlLRVlfUFJJQ0UCBVBSSUNFABFLRVlfVVNFUl9QT1NJVElPTgINVVNFUl9QT1NJVElPTgAUS0VZX1VTRVJfVVNEX0JBTEFOQ0UCEFVTRVJfVVNEX0JBTEFOQ0UAJ0tFWV9VU0VSX1VOSVRTX1BFUl9VU0RfQkFMQU5DRV9JTlRFR1JBTAIjVVNFUl9VTklUU19QRVJfVVNEX0JBTEFOQ0VfSU5URUdSQUw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U4f4CW2aVuTYT8RwtVwUhVKDNTGwy3BNy Diff:
Old | New | Differences | |
---|---|---|---|
47 | 47 | ||
48 | 48 | let KEY_UNITS_BALANCE = "UNITS_BALANCE" | |
49 | 49 | ||
50 | + | let KEY_TOKEN_BALANCE = "TOKEN_BALANCE" | |
51 | + | ||
52 | + | let KEY_SWAVES_CONTRACT = "SWAVES_CONTRACT" | |
53 | + | ||
54 | + | let KEY_SWAVES_ASSET = "ASSET" | |
55 | + | ||
56 | + | let FUNC_DEPOSIT = "deposit" | |
57 | + | ||
58 | + | let FUNC_GET_RATE = "getRate" | |
59 | + | ||
60 | + | let FUNC_WITHDRAW = "withdraw" | |
61 | + | ||
50 | 62 | let MAX_INT = 9223372036854775807 | |
51 | 63 | ||
52 | 64 | let PERCENT_FACTOR = toBigInt(1000000000000) | |
53 | 65 | ||
54 | 66 | let ZERO_BIGINT = toBigInt(0) | |
67 | + | ||
68 | + | let SWAVES_RATE_FACTOR = toBigInt(1000000000000) | |
55 | 69 | ||
56 | 70 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
57 | 71 | case a: Address => | |
167 | 181 | ||
168 | 182 | func _loadUserPosition (token_,user_) = match getString(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR)) { | |
169 | 183 | case a: String => | |
170 | - | let struct = split(a, SEPARATOR) | |
184 | + | let struct = split_51C(a, SEPARATOR) | |
171 | 185 | $Tuple2(parseBigIntValue(struct[0]), parseBigIntValue(struct[1])) | |
172 | 186 | case _ => | |
173 | 187 | $Tuple2(ZERO_BIGINT, ZERO_BIGINT) | |
174 | 188 | } | |
175 | 189 | ||
176 | 190 | ||
177 | - | func _saveUserPosition (token_,user_,position_) = [StringEntry(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR), makeString([toString(position_._1), toString(position_._2)], SEPARATOR))] | |
191 | + | func _saveUserPosition (token_,user_,position_) = [StringEntry(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR), makeString_11C([toString(position_._1), toString(position_._2)], SEPARATOR))] | |
178 | 192 | ||
179 | 193 | ||
180 | 194 | func _loadUserUSDBalance (user_) = match getString(makeString([KEY_USER_USD_BALANCE, user_], SEPARATOR)) { | |
185 | 199 | } | |
186 | 200 | ||
187 | 201 | ||
188 | - | func _saveUserUSDBalance (user_,value_) = [StringEntry(KEY_USER_USD_BALANCE, toString(value_))] | |
202 | + | func _saveUserUSDBalance (user_,value_) = [StringEntry(makeString([KEY_USER_USD_BALANCE, user_], SEPARATOR), toString(value_))] | |
189 | 203 | ||
190 | 204 | ||
191 | 205 | func _loadUnitsPerUSDBalanceIntegral () = match getString(KEY_UNITS_PER_USD_BALANCE_INTEGRAL) { | |
298 | 312 | func _saveTotalUSDBalance (value_) = [StringEntry(KEY_TOTAL_USD_BALANCE, toString(value_))] | |
299 | 313 | ||
300 | 314 | ||
315 | + | func _loadSWavesContract () = match getString(KEY_SWAVES_CONTRACT) { | |
316 | + | case a: String => | |
317 | + | addressFromStringValue(a) | |
318 | + | case _ => | |
319 | + | Address(base58'') | |
320 | + | } | |
321 | + | ||
322 | + | ||
323 | + | func _saveSWavesContract (contract_) = [StringEntry(KEY_SWAVES_CONTRACT, toString(contract_))] | |
324 | + | ||
325 | + | ||
326 | + | func _loadSWavesAsset (contract_) = match getString(contract_, KEY_SWAVES_ASSET) { | |
327 | + | case a: String => | |
328 | + | fromBase58String(a) | |
329 | + | case _ => | |
330 | + | throw("_loadSWavesAsset: revert") | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | func _loadTokenBalance (token_) = match getString(makeString([KEY_TOKEN_BALANCE, token_], SEPARATOR)) { | |
335 | + | case a: String => | |
336 | + | parseBigIntValue(a) | |
337 | + | case _ => | |
338 | + | ZERO_BIGINT | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | func _saveTokenBalance (token_,value_) = [StringEntry(makeString([KEY_TOKEN_BALANCE, token_], SEPARATOR), toString(value_))] | |
343 | + | ||
344 | + | ||
301 | 345 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
302 | 346 | then throw("_onlyThisContract: revert") | |
303 | 347 | else true | |
367 | 411 | ||
368 | 412 | ||
369 | 413 | func _userCheckpoint (user_,userUSDBalance_) = { | |
370 | - | let $ | |
371 | - | let checkpointActions = $ | |
372 | - | let unitsPerUSDBalanceIntegral = $ | |
414 | + | let $t01275212819 = _checkpoint() | |
415 | + | let checkpointActions = $t01275212819._1 | |
416 | + | let unitsPerUSDBalanceIntegral = $t01275212819._2 | |
373 | 417 | let prevUserUnitsPerUSDBalanceIntegral = _loadUserUnitsPerUSDBalanceIntegral(user_) | |
374 | 418 | let prevUserCheckpointAt = max([_loadStartBlock(), _loadUserCheckpointAt(user_)]) | |
375 | 419 | let prevUserUnitsBalance = _loadUserUnitsBalance(user_) | |
384 | 428 | ||
385 | 429 | ||
386 | 430 | @Callable(i) | |
387 | - | func init (executor_,oracle_,pauser_) = { | |
388 | - | let err = if (if (if (if (if (_onlyThisContract(i.caller)) | |
431 | + | func init (executor_,oracle_,pauser_,sWavesContract_) = { | |
432 | + | let err = if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
389 | 433 | then _whenNotInitialized() | |
390 | 434 | else false) | |
391 | 435 | then _whenMultisigSet() | |
395 | 439 | then _validateAddress(oracle_, "init: invalid oracle") | |
396 | 440 | else false) | |
397 | 441 | then _validateAddress(pauser_, "init: invalid pauser") | |
442 | + | else false) | |
443 | + | then _validateAddress(sWavesContract_, "init: invalid sWavesContract") | |
398 | 444 | else false | |
399 | 445 | if ((err == err)) | |
400 | - | then $Tuple2((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveOracle(addressFromStringValue(oracle_))) ++ _savePauser(addressFromStringValue(pauser_))), unit) | |
446 | + | then $Tuple2(((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveOracle(addressFromStringValue(oracle_))) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveSWavesContract(addressFromStringValue(sWavesContract_))), unit) | |
401 | 447 | else throw("Strict value is not equal to itself.") | |
402 | 448 | } | |
403 | 449 | ||
418 | 464 | if ((err == err)) | |
419 | 465 | then { | |
420 | 466 | let rate = _getTokenRate(token_) | |
421 | - | let $ | |
422 | - | let userTokenBalance = $ | |
423 | - | let userTokenBalanceInUSD = $ | |
467 | + | let $t01511215194 = _loadUserPosition(token_, sender_) | |
468 | + | let userTokenBalance = $t01511215194._1 | |
469 | + | let userTokenBalanceInUSD = $t01511215194._2 | |
424 | 470 | let userUSDBalance = _loadUserUSDBalance(sender_) | |
425 | - | let $ | |
426 | - | let checkpointActions = $ | |
427 | - | let userUnitsBalance = $ | |
471 | + | let $t01525315337 = _userCheckpoint(sender_, userUSDBalance) | |
472 | + | let checkpointActions = $t01525315337._1 | |
473 | + | let userUnitsBalance = $t01525315337._2 | |
428 | 474 | let newUserTokenBalance = (userTokenBalance + toBigInt(amount)) | |
429 | 475 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
430 | 476 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
431 | 477 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
432 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, | |
478 | + | $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(token_, (_loadTokenBalance(token_) + toBigInt(amount)))) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), userUnitsBalance) | |
433 | 479 | } | |
434 | 480 | else throw("Strict value is not equal to itself.") | |
435 | 481 | } | |
451 | 497 | if ((err == err)) | |
452 | 498 | then { | |
453 | 499 | let rate = _getTokenRate(token_) | |
454 | - | let $ | |
455 | - | let userTokenBalance = $ | |
456 | - | let userTokenBalanceInUSD = $ | |
500 | + | let $t01659516677 = _loadUserPosition(token_, sender_) | |
501 | + | let userTokenBalance = $t01659516677._1 | |
502 | + | let userTokenBalanceInUSD = $t01659516677._2 | |
457 | 503 | let userUSDBalance = _loadUserUSDBalance(sender_) | |
458 | - | let $ | |
459 | - | let checkpointActions = $ | |
460 | - | let userUnitsBalance = $ | |
504 | + | let $t01673616820 = _userCheckpoint(sender_, userUSDBalance) | |
505 | + | let checkpointActions = $t01673616820._1 | |
506 | + | let userUnitsBalance = $t01673616820._2 | |
461 | 507 | let newUserTokenBalance = (userTokenBalance - toBigInt(amount)) | |
462 | 508 | let err1 = _validateInt(toInt(newUserTokenBalance), 0, MAX_INT, "withdraw: insufficient token amount") | |
463 | 509 | if ((err1 == err1)) | |
465 | 511 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
466 | 512 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
467 | 513 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
468 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, | |
514 | + | $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(token_, (_loadTokenBalance(token_) - toBigInt(amount)))) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), unit) | |
469 | 515 | } | |
470 | 516 | else throw("Strict value is not equal to itself.") | |
471 | 517 | } | |
491 | 537 | let sender = toString(i.caller) | |
492 | 538 | let token = WAVES | |
493 | 539 | let rate = _getTokenRate(token) | |
494 | - | let $ | |
495 | - | let userTokenBalance = $ | |
496 | - | let userTokenBalanceInUSD = $ | |
540 | + | let $t01813218212 = _loadUserPosition(token, sender) | |
541 | + | let userTokenBalance = $t01813218212._1 | |
542 | + | let userTokenBalanceInUSD = $t01813218212._2 | |
497 | 543 | let userUSDBalance = _loadUserUSDBalance(sender) | |
498 | - | let $ | |
499 | - | let checkpointActions = $ | |
500 | - | let userUnitsBalance = $ | |
544 | + | let $t01827018353 = _userCheckpoint(sender, userUSDBalance) | |
545 | + | let checkpointActions = $t01827018353._1 | |
546 | + | let userUnitsBalance = $t01827018353._2 | |
501 | 547 | let newUserTokenBalance = (userTokenBalance + toBigInt(amount)) | |
502 | 548 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
503 | 549 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
504 | 550 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
505 | - | $Tuple2(((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserUSDBalance))), userUnitsBalance) | |
551 | + | let invocation = invoke(_loadSWavesContract(), FUNC_DEPOSIT, nil, [AttachedPayment(unit, amount)]) | |
552 | + | if ((invocation == invocation)) | |
553 | + | then $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(WAVES, (_loadTokenBalance(WAVES) + toBigInt(amount)))) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), userUnitsBalance) | |
554 | + | else throw("Strict value is not equal to itself.") | |
506 | 555 | } | |
507 | 556 | else throw("Strict value is not equal to itself.") | |
508 | 557 | } | |
521 | 570 | let sender = toString(i.caller) | |
522 | 571 | let token = WAVES | |
523 | 572 | let rate = _getTokenRate(token) | |
524 | - | let $ | |
525 | - | let userTokenBalance = $ | |
526 | - | let userTokenBalanceInUSD = $ | |
573 | + | let $t01948819568 = _loadUserPosition(token, sender) | |
574 | + | let userTokenBalance = $t01948819568._1 | |
575 | + | let userTokenBalanceInUSD = $t01948819568._2 | |
527 | 576 | let userUSDBalance = _loadUserUSDBalance(sender) | |
528 | - | let $ | |
529 | - | let checkpointActions = $ | |
530 | - | let userUnitsBalance = $ | |
577 | + | let $t01962619709 = _userCheckpoint(sender, userUSDBalance) | |
578 | + | let checkpointActions = $t01962619709._1 | |
579 | + | let userUnitsBalance = $t01962619709._2 | |
531 | 580 | let newUserTokenBalance = (userTokenBalance - toBigInt(amount_)) | |
532 | 581 | let err1 = _validateInt(toInt(newUserTokenBalance), 0, MAX_INT, "withdrawWaves: insufficient token amount") | |
533 | 582 | if ((err1 == err1)) | |
535 | 584 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
536 | 585 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
537 | 586 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
538 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserUSDBalance))), unit) | |
587 | + | let sWavesContract = _loadSWavesContract() | |
588 | + | let sWavesAsset = _loadSWavesAsset(sWavesContract) | |
589 | + | let invocation = invoke(sWavesContract, FUNC_GET_RATE, nil, nil) | |
590 | + | let swavesRate = match invocation { | |
591 | + | case a: String => | |
592 | + | parseBigIntValue(a) | |
593 | + | case _ => | |
594 | + | throw("withdrawWaves: sWaves getRate() revert") | |
595 | + | } | |
596 | + | let sWavesToWithdraw = toInt(fraction(toBigInt(amount_), SWAVES_RATE_FACTOR, swavesRate, CEILING)) | |
597 | + | let invocation1 = invoke(sWavesContract, FUNC_WITHDRAW, nil, [AttachedPayment(sWavesAsset, sWavesToWithdraw)]) | |
598 | + | if ((invocation1 == invocation1)) | |
599 | + | then $Tuple2(((((([ScriptTransfer(i.caller, amount_, unit)] ++ checkpointActions) ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(WAVES, (_loadTokenBalance(WAVES) - toBigInt(amount_)))) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), unit) | |
600 | + | else throw("Strict value is not equal to itself.") | |
539 | 601 | } | |
540 | 602 | else throw("Strict value is not equal to itself.") | |
541 | 603 | } | |
571 | 633 | ||
572 | 634 | @Callable(i) | |
573 | 635 | func getUnits (user_) = { | |
574 | - | let userUSDBalance = _loadUserUSDBalance(user_) | |
575 | - | let $t02154721619 = _userCheckpoint(user_, userUSDBalance) | |
576 | - | let actions = $t02154721619._1 | |
577 | - | let userUnitsBalance = $t02154721619._2 | |
636 | + | let $t02197822062 = _userCheckpoint(user_, _loadUserUSDBalance(user_)) | |
637 | + | let actions = $t02197822062._1 | |
638 | + | let userUnitsBalance = $t02197822062._2 | |
578 | 639 | $Tuple2(nil, userUnitsBalance) | |
579 | 640 | } | |
580 | 641 |
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 WAVES = "WAVES" | |
7 | 7 | ||
8 | 8 | let KEY_MULTISIG = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let KEY_STATUS = "STATUS" | |
11 | 11 | ||
12 | 12 | let KEY_INIT = "INIT" | |
13 | 13 | ||
14 | 14 | let KEY_PAUSED = "PAUSED" | |
15 | 15 | ||
16 | 16 | let KEY_PAUSER = "PAUSER" | |
17 | 17 | ||
18 | 18 | let KEY_EXECUTOR = "EXECUTOR" | |
19 | 19 | ||
20 | 20 | let KEY_ORACLE = "ORACLE" | |
21 | 21 | ||
22 | 22 | let KEY_CALLER_CONTRACT = "CALLER_CONTRACT" | |
23 | 23 | ||
24 | 24 | let KEY_PRICE = "PRICE" | |
25 | 25 | ||
26 | 26 | let KEY_USER_POSITION = "USER_POSITION" | |
27 | 27 | ||
28 | 28 | let KEY_USER_USD_BALANCE = "USER_USD_BALANCE" | |
29 | 29 | ||
30 | 30 | let KEY_USER_UNITS_PER_USD_BALANCE_INTEGRAL = "USER_UNITS_PER_USD_BALANCE_INTEGRAL" | |
31 | 31 | ||
32 | 32 | let KEY_USER_CHECKPOINT_AT = "USER_CHECKPOINT_AT" | |
33 | 33 | ||
34 | 34 | let KEY_USER_UNITS_BALANCE = "USER_UNITS_BALANCE" | |
35 | 35 | ||
36 | 36 | let KEY_START_BLOCK = "START_BLOCK" | |
37 | 37 | ||
38 | 38 | let KEY_FINISH_BLOCK = "FINISH_BLOCK" | |
39 | 39 | ||
40 | 40 | let KEY_UNITS_PER_BLOCK = "UNITS_PER_BLOCK" | |
41 | 41 | ||
42 | 42 | let KEY_TOTAL_USD_BALANCE = "TOTAL_USD_BALANCE" | |
43 | 43 | ||
44 | 44 | let KEY_UNITS_PER_USD_BALANCE_INTEGRAL = "UNITS_PER_USD_BALANCE_INTEGRAL" | |
45 | 45 | ||
46 | 46 | let KEY_CHECKPOINT_AT = "CHECKPOINT_AT" | |
47 | 47 | ||
48 | 48 | let KEY_UNITS_BALANCE = "UNITS_BALANCE" | |
49 | 49 | ||
50 | + | let KEY_TOKEN_BALANCE = "TOKEN_BALANCE" | |
51 | + | ||
52 | + | let KEY_SWAVES_CONTRACT = "SWAVES_CONTRACT" | |
53 | + | ||
54 | + | let KEY_SWAVES_ASSET = "ASSET" | |
55 | + | ||
56 | + | let FUNC_DEPOSIT = "deposit" | |
57 | + | ||
58 | + | let FUNC_GET_RATE = "getRate" | |
59 | + | ||
60 | + | let FUNC_WITHDRAW = "withdraw" | |
61 | + | ||
50 | 62 | let MAX_INT = 9223372036854775807 | |
51 | 63 | ||
52 | 64 | let PERCENT_FACTOR = toBigInt(1000000000000) | |
53 | 65 | ||
54 | 66 | let ZERO_BIGINT = toBigInt(0) | |
67 | + | ||
68 | + | let SWAVES_RATE_FACTOR = toBigInt(1000000000000) | |
55 | 69 | ||
56 | 70 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
57 | 71 | case a: Address => | |
58 | 72 | true | |
59 | 73 | case _ => | |
60 | 74 | throw(err_) | |
61 | 75 | } | |
62 | 76 | ||
63 | 77 | ||
64 | 78 | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
65 | 79 | then true | |
66 | 80 | else (val_ > upperBoundary_)) | |
67 | 81 | then throw(err_) | |
68 | 82 | else true | |
69 | 83 | ||
70 | 84 | ||
71 | 85 | func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_)) | |
72 | 86 | then throw(err_) | |
73 | 87 | else true | |
74 | 88 | ||
75 | 89 | ||
76 | 90 | func _validateWavesPayment (payment_,err_) = match payment_.assetId { | |
77 | 91 | case a: ByteVector => | |
78 | 92 | throw(err_) | |
79 | 93 | case _: Unit => | |
80 | 94 | true | |
81 | 95 | case _ => | |
82 | 96 | throw("Match error") | |
83 | 97 | } | |
84 | 98 | ||
85 | 99 | ||
86 | 100 | func _validateEqBigInt (val1_,val2_,err_) = if ((val1_ != val2_)) | |
87 | 101 | then throw(err_) | |
88 | 102 | else true | |
89 | 103 | ||
90 | 104 | ||
91 | 105 | func _loadInit () = match getBoolean(KEY_INIT) { | |
92 | 106 | case a: Boolean => | |
93 | 107 | a | |
94 | 108 | case _ => | |
95 | 109 | false | |
96 | 110 | } | |
97 | 111 | ||
98 | 112 | ||
99 | 113 | func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)] | |
100 | 114 | ||
101 | 115 | ||
102 | 116 | func _loadPause () = match getBoolean(KEY_PAUSED) { | |
103 | 117 | case a: Boolean => | |
104 | 118 | a | |
105 | 119 | case _ => | |
106 | 120 | false | |
107 | 121 | } | |
108 | 122 | ||
109 | 123 | ||
110 | 124 | func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)] | |
111 | 125 | ||
112 | 126 | ||
113 | 127 | func _loadPauser () = match getString(KEY_PAUSER) { | |
114 | 128 | case a: String => | |
115 | 129 | addressFromStringValue(a) | |
116 | 130 | case _ => | |
117 | 131 | Address(base58'') | |
118 | 132 | } | |
119 | 133 | ||
120 | 134 | ||
121 | 135 | func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))] | |
122 | 136 | ||
123 | 137 | ||
124 | 138 | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
125 | 139 | case a: String => | |
126 | 140 | addressFromStringValue(a) | |
127 | 141 | case _ => | |
128 | 142 | Address(base58'') | |
129 | 143 | } | |
130 | 144 | ||
131 | 145 | ||
132 | 146 | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
133 | 147 | ||
134 | 148 | ||
135 | 149 | func _loadExecutor () = match getString(KEY_EXECUTOR) { | |
136 | 150 | case a: String => | |
137 | 151 | addressFromStringValue(a) | |
138 | 152 | case _ => | |
139 | 153 | Address(base58'') | |
140 | 154 | } | |
141 | 155 | ||
142 | 156 | ||
143 | 157 | func _saveExecutor (executor_) = [StringEntry(KEY_EXECUTOR, toString(executor_))] | |
144 | 158 | ||
145 | 159 | ||
146 | 160 | func _loadOracle () = match getString(KEY_ORACLE) { | |
147 | 161 | case a: String => | |
148 | 162 | addressFromStringValue(a) | |
149 | 163 | case _ => | |
150 | 164 | Address(base58'') | |
151 | 165 | } | |
152 | 166 | ||
153 | 167 | ||
154 | 168 | func _saveOracle (oracle_) = [StringEntry(KEY_ORACLE, toString(oracle_))] | |
155 | 169 | ||
156 | 170 | ||
157 | 171 | func _loadCallerContract () = match getString(KEY_CALLER_CONTRACT) { | |
158 | 172 | case a: String => | |
159 | 173 | a | |
160 | 174 | case _ => | |
161 | 175 | "" | |
162 | 176 | } | |
163 | 177 | ||
164 | 178 | ||
165 | 179 | func _saveCallerContract (caller_) = [StringEntry(KEY_CALLER_CONTRACT, caller_)] | |
166 | 180 | ||
167 | 181 | ||
168 | 182 | func _loadUserPosition (token_,user_) = match getString(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR)) { | |
169 | 183 | case a: String => | |
170 | - | let struct = split(a, SEPARATOR) | |
184 | + | let struct = split_51C(a, SEPARATOR) | |
171 | 185 | $Tuple2(parseBigIntValue(struct[0]), parseBigIntValue(struct[1])) | |
172 | 186 | case _ => | |
173 | 187 | $Tuple2(ZERO_BIGINT, ZERO_BIGINT) | |
174 | 188 | } | |
175 | 189 | ||
176 | 190 | ||
177 | - | func _saveUserPosition (token_,user_,position_) = [StringEntry(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR), makeString([toString(position_._1), toString(position_._2)], SEPARATOR))] | |
191 | + | func _saveUserPosition (token_,user_,position_) = [StringEntry(makeString([KEY_USER_POSITION, token_, user_], SEPARATOR), makeString_11C([toString(position_._1), toString(position_._2)], SEPARATOR))] | |
178 | 192 | ||
179 | 193 | ||
180 | 194 | func _loadUserUSDBalance (user_) = match getString(makeString([KEY_USER_USD_BALANCE, user_], SEPARATOR)) { | |
181 | 195 | case a: String => | |
182 | 196 | parseBigIntValue(a) | |
183 | 197 | case _ => | |
184 | 198 | ZERO_BIGINT | |
185 | 199 | } | |
186 | 200 | ||
187 | 201 | ||
188 | - | func _saveUserUSDBalance (user_,value_) = [StringEntry(KEY_USER_USD_BALANCE, toString(value_))] | |
202 | + | func _saveUserUSDBalance (user_,value_) = [StringEntry(makeString([KEY_USER_USD_BALANCE, user_], SEPARATOR), toString(value_))] | |
189 | 203 | ||
190 | 204 | ||
191 | 205 | func _loadUnitsPerUSDBalanceIntegral () = match getString(KEY_UNITS_PER_USD_BALANCE_INTEGRAL) { | |
192 | 206 | case a: String => | |
193 | 207 | parseBigIntValue(a) | |
194 | 208 | case _ => | |
195 | 209 | ZERO_BIGINT | |
196 | 210 | } | |
197 | 211 | ||
198 | 212 | ||
199 | 213 | func _saveUnitsPerUSDBalanceIntegral (value_) = [StringEntry(KEY_UNITS_PER_USD_BALANCE_INTEGRAL, toString(value_))] | |
200 | 214 | ||
201 | 215 | ||
202 | 216 | func _loadUserUnitsPerUSDBalanceIntegral (user_) = match getString(makeString([KEY_USER_UNITS_PER_USD_BALANCE_INTEGRAL, user_], SEPARATOR)) { | |
203 | 217 | case a: String => | |
204 | 218 | parseBigIntValue(a) | |
205 | 219 | case _ => | |
206 | 220 | ZERO_BIGINT | |
207 | 221 | } | |
208 | 222 | ||
209 | 223 | ||
210 | 224 | func _saveUserUnitsPerUSDBalanceIntegral (user_,value_) = [StringEntry(makeString([KEY_USER_UNITS_PER_USD_BALANCE_INTEGRAL, user_], SEPARATOR), toString(value_))] | |
211 | 225 | ||
212 | 226 | ||
213 | 227 | func _loadCheckpointAt () = match getString(KEY_CHECKPOINT_AT) { | |
214 | 228 | case a: String => | |
215 | 229 | parseBigIntValue(a) | |
216 | 230 | case _ => | |
217 | 231 | ZERO_BIGINT | |
218 | 232 | } | |
219 | 233 | ||
220 | 234 | ||
221 | 235 | func _saveCheckpointAt (value_) = [StringEntry(KEY_CHECKPOINT_AT, toString(value_))] | |
222 | 236 | ||
223 | 237 | ||
224 | 238 | func _loadUserCheckpointAt (user_) = match getString(makeString([KEY_USER_CHECKPOINT_AT, user_], SEPARATOR)) { | |
225 | 239 | case a: String => | |
226 | 240 | parseBigIntValue(a) | |
227 | 241 | case _ => | |
228 | 242 | ZERO_BIGINT | |
229 | 243 | } | |
230 | 244 | ||
231 | 245 | ||
232 | 246 | func _saveUserCheckpointAt (user_,value_) = [StringEntry(makeString([KEY_USER_CHECKPOINT_AT, user_], SEPARATOR), toString(value_))] | |
233 | 247 | ||
234 | 248 | ||
235 | 249 | func _loadStartBlock () = match getString(KEY_START_BLOCK) { | |
236 | 250 | case a: String => | |
237 | 251 | parseBigIntValue(a) | |
238 | 252 | case _ => | |
239 | 253 | ZERO_BIGINT | |
240 | 254 | } | |
241 | 255 | ||
242 | 256 | ||
243 | 257 | func _saveStartBlock (value_) = [StringEntry(KEY_START_BLOCK, toString(value_))] | |
244 | 258 | ||
245 | 259 | ||
246 | 260 | func _loadFinishBlock () = match getString(KEY_FINISH_BLOCK) { | |
247 | 261 | case a: String => | |
248 | 262 | parseBigIntValue(a) | |
249 | 263 | case _ => | |
250 | 264 | ZERO_BIGINT | |
251 | 265 | } | |
252 | 266 | ||
253 | 267 | ||
254 | 268 | func _saveFinishBlock (value_) = [StringEntry(KEY_FINISH_BLOCK, toString(value_))] | |
255 | 269 | ||
256 | 270 | ||
257 | 271 | func _loadUnitsPerBlock () = match getString(KEY_UNITS_PER_BLOCK) { | |
258 | 272 | case a: String => | |
259 | 273 | parseBigIntValue(a) | |
260 | 274 | case _ => | |
261 | 275 | ZERO_BIGINT | |
262 | 276 | } | |
263 | 277 | ||
264 | 278 | ||
265 | 279 | func _saveUnitsPerBlock (value_) = [StringEntry(KEY_UNITS_PER_BLOCK, toString(value_))] | |
266 | 280 | ||
267 | 281 | ||
268 | 282 | func _loadUnitsBalance () = match getString(KEY_UNITS_BALANCE) { | |
269 | 283 | case a: String => | |
270 | 284 | parseBigIntValue(a) | |
271 | 285 | case _ => | |
272 | 286 | ZERO_BIGINT | |
273 | 287 | } | |
274 | 288 | ||
275 | 289 | ||
276 | 290 | func _saveUnitsBalance (value_) = [StringEntry(KEY_UNITS_BALANCE, toString(value_))] | |
277 | 291 | ||
278 | 292 | ||
279 | 293 | func _loadUserUnitsBalance (user_) = match getString(makeString([KEY_USER_UNITS_BALANCE, user_], SEPARATOR)) { | |
280 | 294 | case a: String => | |
281 | 295 | parseBigIntValue(a) | |
282 | 296 | case _ => | |
283 | 297 | ZERO_BIGINT | |
284 | 298 | } | |
285 | 299 | ||
286 | 300 | ||
287 | 301 | func _saveUserUnitsBalance (user_,value_) = [StringEntry(makeString([KEY_USER_UNITS_BALANCE, user_], SEPARATOR), toString(value_))] | |
288 | 302 | ||
289 | 303 | ||
290 | 304 | func _loadTotalUSDBalance () = match getString(KEY_TOTAL_USD_BALANCE) { | |
291 | 305 | case a: String => | |
292 | 306 | parseBigIntValue(a) | |
293 | 307 | case _ => | |
294 | 308 | ZERO_BIGINT | |
295 | 309 | } | |
296 | 310 | ||
297 | 311 | ||
298 | 312 | func _saveTotalUSDBalance (value_) = [StringEntry(KEY_TOTAL_USD_BALANCE, toString(value_))] | |
299 | 313 | ||
300 | 314 | ||
315 | + | func _loadSWavesContract () = match getString(KEY_SWAVES_CONTRACT) { | |
316 | + | case a: String => | |
317 | + | addressFromStringValue(a) | |
318 | + | case _ => | |
319 | + | Address(base58'') | |
320 | + | } | |
321 | + | ||
322 | + | ||
323 | + | func _saveSWavesContract (contract_) = [StringEntry(KEY_SWAVES_CONTRACT, toString(contract_))] | |
324 | + | ||
325 | + | ||
326 | + | func _loadSWavesAsset (contract_) = match getString(contract_, KEY_SWAVES_ASSET) { | |
327 | + | case a: String => | |
328 | + | fromBase58String(a) | |
329 | + | case _ => | |
330 | + | throw("_loadSWavesAsset: revert") | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | func _loadTokenBalance (token_) = match getString(makeString([KEY_TOKEN_BALANCE, token_], SEPARATOR)) { | |
335 | + | case a: String => | |
336 | + | parseBigIntValue(a) | |
337 | + | case _ => | |
338 | + | ZERO_BIGINT | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | func _saveTokenBalance (token_,value_) = [StringEntry(makeString([KEY_TOKEN_BALANCE, token_], SEPARATOR), toString(value_))] | |
343 | + | ||
344 | + | ||
301 | 345 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
302 | 346 | then throw("_onlyThisContract: revert") | |
303 | 347 | else true | |
304 | 348 | ||
305 | 349 | ||
306 | 350 | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
307 | 351 | then throw("_whenMultisigSet: revert") | |
308 | 352 | else true | |
309 | 353 | ||
310 | 354 | ||
311 | 355 | func _whenNotInitialized () = if (_loadInit()) | |
312 | 356 | then throw("_whenNotInitialized: revert") | |
313 | 357 | else true | |
314 | 358 | ||
315 | 359 | ||
316 | 360 | func _whenInitialized () = if (!(_loadInit())) | |
317 | 361 | then throw("_whenInitialized: revert") | |
318 | 362 | else true | |
319 | 363 | ||
320 | 364 | ||
321 | 365 | func _whenNotPaused () = if (_loadPause()) | |
322 | 366 | then throw("_whenNotPaused: revert") | |
323 | 367 | else true | |
324 | 368 | ||
325 | 369 | ||
326 | 370 | func _whenPaused () = if (!(_loadPause())) | |
327 | 371 | then throw("_whenPaused: revert") | |
328 | 372 | else true | |
329 | 373 | ||
330 | 374 | ||
331 | 375 | func _onlyPauser (caller_) = if ((caller_ != _loadPauser())) | |
332 | 376 | then throw("_onlyPauser: revert") | |
333 | 377 | else true | |
334 | 378 | ||
335 | 379 | ||
336 | 380 | func _validateExecutor (val_,err_) = if ((val_ != _loadExecutor())) | |
337 | 381 | then throw(err_) | |
338 | 382 | else true | |
339 | 383 | ||
340 | 384 | ||
341 | 385 | func _validateCaller (val_,err_) = if ((val_ != _loadCallerContract())) | |
342 | 386 | then throw(err_) | |
343 | 387 | else true | |
344 | 388 | ||
345 | 389 | ||
346 | 390 | func _getTokenRate (token_) = match getString(_loadOracle(), makeString([KEY_PRICE, token_], SEPARATOR)) { | |
347 | 391 | case a: String => | |
348 | 392 | parseBigIntValue(a) | |
349 | 393 | case _ => | |
350 | 394 | throw(("_getTokenRate: no rate for token=" + token_)) | |
351 | 395 | } | |
352 | 396 | ||
353 | 397 | ||
354 | 398 | func _checkpoint () = { | |
355 | 399 | let prevUnitsPerUSDBalanceIntegral = _loadUnitsPerUSDBalanceIntegral() | |
356 | 400 | let prevCheckpointAt = max([_loadStartBlock(), _loadCheckpointAt()]) | |
357 | 401 | let prevUnitsBalance = _loadUnitsBalance() | |
358 | 402 | let currentBlock = min([toBigInt(height), _loadFinishBlock()]) | |
359 | 403 | if ((prevCheckpointAt >= currentBlock)) | |
360 | 404 | then $Tuple2(nil, prevUnitsPerUSDBalanceIntegral) | |
361 | 405 | else { | |
362 | 406 | let unitsBalance = (_loadUnitsPerBlock() * (currentBlock - _loadStartBlock())) | |
363 | 407 | let unitsPerUSDBalanceIntegral = ((((PERCENT_FACTOR * (currentBlock - prevCheckpointAt)) * (unitsBalance - prevUnitsBalance)) / _loadTotalUSDBalance()) + prevUnitsPerUSDBalanceIntegral) | |
364 | 408 | $Tuple2(((_saveUnitsPerUSDBalanceIntegral(unitsPerUSDBalanceIntegral) ++ _saveCheckpointAt(currentBlock)) ++ _saveUnitsBalance(unitsBalance)), unitsPerUSDBalanceIntegral) | |
365 | 409 | } | |
366 | 410 | } | |
367 | 411 | ||
368 | 412 | ||
369 | 413 | func _userCheckpoint (user_,userUSDBalance_) = { | |
370 | - | let $ | |
371 | - | let checkpointActions = $ | |
372 | - | let unitsPerUSDBalanceIntegral = $ | |
414 | + | let $t01275212819 = _checkpoint() | |
415 | + | let checkpointActions = $t01275212819._1 | |
416 | + | let unitsPerUSDBalanceIntegral = $t01275212819._2 | |
373 | 417 | let prevUserUnitsPerUSDBalanceIntegral = _loadUserUnitsPerUSDBalanceIntegral(user_) | |
374 | 418 | let prevUserCheckpointAt = max([_loadStartBlock(), _loadUserCheckpointAt(user_)]) | |
375 | 419 | let prevUserUnitsBalance = _loadUserUnitsBalance(user_) | |
376 | 420 | let currentBlock = min([toBigInt(height), _loadFinishBlock()]) | |
377 | 421 | if ((prevUserCheckpointAt >= currentBlock)) | |
378 | 422 | then $Tuple2(checkpointActions, prevUserUnitsBalance) | |
379 | 423 | else { | |
380 | 424 | let userUnitsBalance = ((((userUSDBalance_ * (unitsPerUSDBalanceIntegral - prevUserUnitsPerUSDBalanceIntegral)) / (currentBlock - prevUserCheckpointAt)) / PERCENT_FACTOR) + prevUserUnitsBalance) | |
381 | 425 | $Tuple2((((checkpointActions ++ _saveUserUnitsPerUSDBalanceIntegral(user_, unitsPerUSDBalanceIntegral)) ++ _saveUserCheckpointAt(user_, currentBlock)) ++ _saveUserUnitsBalance(user_, userUnitsBalance)), userUnitsBalance) | |
382 | 426 | } | |
383 | 427 | } | |
384 | 428 | ||
385 | 429 | ||
386 | 430 | @Callable(i) | |
387 | - | func init (executor_,oracle_,pauser_) = { | |
388 | - | let err = if (if (if (if (if (_onlyThisContract(i.caller)) | |
431 | + | func init (executor_,oracle_,pauser_,sWavesContract_) = { | |
432 | + | let err = if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
389 | 433 | then _whenNotInitialized() | |
390 | 434 | else false) | |
391 | 435 | then _whenMultisigSet() | |
392 | 436 | else false) | |
393 | 437 | then _validateAddress(executor_, "init: invalid executor") | |
394 | 438 | else false) | |
395 | 439 | then _validateAddress(oracle_, "init: invalid oracle") | |
396 | 440 | else false) | |
397 | 441 | then _validateAddress(pauser_, "init: invalid pauser") | |
442 | + | else false) | |
443 | + | then _validateAddress(sWavesContract_, "init: invalid sWavesContract") | |
398 | 444 | else false | |
399 | 445 | if ((err == err)) | |
400 | - | then $Tuple2((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveOracle(addressFromStringValue(oracle_))) ++ _savePauser(addressFromStringValue(pauser_))), unit) | |
446 | + | then $Tuple2(((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveOracle(addressFromStringValue(oracle_))) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveSWavesContract(addressFromStringValue(sWavesContract_))), unit) | |
401 | 447 | else throw("Strict value is not equal to itself.") | |
402 | 448 | } | |
403 | 449 | ||
404 | 450 | ||
405 | 451 | ||
406 | 452 | @Callable(i) | |
407 | 453 | func deposit (callerContract_,sender_,token_,amount_,referrer_) = { | |
408 | 454 | let amount = valueOrErrorMessage(parseInt(amount_), "deposit: amount is not Int") | |
409 | 455 | let err = if (if (if (if (_whenInitialized()) | |
410 | 456 | then _whenNotPaused() | |
411 | 457 | else false) | |
412 | 458 | then _validateExecutor(i.caller, "deposit: invalid executor") | |
413 | 459 | else false) | |
414 | 460 | then _validateCaller(callerContract_, "deposit: invalid caller") | |
415 | 461 | else false) | |
416 | 462 | then _validateInt(amount, 0, MAX_INT, "deposit: invalid amount") | |
417 | 463 | else false | |
418 | 464 | if ((err == err)) | |
419 | 465 | then { | |
420 | 466 | let rate = _getTokenRate(token_) | |
421 | - | let $ | |
422 | - | let userTokenBalance = $ | |
423 | - | let userTokenBalanceInUSD = $ | |
467 | + | let $t01511215194 = _loadUserPosition(token_, sender_) | |
468 | + | let userTokenBalance = $t01511215194._1 | |
469 | + | let userTokenBalanceInUSD = $t01511215194._2 | |
424 | 470 | let userUSDBalance = _loadUserUSDBalance(sender_) | |
425 | - | let $ | |
426 | - | let checkpointActions = $ | |
427 | - | let userUnitsBalance = $ | |
471 | + | let $t01525315337 = _userCheckpoint(sender_, userUSDBalance) | |
472 | + | let checkpointActions = $t01525315337._1 | |
473 | + | let userUnitsBalance = $t01525315337._2 | |
428 | 474 | let newUserTokenBalance = (userTokenBalance + toBigInt(amount)) | |
429 | 475 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
430 | 476 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
431 | 477 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
432 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, | |
478 | + | $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(token_, (_loadTokenBalance(token_) + toBigInt(amount)))) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), userUnitsBalance) | |
433 | 479 | } | |
434 | 480 | else throw("Strict value is not equal to itself.") | |
435 | 481 | } | |
436 | 482 | ||
437 | 483 | ||
438 | 484 | ||
439 | 485 | @Callable(i) | |
440 | 486 | func withdraw (callerContract_,sender_,token_,amount_) = { | |
441 | 487 | let amount = valueOrErrorMessage(parseInt(amount_), "withdraw: amount is not Int") | |
442 | 488 | let err = if (if (if (if (_whenInitialized()) | |
443 | 489 | then _whenNotPaused() | |
444 | 490 | else false) | |
445 | 491 | then _validateExecutor(i.caller, "withdraw: invalid executor") | |
446 | 492 | else false) | |
447 | 493 | then _validateCaller(callerContract_, "withdraw: invalid caller") | |
448 | 494 | else false) | |
449 | 495 | then _validateInt(amount, 0, MAX_INT, "withdraw: invalid amount") | |
450 | 496 | else false | |
451 | 497 | if ((err == err)) | |
452 | 498 | then { | |
453 | 499 | let rate = _getTokenRate(token_) | |
454 | - | let $ | |
455 | - | let userTokenBalance = $ | |
456 | - | let userTokenBalanceInUSD = $ | |
500 | + | let $t01659516677 = _loadUserPosition(token_, sender_) | |
501 | + | let userTokenBalance = $t01659516677._1 | |
502 | + | let userTokenBalanceInUSD = $t01659516677._2 | |
457 | 503 | let userUSDBalance = _loadUserUSDBalance(sender_) | |
458 | - | let $ | |
459 | - | let checkpointActions = $ | |
460 | - | let userUnitsBalance = $ | |
504 | + | let $t01673616820 = _userCheckpoint(sender_, userUSDBalance) | |
505 | + | let checkpointActions = $t01673616820._1 | |
506 | + | let userUnitsBalance = $t01673616820._2 | |
461 | 507 | let newUserTokenBalance = (userTokenBalance - toBigInt(amount)) | |
462 | 508 | let err1 = _validateInt(toInt(newUserTokenBalance), 0, MAX_INT, "withdraw: insufficient token amount") | |
463 | 509 | if ((err1 == err1)) | |
464 | 510 | then { | |
465 | 511 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
466 | 512 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
467 | 513 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
468 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, | |
514 | + | $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(token_, (_loadTokenBalance(token_) - toBigInt(amount)))) ++ _saveUserUSDBalance(sender_, newUserUSDBalance)) ++ _saveUserPosition(token_, sender_, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), unit) | |
469 | 515 | } | |
470 | 516 | else throw("Strict value is not equal to itself.") | |
471 | 517 | } | |
472 | 518 | else throw("Strict value is not equal to itself.") | |
473 | 519 | } | |
474 | 520 | ||
475 | 521 | ||
476 | 522 | ||
477 | 523 | @Callable(i) | |
478 | 524 | func depositWaves () = { | |
479 | 525 | let err = if (if (if (if (_whenInitialized()) | |
480 | 526 | then _whenNotPaused() | |
481 | 527 | else false) | |
482 | 528 | then _validatePaymentsSize(i.payments, 1, "depositWaves: no payment") | |
483 | 529 | else false) | |
484 | 530 | then _validateWavesPayment(i.payments[0], "depositWaves: invalid asset") | |
485 | 531 | else false) | |
486 | 532 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "depositWaves: invalid amount") | |
487 | 533 | else false | |
488 | 534 | if ((err == err)) | |
489 | 535 | then { | |
490 | 536 | let amount = i.payments[0].amount | |
491 | 537 | let sender = toString(i.caller) | |
492 | 538 | let token = WAVES | |
493 | 539 | let rate = _getTokenRate(token) | |
494 | - | let $ | |
495 | - | let userTokenBalance = $ | |
496 | - | let userTokenBalanceInUSD = $ | |
540 | + | let $t01813218212 = _loadUserPosition(token, sender) | |
541 | + | let userTokenBalance = $t01813218212._1 | |
542 | + | let userTokenBalanceInUSD = $t01813218212._2 | |
497 | 543 | let userUSDBalance = _loadUserUSDBalance(sender) | |
498 | - | let $ | |
499 | - | let checkpointActions = $ | |
500 | - | let userUnitsBalance = $ | |
544 | + | let $t01827018353 = _userCheckpoint(sender, userUSDBalance) | |
545 | + | let checkpointActions = $t01827018353._1 | |
546 | + | let userUnitsBalance = $t01827018353._2 | |
501 | 547 | let newUserTokenBalance = (userTokenBalance + toBigInt(amount)) | |
502 | 548 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
503 | 549 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
504 | 550 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
505 | - | $Tuple2(((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserUSDBalance))), userUnitsBalance) | |
551 | + | let invocation = invoke(_loadSWavesContract(), FUNC_DEPOSIT, nil, [AttachedPayment(unit, amount)]) | |
552 | + | if ((invocation == invocation)) | |
553 | + | then $Tuple2(((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(WAVES, (_loadTokenBalance(WAVES) + toBigInt(amount)))) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), userUnitsBalance) | |
554 | + | else throw("Strict value is not equal to itself.") | |
506 | 555 | } | |
507 | 556 | else throw("Strict value is not equal to itself.") | |
508 | 557 | } | |
509 | 558 | ||
510 | 559 | ||
511 | 560 | ||
512 | 561 | @Callable(i) | |
513 | 562 | func withdrawWaves (amount_) = { | |
514 | 563 | let err = if (if (_whenInitialized()) | |
515 | 564 | then _whenNotPaused() | |
516 | 565 | else false) | |
517 | 566 | then _validateInt(amount_, 0, MAX_INT, "withdrawWaves: invalid amount") | |
518 | 567 | else false | |
519 | 568 | if ((err == err)) | |
520 | 569 | then { | |
521 | 570 | let sender = toString(i.caller) | |
522 | 571 | let token = WAVES | |
523 | 572 | let rate = _getTokenRate(token) | |
524 | - | let $ | |
525 | - | let userTokenBalance = $ | |
526 | - | let userTokenBalanceInUSD = $ | |
573 | + | let $t01948819568 = _loadUserPosition(token, sender) | |
574 | + | let userTokenBalance = $t01948819568._1 | |
575 | + | let userTokenBalanceInUSD = $t01948819568._2 | |
527 | 576 | let userUSDBalance = _loadUserUSDBalance(sender) | |
528 | - | let $ | |
529 | - | let checkpointActions = $ | |
530 | - | let userUnitsBalance = $ | |
577 | + | let $t01962619709 = _userCheckpoint(sender, userUSDBalance) | |
578 | + | let checkpointActions = $t01962619709._1 | |
579 | + | let userUnitsBalance = $t01962619709._2 | |
531 | 580 | let newUserTokenBalance = (userTokenBalance - toBigInt(amount_)) | |
532 | 581 | let err1 = _validateInt(toInt(newUserTokenBalance), 0, MAX_INT, "withdrawWaves: insufficient token amount") | |
533 | 582 | if ((err1 == err1)) | |
534 | 583 | then { | |
535 | 584 | let newUserTokenBalanceInUSD = fraction(newUserTokenBalance, rate, PERCENT_FACTOR, DOWN) | |
536 | 585 | let newUserUSDBalance = ((userUSDBalance - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
537 | 586 | let totalBalanceUpdated = ((_loadTotalUSDBalance() - userTokenBalanceInUSD) + newUserTokenBalanceInUSD) | |
538 | - | $Tuple2((((checkpointActions ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserUSDBalance))), unit) | |
587 | + | let sWavesContract = _loadSWavesContract() | |
588 | + | let sWavesAsset = _loadSWavesAsset(sWavesContract) | |
589 | + | let invocation = invoke(sWavesContract, FUNC_GET_RATE, nil, nil) | |
590 | + | let swavesRate = match invocation { | |
591 | + | case a: String => | |
592 | + | parseBigIntValue(a) | |
593 | + | case _ => | |
594 | + | throw("withdrawWaves: sWaves getRate() revert") | |
595 | + | } | |
596 | + | let sWavesToWithdraw = toInt(fraction(toBigInt(amount_), SWAVES_RATE_FACTOR, swavesRate, CEILING)) | |
597 | + | let invocation1 = invoke(sWavesContract, FUNC_WITHDRAW, nil, [AttachedPayment(sWavesAsset, sWavesToWithdraw)]) | |
598 | + | if ((invocation1 == invocation1)) | |
599 | + | then $Tuple2(((((([ScriptTransfer(i.caller, amount_, unit)] ++ checkpointActions) ++ _saveTotalUSDBalance(totalBalanceUpdated)) ++ _saveTokenBalance(WAVES, (_loadTokenBalance(WAVES) - toBigInt(amount_)))) ++ _saveUserUSDBalance(sender, newUserUSDBalance)) ++ _saveUserPosition(token, sender, $Tuple2(newUserTokenBalance, newUserTokenBalanceInUSD))), unit) | |
600 | + | else throw("Strict value is not equal to itself.") | |
539 | 601 | } | |
540 | 602 | else throw("Strict value is not equal to itself.") | |
541 | 603 | } | |
542 | 604 | else throw("Strict value is not equal to itself.") | |
543 | 605 | } | |
544 | 606 | ||
545 | 607 | ||
546 | 608 | ||
547 | 609 | @Callable(i) | |
548 | 610 | func startRetrodrop (amount_,blocksAt_) = { | |
549 | 611 | let err = if (if (if (if (if (_onlyThisContract(i.caller)) | |
550 | 612 | then _whenInitialized() | |
551 | 613 | else false) | |
552 | 614 | then _whenNotPaused() | |
553 | 615 | else false) | |
554 | 616 | then _validateInt(amount_, 1, MAX_INT, "startRetrodrop: invalid amount") | |
555 | 617 | else false) | |
556 | 618 | then _validateInt(blocksAt_, 1, MAX_INT, "startRetrodrop: invalid blocksAt") | |
557 | 619 | else false) | |
558 | 620 | then _validateEqBigInt(_loadStartBlock(), ZERO_BIGINT, "startRetrodrop: already started") | |
559 | 621 | else false | |
560 | 622 | if ((err == err)) | |
561 | 623 | then { | |
562 | 624 | let startHeight = toBigInt(height) | |
563 | 625 | let finishHeight = (startHeight + toBigInt(blocksAt_)) | |
564 | 626 | let unitsPerBlock = fraction(toBigInt(amount_), PERCENT_FACTOR, toBigInt(blocksAt_)) | |
565 | 627 | $Tuple2(((_saveStartBlock(startHeight) ++ _saveFinishBlock(finishHeight)) ++ _saveUnitsPerBlock(unitsPerBlock)), unit) | |
566 | 628 | } | |
567 | 629 | else throw("Strict value is not equal to itself.") | |
568 | 630 | } | |
569 | 631 | ||
570 | 632 | ||
571 | 633 | ||
572 | 634 | @Callable(i) | |
573 | 635 | func getUnits (user_) = { | |
574 | - | let userUSDBalance = _loadUserUSDBalance(user_) | |
575 | - | let $t02154721619 = _userCheckpoint(user_, userUSDBalance) | |
576 | - | let actions = $t02154721619._1 | |
577 | - | let userUnitsBalance = $t02154721619._2 | |
636 | + | let $t02197822062 = _userCheckpoint(user_, _loadUserUSDBalance(user_)) | |
637 | + | let actions = $t02197822062._1 | |
638 | + | let userUnitsBalance = $t02197822062._2 | |
578 | 639 | $Tuple2(nil, userUnitsBalance) | |
579 | 640 | } | |
580 | 641 | ||
581 | 642 | ||
582 | 643 | ||
583 | 644 | @Callable(i) | |
584 | 645 | func updateCallerContract (callerContract_) = { | |
585 | 646 | let err = if (_onlyThisContract(i.caller)) | |
586 | 647 | then _whenInitialized() | |
587 | 648 | else false | |
588 | 649 | if ((err == err)) | |
589 | 650 | then $Tuple2(_saveCallerContract(callerContract_), unit) | |
590 | 651 | else throw("Strict value is not equal to itself.") | |
591 | 652 | } | |
592 | 653 | ||
593 | 654 | ||
594 | 655 | ||
595 | 656 | @Callable(i) | |
596 | 657 | func pause () = { | |
597 | 658 | let err = if (if (_onlyPauser(i.caller)) | |
598 | 659 | then _whenInitialized() | |
599 | 660 | else false) | |
600 | 661 | then _whenNotPaused() | |
601 | 662 | else false | |
602 | 663 | if ((err == err)) | |
603 | 664 | then $Tuple2(_savePause(true), unit) | |
604 | 665 | else throw("Strict value is not equal to itself.") | |
605 | 666 | } | |
606 | 667 | ||
607 | 668 | ||
608 | 669 | ||
609 | 670 | @Callable(i) | |
610 | 671 | func unpause () = { | |
611 | 672 | let err = if (if (_onlyPauser(i.caller)) | |
612 | 673 | then _whenInitialized() | |
613 | 674 | else false) | |
614 | 675 | then _whenPaused() | |
615 | 676 | else false | |
616 | 677 | if ((err == err)) | |
617 | 678 | then $Tuple2(_savePause(false), unit) | |
618 | 679 | else throw("Strict value is not equal to itself.") | |
619 | 680 | } | |
620 | 681 | ||
621 | 682 | ||
622 | 683 | ||
623 | 684 | @Callable(i) | |
624 | 685 | func updatePauser (pauser_) = { | |
625 | 686 | let err = if (if (_onlyThisContract(i.caller)) | |
626 | 687 | then _whenInitialized() | |
627 | 688 | else false) | |
628 | 689 | then _validateAddress(pauser_, "updatePauser: invalid pauser") | |
629 | 690 | else false | |
630 | 691 | if ((err == err)) | |
631 | 692 | then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit) | |
632 | 693 | else throw("Strict value is not equal to itself.") | |
633 | 694 | } | |
634 | 695 | ||
635 | 696 | ||
636 | 697 | ||
637 | 698 | @Callable(i) | |
638 | 699 | func setMultisig (multisig_) = { | |
639 | 700 | let err = if (_onlyThisContract(i.caller)) | |
640 | 701 | then _validateAddress(multisig_, "setMultisig: invalid multisig") | |
641 | 702 | else false | |
642 | 703 | if ((err == err)) | |
643 | 704 | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
644 | 705 | else throw("Strict value is not equal to itself.") | |
645 | 706 | } | |
646 | 707 | ||
647 | 708 | ||
648 | 709 | @Verifier(tx) | |
649 | 710 | func verify () = match getString(KEY_MULTISIG) { | |
650 | 711 | case multisig: String => | |
651 | 712 | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false) | |
652 | 713 | case _ => | |
653 | 714 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
654 | 715 | } | |
655 | 716 |
github/deemru/w8io/169f3d6 104.52 ms ◑