tx · 3YBXcX16chMvGgc4RSeDFsaEgqUZeT6rJHhA1VzT8A6L 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03100000 Waves 2024.11.30 23:40 [3394657] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "3YBXcX16chMvGgc4RSeDFsaEgqUZeT6rJHhA1VzT8A6L", "fee": 3100000, "feeAssetId": null, "timestamp": 1732999241510, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "5rZwqWzyNxvqQq9WyM4sfknjqdCzjQL4SjgX2LUFd5wgKY8wGjuKs6bJDJi39EJYvs8rTFPtUGssmQiUyg1yUz7j" ], "script": "base64:BgJJCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAHsAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAI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EIBQFpBmNhbGxlcgQJZmluaXNoS2V5CQEJa2V5Q29tbWl0AQUEYWRkcgMJAQlpc0RlZmluZWQBCQCfCAEFCWZpbmlzaEtleQkAAgECLllvdSBhbHJlYWR5IGNvbW1pdGVkIGZvciByYW5kb20sIHBsZWFzZSB1c2UgaXQEC2ZpbmlzaEJsb2NrCQBkAgUGaGVpZ2h0BQxSQU5ET01fREVMQVkJAJQKAgkAzggCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQlmaW5pc2hLZXkFC2ZpbmlzaEJsb2NrBQNuaWwFDXByb2xvZ0FjdGlvbnMFC2ZpbmlzaEJsb2NrAEObfKw=", "height": 3394657, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DRbgyKttbgMX9YSwKLuiMDjVoHtH4tnpjuAQbUrwditJ Next: BeTbcFqWJNuXKu2LCgdaeDwhtbcZsk9cvx4S2o4Zrac5 Diff:
Old | New | Differences | |
---|---|---|---|
417 | 417 | else false) | |
418 | 418 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
419 | 419 | else { | |
420 | - | let $ | |
421 | - | let newBonusedFp = $ | |
422 | - | let ignored = $ | |
420 | + | let $t062526351 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
421 | + | let newBonusedFp = $t062526351._1 | |
422 | + | let ignored = $t062526351._2 | |
423 | 423 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
424 | 424 | let acresActions = if ((amt == 0)) | |
425 | 425 | then nil | |
509 | 509 | if ((nftNumber >= limit)) | |
510 | 510 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
511 | 511 | else { | |
512 | - | let $ | |
513 | - | let actions = $ | |
514 | - | let wlgClaimedAmount = $ | |
512 | + | let $t01056310639 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
513 | + | let actions = $t01056310639._1 | |
514 | + | let wlgClaimedAmount = $t01056310639._2 | |
515 | 515 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
516 | 516 | } | |
517 | 517 | } | |
555 | 555 | if ((arbReleaseTime > lastBlock.timestamp)) | |
556 | 556 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
557 | 557 | else { | |
558 | - | let $ | |
559 | - | let actions = $ | |
560 | - | let wlgClaimedAmount = $ | |
558 | + | let $t01221312293 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
559 | + | let actions = $t01221312293._1 | |
560 | + | let wlgClaimedAmount = $t01221312293._2 | |
561 | 561 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
562 | 562 | } | |
563 | 563 | } | |
580 | 580 | else (value(pmt.assetId) != acresAssetId)) | |
581 | 581 | then throw("ACRES payments only!") | |
582 | 582 | else { | |
583 | - | let $ | |
584 | - | let actions = $ | |
585 | - | let wlgClaimedAmount = $ | |
583 | + | let $t01274412820 = stakeUnstakeAcresInternal(amt, address, 0) | |
584 | + | let actions = $t01274412820._1 | |
585 | + | let wlgClaimedAmount = $t01274412820._2 | |
586 | 586 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
587 | 587 | } | |
588 | 588 | } | |
646 | 646 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
647 | 647 | else { | |
648 | 648 | let addr = toString(i.caller) | |
649 | - | let $ | |
650 | - | let limitAction = $ | |
651 | - | let maxUsdt = $ | |
649 | + | let $t01467714725 = getSwapLimitAcres() | |
650 | + | let limitAction = $t01467714725._1 | |
651 | + | let maxUsdt = $t01467714725._2 | |
652 | 652 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
653 | 653 | if ((acresAmount > maxAcres)) | |
654 | 654 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
664 | 664 | ||
665 | 665 | @Callable(i) | |
666 | 666 | func sellAcresREADONLY (address,acresAmount) = { | |
667 | - | let $ | |
668 | - | let limitAction = $ | |
669 | - | let maxUsdt = $ | |
667 | + | let $t01522115269 = getSwapLimitAcres() | |
668 | + | let limitAction = $t01522115269._1 | |
669 | + | let maxUsdt = $t01522115269._2 | |
670 | 670 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
671 | 671 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
672 | 672 | } | |
718 | 718 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
719 | 719 | if ((req == req)) | |
720 | 720 | then { | |
721 | - | let $ | |
722 | - | let nftActions = $ | |
723 | - | let nftAssetId = $ | |
721 | + | let $t01713817276 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
722 | + | let nftActions = $t01713817276._1 | |
723 | + | let nftAssetId = $t01713817276._2 | |
724 | 724 | $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions) | |
725 | 725 | } | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
787 | 787 | let userFpKey = keyFarmingPowerByUser(address) | |
788 | 788 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
789 | 789 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
790 | - | let $ | |
791 | - | let newBonusedFp = $ | |
792 | - | let ignored = $ | |
790 | + | let $t01944119528 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
791 | + | let newBonusedFp = $t01944119528._1 | |
792 | + | let ignored = $t01944119528._2 | |
793 | 793 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
794 | 794 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
795 | 795 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
831 | 831 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
832 | 832 | if ((asset.issuer == this)) | |
833 | 833 | then { | |
834 | - | let $ | |
835 | - | let actions = $ | |
836 | - | let wlgClaimedAmount = $ | |
834 | + | let $t02093721127 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
835 | + | let actions = $t02093721127._1 | |
836 | + | let wlgClaimedAmount = $t02093721127._2 | |
837 | 837 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
838 | 838 | } | |
839 | 839 | else if ((isArkimalIssued(asset) == "")) | |
840 | 840 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
841 | 841 | else { | |
842 | - | let $ | |
843 | - | let actions = $ | |
844 | - | let wlgClaimedAmount = $ | |
842 | + | let $t02130821459 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
843 | + | let actions = $t02130821459._1 | |
844 | + | let wlgClaimedAmount = $t02130821459._2 | |
845 | 845 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
846 | 846 | } | |
847 | 847 | } | |
878 | 878 | then { | |
879 | 879 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
880 | 880 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
881 | - | let $ | |
882 | - | let actions = $ | |
883 | - | let wlgClaimedAmount = $ | |
881 | + | let $t02262422703 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
882 | + | let actions = $t02262422703._1 | |
883 | + | let wlgClaimedAmount = $t02262422703._2 | |
884 | 884 | $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
885 | 885 | } | |
886 | 886 | else { | |
889 | 889 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
890 | 890 | else { | |
891 | 891 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
892 | - | let $ | |
893 | - | let actions = $ | |
894 | - | let wlgClaimedAmount = $ | |
892 | + | let $t02336323447 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
893 | + | let actions = $t02336323447._1 | |
894 | + | let wlgClaimedAmount = $t02336323447._2 | |
895 | 895 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
896 | 896 | } | |
897 | 897 | } | |
933 | 933 | } | |
934 | 934 | } | |
935 | 935 | ||
936 | - | let $ | |
936 | + | let $t02483625052 = { | |
937 | 937 | let $l = i.payments | |
938 | 938 | let $s = size($l) | |
939 | 939 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
947 | 947 | ||
948 | 948 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
949 | 949 | } | |
950 | - | let wlgFee = $ | |
951 | - | let totalBonus = $ | |
952 | - | let burnActions = $ | |
953 | - | let rarityIdx = $ | |
950 | + | let wlgFee = $t02483625052._1 | |
951 | + | let totalBonus = $t02483625052._2 | |
952 | + | let burnActions = $t02483625052._3 | |
953 | + | let rarityIdx = $t02483625052._4 | |
954 | 954 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
955 | 955 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
956 | 956 | then idxRarityC | |
982 | 982 | let changeActions = if ((change > 0)) | |
983 | 983 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
984 | 984 | else nil | |
985 | - | let $ | |
986 | - | let issueNftActions = $ | |
987 | - | let nftAssetId = $ | |
985 | + | let $t02658926750 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
986 | + | let issueNftActions = $t02658926750._1 | |
987 | + | let nftAssetId = $t02658926750._2 | |
988 | 988 | let burned = size(burnActions) | |
989 | 989 | let burnCounterActions = if ((burned == 0)) | |
990 | 990 | then nil | |
1028 | 1028 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1029 | 1029 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1030 | 1030 | let rand = getRandomNumber(100, salt, entropy) | |
1031 | - | let $ | |
1031 | + | let $t02876929041 = if ((84 > rand)) | |
1032 | 1032 | then $Tuple2(1, idxRarityC) | |
1033 | 1033 | else if ((98 > rand)) | |
1034 | 1034 | then $Tuple2(5, idxRarityU) | |
1035 | 1035 | else $Tuple2(10, idxRarityL) | |
1036 | - | let bonus = $ | |
1037 | - | let rarityIdx = $ | |
1038 | - | let $ | |
1039 | - | let issueNftActions = $ | |
1040 | - | let nftAssetId = $ | |
1036 | + | let bonus = $t02876929041._1 | |
1037 | + | let rarityIdx = $t02876929041._2 | |
1038 | + | let $t02904429194 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1039 | + | let issueNftActions = $t02904429194._1 | |
1040 | + | let nftAssetId = $t02904429194._2 | |
1041 | 1041 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1042 | 1042 | } | |
1043 | 1043 | } | |
1050 | 1050 | @Callable(i) | |
1051 | 1051 | func commitForRandom () = { | |
1052 | 1052 | let prologActions = prolog(i) | |
1053 | - | let finishBlock = (height + RANDOM_DELAY) | |
1054 | - | $Tuple2(([IntegerEntry(keyCommit(toString(i.caller)), finishBlock)] ++ prologActions), finishBlock) | |
1053 | + | let addr = toString(i.caller) | |
1054 | + | let finishKey = keyCommit(addr) | |
1055 | + | if (isDefined(getInteger(finishKey))) | |
1056 | + | then throw("You already commited for random, please use it") | |
1057 | + | else { | |
1058 | + | let finishBlock = (height + RANDOM_DELAY) | |
1059 | + | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1060 | + | } | |
1055 | 1061 | } | |
1056 | 1062 | ||
1057 | 1063 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT7 = 10000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let MULT14 = 100000000000000 | |
13 | 13 | ||
14 | 14 | let DAY_MILLIS = 86400000 | |
15 | 15 | ||
16 | 16 | let USDT2ACRES_MULTIPLIER = 10 | |
17 | 17 | ||
18 | 18 | let ONE_PERCENT_DIVISOR = 100 | |
19 | 19 | ||
20 | 20 | let RANDOM_DELAY = 2 | |
21 | 21 | ||
22 | 22 | let NFT_CHEST_PRICE_USDT = 5000000 | |
23 | 23 | ||
24 | 24 | let chain = take(drop(this.bytes, 1), 1) | |
25 | 25 | ||
26 | 26 | let WEEK_BLOCKS = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 10080 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 180 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let usdtAssetId = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let defaultRest2AddressStr = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let arbitrageDelay = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then DAY_MILLIS | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then 60000 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let oldStakingContractStr = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if ((base58'2W' == $match0)) | |
65 | 65 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
66 | 66 | else if ((base58'2T' == $match0)) | |
67 | 67 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let IdxCfgAcres2Dapp = 1 | |
75 | 75 | ||
76 | 76 | let IdxCfgWlgDapp = 2 | |
77 | 77 | ||
78 | 78 | let IdxCfgInvestFundDapp = 5 | |
79 | 79 | ||
80 | 80 | func keyRestCfg () = "%s__restConfig" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyRest2Address () = "%s__rest2Addr" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
93 | 93 | ||
94 | 94 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
95 | 95 | ||
96 | 96 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
97 | 97 | ||
98 | 98 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
99 | 99 | ||
100 | 100 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
101 | 101 | ||
102 | 102 | let oldAcresContractKey = "oldAcresContract" | |
103 | 103 | ||
104 | 104 | func keyBlocked () = "contractsBlocked" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyCommit (address) = ("finishBlockFor_" + address) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let wlgAssetIdKey = "wlg_assetId" | |
117 | 117 | ||
118 | 118 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
119 | 119 | ||
120 | 120 | let acresIssuedAmountKey = "acresIssuedAmount" | |
121 | 121 | ||
122 | 122 | let acresAssetIdKey = "acresAssetId" | |
123 | 123 | ||
124 | 124 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
125 | 125 | ||
126 | 126 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func asInt (v) = match v { | |
142 | 142 | case n: Int => | |
143 | 143 | n | |
144 | 144 | case _ => | |
145 | 145 | throw("fail to cast into Int") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func asTuple5Ints (val) = match val { | |
150 | 150 | case t: (Int, Int, Int, Int, Int) => | |
151 | 151 | t | |
152 | 152 | case _ => | |
153 | 153 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func asTuple4Ints (val) = match val { | |
158 | 158 | case t: (Int, Int, Int, Int) => | |
159 | 159 | t | |
160 | 160 | case _ => | |
161 | 161 | throw("fail to cast into (Int, Int, Int, Int)") | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func asTuple3Ints (val) = match val { | |
166 | 166 | case t: (Int, Int, Int) => | |
167 | 167 | t | |
168 | 168 | case _ => | |
169 | 169 | throw("fail to cast into (Int, Int, Int)") | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func asTuple2Ints (val) = match val { | |
174 | 174 | case t: (Int, Int) => | |
175 | 175 | t | |
176 | 176 | case _ => | |
177 | 177 | throw("fail to cast into (Int, Int)") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func fixedPoint (val,decimals) = { | |
182 | 182 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
183 | 183 | let lowPart = toString((val % tenPow)) | |
184 | 184 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
185 | 185 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
190 | 190 | then throw("maxValue should be > 0") | |
191 | 191 | else { | |
192 | 192 | let randomHash = sha256_16Kb((salt + entropy)) | |
193 | 193 | (toInt(randomHash) % maxValue) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let M6_ = 1000000 | |
198 | 198 | ||
199 | 199 | let M8_ = 100000000 | |
200 | 200 | ||
201 | 201 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
202 | 202 | ||
203 | 203 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
204 | 204 | ||
205 | 205 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
212 | 212 | ||
213 | 213 | let totalFarmingPowerKey = "totalFarmingPower" | |
214 | 214 | ||
215 | 215 | let MAX_WL_NFTS = 3 | |
216 | 216 | ||
217 | 217 | let MAX_ARK_NFTS = 1 | |
218 | 218 | ||
219 | 219 | let ARK_NFT_BONUS = 5000 | |
220 | 220 | ||
221 | 221 | let MAX_NFTS_STAKED_BY_USER = 4 | |
222 | 222 | ||
223 | 223 | let keyNftTotalIssued = "nftTotalIssued" | |
224 | 224 | ||
225 | 225 | let keyNftTotalBurned = "nftTotalBurned" | |
226 | 226 | ||
227 | 227 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
228 | 228 | ||
229 | 229 | let keyArkNftTotalStaked = "ArkNftTotalStaked" | |
230 | 230 | ||
231 | 231 | func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
244 | 244 | ||
245 | 245 | func getLevelByAcres (acres) = { | |
246 | 246 | let acr = ((acres + 99999999) / M8_) | |
247 | 247 | func checker (acc,item) = if ((item >= acr)) | |
248 | 248 | then acc | |
249 | 249 | else (acc + 1) | |
250 | 250 | ||
251 | 251 | let $l = levelAcres | |
252 | 252 | let $s = size($l) | |
253 | 253 | let $acc0 = 0 | |
254 | 254 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | 255 | then $a | |
256 | 256 | else checker($a, $l[$i]) | |
257 | 257 | ||
258 | 258 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | 259 | then $a | |
260 | 260 | else throw("List size exceeds 10") | |
261 | 261 | ||
262 | 262 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
270 | 270 | let notBonused = getFarmingPowerByAcres(acres) | |
271 | 271 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | let teamAddrKey = "teamAddr" | |
276 | 276 | ||
277 | 277 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | let keyLastAcresSellTime = "lastAcresSellTime" | |
281 | 281 | ||
282 | 282 | let keyLastLimitLeft = "lastLimitLeft" | |
283 | 283 | ||
284 | 284 | let names = ["Gold shovel", "Pickaxe"] | |
285 | 285 | ||
286 | 286 | let descriptions = ["Reward for early birds", "Increases FarmPower"] | |
287 | 287 | ||
288 | 288 | let idxDescrShovel = 0 | |
289 | 289 | ||
290 | 290 | let idxDescrPickaxe = 1 | |
291 | 291 | ||
292 | 292 | let rarityThresholds = [5, 10, 20] | |
293 | 293 | ||
294 | 294 | let idxThresholdC = 0 | |
295 | 295 | ||
296 | 296 | let idxThresholdU = 1 | |
297 | 297 | ||
298 | 298 | let idxThresholdL = 2 | |
299 | 299 | ||
300 | 300 | let namez = ["SHOVEL", "PICKAXE"] | |
301 | 301 | ||
302 | 302 | let idxNameShovel = 0 | |
303 | 303 | ||
304 | 304 | let idxNamePickaxe = 1 | |
305 | 305 | ||
306 | 306 | let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
307 | 307 | ||
308 | 308 | let idxKeyC = 0 | |
309 | 309 | ||
310 | 310 | let idxKeyP = 4 | |
311 | 311 | ||
312 | 312 | let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
313 | 313 | ||
314 | 314 | let idxRarityC = 0 | |
315 | 315 | ||
316 | 316 | let idxRarityU = 1 | |
317 | 317 | ||
318 | 318 | let idxRarityL = 2 | |
319 | 319 | ||
320 | 320 | let idxRarityE = 3 | |
321 | 321 | ||
322 | 322 | let idxRarityP = 4 | |
323 | 323 | ||
324 | 324 | let collectionz = ["Digging tools"] | |
325 | 325 | ||
326 | 326 | let idxCollDig = 0 | |
327 | 327 | ||
328 | 328 | let bonusTypez = ["FarmPower"] | |
329 | 329 | ||
330 | 330 | let idxBonusTypeFp = 0 | |
331 | 331 | ||
332 | 332 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
333 | 333 | then valueOrElse(getBoolean(keyBlocked()), false) | |
334 | 334 | else false) | |
335 | 335 | then throw("Contracts are under maintenance") | |
336 | 336 | else { | |
337 | 337 | let addr = toString(i.originCaller) | |
338 | 338 | let week = (height / WEEK_BLOCKS) | |
339 | 339 | let lastWeekKey = keyLastWeekTxIdByUser(addr) | |
340 | 340 | let lastWeekTxIdByUser = getString(lastWeekKey) | |
341 | 341 | let txId = toBase58String(i.transactionId) | |
342 | 342 | let wtx = ((toString(week) + "_") + txId) | |
343 | 343 | let curWeekKey = keyCurWeekTxIdByUser(addr) | |
344 | 344 | if (isDefined(lastWeekTxIdByUser)) | |
345 | 345 | then { | |
346 | 346 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
347 | 347 | if ((lastWeekTx[0] == toString(week))) | |
348 | 348 | then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
349 | 349 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
350 | 350 | then [StringEntry(curWeekKey, wtx)] | |
351 | 351 | else { | |
352 | 352 | let curWeekTxIdByUser = getStringValue(curWeekKey) | |
353 | 353 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
354 | 354 | if ((curWeekTx[0] == toString(week))) | |
355 | 355 | then [StringEntry(curWeekKey, wtx)] | |
356 | 356 | else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)] | |
357 | 357 | } | |
358 | 358 | } | |
359 | 359 | else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func createNftDescrCustom (contKey,nftSerial,collection,name,descr,rarity,bonus,bonusType) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + contKey) + "\", ") + "\"number\": ") + toString(nftSerial)) + ", ") + "\"collection\": \"") + collection) + "\", ") + "\"name\": \"") + name) + "\", ") + "\"description\": \"") + descr) + "\", ") + "\"rare\": \"") + rarity) + "\", ") + "\"bonus\": ") + toString(bonus)) + ", ") + "\"bonusType\": \"") + bonusType) + "\"}") | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = { | |
367 | 367 | let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0) | |
368 | 368 | let rarity = rarityNames[rarityIdx] | |
369 | 369 | let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc)) | |
370 | 370 | let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false) | |
371 | 371 | let nftAssetId = calculateAssetId(issue) | |
372 | 372 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
377 | 377 | then throw(("NFT is not supported: " + descr)) | |
378 | 378 | else { | |
379 | 379 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
380 | 380 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\""))) | |
385 | 385 | then throw(("NFT is not supported: " + descr)) | |
386 | 386 | else { | |
387 | 387 | let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1] | |
388 | 388 | value(indexOf(rarityNames, rarityStr)) | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
393 | 393 | then (bonusDelta == 0) | |
394 | 394 | else false) | |
395 | 395 | then throw("Nothing to do") | |
396 | 396 | else { | |
397 | 397 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
398 | 398 | if ((wlgResult == wlgResult)) | |
399 | 399 | then { | |
400 | 400 | let now = lastBlock.timestamp | |
401 | 401 | let timeKey = keyAcresStakedTimeByUser(address) | |
402 | 402 | let amountKey = keyAcresStakedAmtByUser(address) | |
403 | 403 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
404 | 404 | if (if ((0 > amt)) | |
405 | 405 | then (0 > (oldAcresAmount + amt)) | |
406 | 406 | else false) | |
407 | 407 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
408 | 408 | else { | |
409 | 409 | let newAcresAmount = (oldAcresAmount + amt) | |
410 | 410 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
411 | 411 | let userFpKey = keyFarmingPowerByUser(address) | |
412 | 412 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
413 | 413 | let bonusKey = keyUserFullBonus(address) | |
414 | 414 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
415 | 415 | if (if ((0 > bonusDelta)) | |
416 | 416 | then (0 > (oldBonus + bonusDelta)) | |
417 | 417 | else false) | |
418 | 418 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
419 | 419 | else { | |
420 | - | let $ | |
421 | - | let newBonusedFp = $ | |
422 | - | let ignored = $ | |
420 | + | let $t062526351 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
421 | + | let newBonusedFp = $t062526351._1 | |
422 | + | let ignored = $t062526351._2 | |
423 | 423 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
424 | 424 | let acresActions = if ((amt == 0)) | |
425 | 425 | then nil | |
426 | 426 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
427 | 427 | $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult) | |
428 | 428 | } | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | else throw("Strict value is not equal to itself.") | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func getWlgPrice (usdtBalanceCorrection) = { | |
436 | 436 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
437 | 437 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
438 | 438 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
439 | 439 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
440 | 440 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
441 | 441 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func getSwapLimitAcres () = { | |
446 | 446 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
447 | 447 | let acres2Usd = assetBalance(this, usdtAssetId) | |
448 | 448 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
449 | 449 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
450 | 450 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
451 | 451 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
452 | 452 | let now = lastBlock.timestamp | |
453 | 453 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
454 | 454 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
455 | 455 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
460 | 460 | ||
461 | 461 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
462 | 462 | ||
463 | 463 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
464 | 464 | ||
465 | 465 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
466 | 466 | ||
467 | 467 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
468 | 468 | ||
469 | 469 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
470 | 470 | ||
471 | 471 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
472 | 472 | ||
473 | 473 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
474 | 474 | ||
475 | 475 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
476 | 476 | ||
477 | 477 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
478 | 478 | ||
479 | 479 | func isArkimalIssued (nfo) = { | |
480 | 480 | let issuer = toString(nfo.issuer) | |
481 | 481 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
482 | 482 | then (issuer == oldStakingContractStr) | |
483 | 483 | else false) | |
484 | 484 | then true | |
485 | 485 | else (issuer == incubator)) | |
486 | 486 | then true | |
487 | 487 | else (issuer == breeder)) | |
488 | 488 | then true | |
489 | 489 | else (issuer == turtleIncubator)) | |
490 | 490 | then true | |
491 | 491 | else (issuer == turtleBreeder)) | |
492 | 492 | then true | |
493 | 493 | else (issuer == canineIncubator)) | |
494 | 494 | then true | |
495 | 495 | else (issuer == canineBreeder)) | |
496 | 496 | then true | |
497 | 497 | else (issuer == felineIncubator)) | |
498 | 498 | then true | |
499 | 499 | else (issuer == felineBreeder)) | |
500 | 500 | then nfo.name | |
501 | 501 | else if ((issuer == mutantBreeder)) | |
502 | 502 | then nfo.description | |
503 | 503 | else "" | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | ||
507 | 507 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
508 | 508 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
509 | 509 | if ((nftNumber >= limit)) | |
510 | 510 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
511 | 511 | else { | |
512 | - | let $ | |
513 | - | let actions = $ | |
514 | - | let wlgClaimedAmount = $ | |
512 | + | let $t01056310639 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
513 | + | let actions = $t01056310639._1 | |
514 | + | let wlgClaimedAmount = $t01056310639._2 | |
515 | 515 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | @Callable(i) | |
521 | 521 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
522 | 522 | then throw("Access denied") | |
523 | 523 | else $Tuple2(prolog(i), 42) | |
524 | 524 | ||
525 | 525 | ||
526 | 526 | ||
527 | 527 | @Callable(i) | |
528 | 528 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
529 | 529 | then throw("Permission denied") | |
530 | 530 | else { | |
531 | 531 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
532 | 532 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | ||
537 | 537 | @Callable(i) | |
538 | 538 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
539 | 539 | then throw("permission denied") | |
540 | 540 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
541 | 541 | ||
542 | 542 | ||
543 | 543 | ||
544 | 544 | @Callable(i) | |
545 | 545 | func unstakeAcres (amount) = { | |
546 | 546 | let prologActions = prolog(i) | |
547 | 547 | if ((0 >= amount)) | |
548 | 548 | then throw("Amount should be positive") | |
549 | 549 | else { | |
550 | 550 | let address = toString(i.caller) | |
551 | 551 | if ((size(i.payments) != 0)) | |
552 | 552 | then throw("No payments required") | |
553 | 553 | else { | |
554 | 554 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
555 | 555 | if ((arbReleaseTime > lastBlock.timestamp)) | |
556 | 556 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
557 | 557 | else { | |
558 | - | let $ | |
559 | - | let actions = $ | |
560 | - | let wlgClaimedAmount = $ | |
558 | + | let $t01221312293 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
559 | + | let actions = $t01221312293._1 | |
560 | + | let wlgClaimedAmount = $t01221312293._2 | |
561 | 561 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | ||
568 | 568 | ||
569 | 569 | @Callable(i) | |
570 | 570 | func stakeAcres () = { | |
571 | 571 | let prologActions = prolog(i) | |
572 | 572 | let address = toString(i.caller) | |
573 | 573 | if ((size(i.payments) != 1)) | |
574 | 574 | then throw("exactly 1 payment must be attached") | |
575 | 575 | else { | |
576 | 576 | let pmt = i.payments[0] | |
577 | 577 | let amt = pmt.amount | |
578 | 578 | if (if (!(isDefined(pmt.assetId))) | |
579 | 579 | then true | |
580 | 580 | else (value(pmt.assetId) != acresAssetId)) | |
581 | 581 | then throw("ACRES payments only!") | |
582 | 582 | else { | |
583 | - | let $ | |
584 | - | let actions = $ | |
585 | - | let wlgClaimedAmount = $ | |
583 | + | let $t01274412820 = stakeUnstakeAcresInternal(amt, address, 0) | |
584 | + | let actions = $t01274412820._1 | |
585 | + | let wlgClaimedAmount = $t01274412820._2 | |
586 | 586 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
587 | 587 | } | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | 593 | @Callable(i) | |
594 | 594 | func buyAcres () = { | |
595 | 595 | let prologActions = prolog(i) | |
596 | 596 | if ((size(i.payments) != 1)) | |
597 | 597 | then throw("exactly 1 payment must be attached") | |
598 | 598 | else { | |
599 | 599 | let pmt = i.payments[0] | |
600 | 600 | let usdtAmount = pmt.amount | |
601 | 601 | if (if (!(isDefined(pmt.assetId))) | |
602 | 602 | then true | |
603 | 603 | else (value(pmt.assetId) != usdtAssetId)) | |
604 | 604 | then throw("USDT payments only!") | |
605 | 605 | else if ((MULT6 > usdtAmount)) | |
606 | 606 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
607 | 607 | else { | |
608 | 608 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
609 | 609 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
610 | 610 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
611 | 611 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
612 | 612 | if ((req == req)) | |
613 | 613 | then { | |
614 | 614 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
615 | 615 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
616 | 616 | } | |
617 | 617 | else throw("Strict value is not equal to itself.") | |
618 | 618 | } | |
619 | 619 | } | |
620 | 620 | } | |
621 | 621 | ||
622 | 622 | ||
623 | 623 | ||
624 | 624 | @Callable(i) | |
625 | 625 | func buyAcresREADONLY (usdtAmount) = { | |
626 | 626 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
627 | 627 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
628 | 628 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
629 | 629 | } | |
630 | 630 | ||
631 | 631 | ||
632 | 632 | ||
633 | 633 | @Callable(i) | |
634 | 634 | func sellAcres () = { | |
635 | 635 | let prologActions = prolog(i) | |
636 | 636 | if ((size(i.payments) != 1)) | |
637 | 637 | then throw("exactly 1 payment must be attached") | |
638 | 638 | else { | |
639 | 639 | let pmt = i.payments[0] | |
640 | 640 | let acresAmount = pmt.amount | |
641 | 641 | if (if (!(isDefined(pmt.assetId))) | |
642 | 642 | then true | |
643 | 643 | else (value(pmt.assetId) != acresAssetId)) | |
644 | 644 | then throw("ACRES payments only!") | |
645 | 645 | else if ((MULT7 > acresAmount)) | |
646 | 646 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
647 | 647 | else { | |
648 | 648 | let addr = toString(i.caller) | |
649 | - | let $ | |
650 | - | let limitAction = $ | |
651 | - | let maxUsdt = $ | |
649 | + | let $t01467714725 = getSwapLimitAcres() | |
650 | + | let limitAction = $t01467714725._1 | |
651 | + | let maxUsdt = $t01467714725._2 | |
652 | 652 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
653 | 653 | if ((acresAmount > maxAcres)) | |
654 | 654 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
655 | 655 | else { | |
656 | 656 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
657 | 657 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
658 | 658 | } | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | ||
665 | 665 | @Callable(i) | |
666 | 666 | func sellAcresREADONLY (address,acresAmount) = { | |
667 | - | let $ | |
668 | - | let limitAction = $ | |
669 | - | let maxUsdt = $ | |
667 | + | let $t01522115269 = getSwapLimitAcres() | |
668 | + | let limitAction = $t01522115269._1 | |
669 | + | let maxUsdt = $t01522115269._2 | |
670 | 670 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
671 | 671 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
672 | 672 | } | |
673 | 673 | ||
674 | 674 | ||
675 | 675 | ||
676 | 676 | @Callable(i) | |
677 | 677 | func convertOldStakes () = if ((i.caller != this)) | |
678 | 678 | then throw("Temporarily disabled") | |
679 | 679 | else { | |
680 | 680 | let address = toString(i.caller) | |
681 | 681 | if ((size(i.payments) != 0)) | |
682 | 682 | then throw("No payments required") | |
683 | 683 | else { | |
684 | 684 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
685 | 685 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
686 | 686 | let gotAcres0 = if ((amount > 0)) | |
687 | 687 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
688 | 688 | else $Tuple2(0, 0) | |
689 | 689 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
690 | 690 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
691 | 691 | let landsResult = if (isDefined(landsStr)) | |
692 | 692 | then { | |
693 | 693 | let lands = split_51C(value(landsStr), "_") | |
694 | 694 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
695 | 695 | then throw("landAssetId is required") | |
696 | 696 | else { | |
697 | 697 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
698 | 698 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | let rr = { | |
702 | 702 | let $l = lands | |
703 | 703 | let $s = size($l) | |
704 | 704 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
705 | 705 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
706 | 706 | then $a | |
707 | 707 | else oneLand($a, $l[$i]) | |
708 | 708 | ||
709 | 709 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
710 | 710 | then $a | |
711 | 711 | else throw("List size exceeds 100") | |
712 | 712 | ||
713 | 713 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
714 | 714 | } | |
715 | 715 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
716 | 716 | if ((finalize == finalize)) | |
717 | 717 | then { | |
718 | 718 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
719 | 719 | if ((req == req)) | |
720 | 720 | then { | |
721 | - | let $ | |
722 | - | let nftActions = $ | |
723 | - | let nftAssetId = $ | |
721 | + | let $t01713817276 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
722 | + | let nftActions = $t01713817276._1 | |
723 | + | let nftAssetId = $t01713817276._2 | |
724 | 724 | $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions) | |
725 | 725 | } | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
727 | 727 | } | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | else $Tuple5(0, 0, 0, 0, nil) | |
731 | 731 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
732 | 732 | let duckResult = if ((duckAssetId != "")) | |
733 | 733 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
734 | 734 | else $Tuple3(0, 0, 0) | |
735 | 735 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
736 | 736 | $Tuple2((landsResult._5 ++ x._1), x._2) | |
737 | 737 | } | |
738 | 738 | } | |
739 | 739 | ||
740 | 740 | ||
741 | 741 | ||
742 | 742 | @Callable(i) | |
743 | 743 | func unstakeLandsREADONLY (address) = { | |
744 | 744 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
745 | 745 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
746 | 746 | let landsResult = if (isDefined(landsStr)) | |
747 | 747 | then { | |
748 | 748 | let lands = split_51C(value(landsStr), "_") | |
749 | 749 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
750 | 750 | then throw("landAssetId is required") | |
751 | 751 | else { | |
752 | 752 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
753 | 753 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
754 | 754 | } | |
755 | 755 | ||
756 | 756 | let $l = lands | |
757 | 757 | let $s = size($l) | |
758 | 758 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
759 | 759 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
760 | 760 | then $a | |
761 | 761 | else oneLand($a, $l[$i]) | |
762 | 762 | ||
763 | 763 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
764 | 764 | then $a | |
765 | 765 | else throw("List size exceeds 100") | |
766 | 766 | ||
767 | 767 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
768 | 768 | } | |
769 | 769 | else $Tuple4(0, 0, 0, 0) | |
770 | 770 | $Tuple2(nil, landsResult) | |
771 | 771 | } | |
772 | 772 | ||
773 | 773 | ||
774 | 774 | ||
775 | 775 | @Callable(i) | |
776 | 776 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
777 | 777 | then throw("Permission denied") | |
778 | 778 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | 782 | @Callable(i) | |
783 | 783 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
784 | 784 | let amountKey = keyAcresStakedAmtByUser(address) | |
785 | 785 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
786 | 786 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
787 | 787 | let userFpKey = keyFarmingPowerByUser(address) | |
788 | 788 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
789 | 789 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
790 | - | let $ | |
791 | - | let newBonusedFp = $ | |
792 | - | let ignored = $ | |
790 | + | let $t01944119528 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
791 | + | let newBonusedFp = $t01944119528._1 | |
792 | + | let ignored = $t01944119528._2 | |
793 | 793 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
794 | 794 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
795 | 795 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
796 | 796 | } | |
797 | 797 | ||
798 | 798 | ||
799 | 799 | ||
800 | 800 | @Callable(i) | |
801 | 801 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
802 | 802 | then throw("Permission denied") | |
803 | 803 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
804 | 804 | ||
805 | 805 | ||
806 | 806 | ||
807 | 807 | @Callable(i) | |
808 | 808 | func stakeNFT () = { | |
809 | 809 | let prologActions = prolog(i) | |
810 | 810 | if ((size(i.payments) != 1)) | |
811 | 811 | then throw("Exactly one payment required") | |
812 | 812 | else { | |
813 | 813 | let pmt = value(i.payments[0]) | |
814 | 814 | if ((pmt.amount != 1)) | |
815 | 815 | then throw("NFT token should be attached as payment") | |
816 | 816 | else { | |
817 | 817 | let assetId = value(pmt.assetId) | |
818 | 818 | let asset = value(assetInfo(assetId)) | |
819 | 819 | let assetIdStr = toBase58String(assetId) | |
820 | 820 | let addr = toString(i.caller) | |
821 | 821 | let nftsKey = keyStakedNFTsByOwner(addr) | |
822 | 822 | let nftsStr = getString(nftsKey) | |
823 | 823 | let nfts = if (isDefined(nftsStr)) | |
824 | 824 | then split_4C(value(nftsStr), "_") | |
825 | 825 | else nil | |
826 | 826 | if (containsElement(nfts, assetIdStr)) | |
827 | 827 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
828 | 828 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
829 | 829 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
830 | 830 | else { | |
831 | 831 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
832 | 832 | if ((asset.issuer == this)) | |
833 | 833 | then { | |
834 | - | let $ | |
835 | - | let actions = $ | |
836 | - | let wlgClaimedAmount = $ | |
834 | + | let $t02093721127 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
835 | + | let actions = $t02093721127._1 | |
836 | + | let wlgClaimedAmount = $t02093721127._2 | |
837 | 837 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
838 | 838 | } | |
839 | 839 | else if ((isArkimalIssued(asset) == "")) | |
840 | 840 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
841 | 841 | else { | |
842 | - | let $ | |
843 | - | let actions = $ | |
844 | - | let wlgClaimedAmount = $ | |
842 | + | let $t02130821459 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
843 | + | let actions = $t02130821459._1 | |
844 | + | let wlgClaimedAmount = $t02130821459._2 | |
845 | 845 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
846 | 846 | } | |
847 | 847 | } | |
848 | 848 | } | |
849 | 849 | } | |
850 | 850 | } | |
851 | 851 | ||
852 | 852 | ||
853 | 853 | ||
854 | 854 | @Callable(i) | |
855 | 855 | func unstakeNFT (assetIdStr) = { | |
856 | 856 | let prologActions = prolog(i) | |
857 | 857 | if ((size(i.payments) != 0)) | |
858 | 858 | then throw("No payments required") | |
859 | 859 | else { | |
860 | 860 | let assetId = fromBase58String(assetIdStr) | |
861 | 861 | let addr = toString(i.caller) | |
862 | 862 | let asset = value(assetInfo(assetId)) | |
863 | 863 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
864 | 864 | if (!(isDefined(getInteger(timeKey)))) | |
865 | 865 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
866 | 866 | else { | |
867 | 867 | let nftsKey = keyStakedNFTsByOwner(addr) | |
868 | 868 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
869 | 869 | let idx = indexOf(nfts, assetIdStr) | |
870 | 870 | if (!(isDefined(idx))) | |
871 | 871 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
872 | 872 | else { | |
873 | 873 | let listAction = if ((size(nfts) > 1)) | |
874 | 874 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
875 | 875 | else DeleteEntry(nftsKey) | |
876 | 876 | let isWL = (asset.issuer == this) | |
877 | 877 | if (isWL) | |
878 | 878 | then { | |
879 | 879 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
880 | 880 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
881 | - | let $ | |
882 | - | let actions = $ | |
883 | - | let wlgClaimedAmount = $ | |
881 | + | let $t02262422703 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
882 | + | let actions = $t02262422703._1 | |
883 | + | let wlgClaimedAmount = $t02262422703._2 | |
884 | 884 | $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
885 | 885 | } | |
886 | 886 | else { | |
887 | 887 | let arkimalName = isArkimalIssued(asset) | |
888 | 888 | if ((arkimalName == "")) | |
889 | 889 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
890 | 890 | else { | |
891 | 891 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
892 | - | let $ | |
893 | - | let actions = $ | |
894 | - | let wlgClaimedAmount = $ | |
892 | + | let $t02336323447 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
893 | + | let actions = $t02336323447._1 | |
894 | + | let wlgClaimedAmount = $t02336323447._2 | |
895 | 895 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
896 | 896 | } | |
897 | 897 | } | |
898 | 898 | } | |
899 | 899 | } | |
900 | 900 | } | |
901 | 901 | } | |
902 | 902 | ||
903 | 903 | ||
904 | 904 | ||
905 | 905 | @Callable(i) | |
906 | 906 | func exchangeNFTs () = { | |
907 | 907 | let prologActions = prolog(i) | |
908 | 908 | if ((3 > size(i.payments))) | |
909 | 909 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
910 | 910 | else if ((size(i.payments) > 10)) | |
911 | 911 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
912 | 912 | else { | |
913 | 913 | let addr = toString(i.caller) | |
914 | 914 | func addUp (acc,pmt) = { | |
915 | 915 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
916 | 916 | if ((assetId == wlgAssetId)) | |
917 | 917 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
918 | 918 | else { | |
919 | 919 | let asset = value(assetInfo(assetId)) | |
920 | 920 | if ((asset.issuer != this)) | |
921 | 921 | then throw("Only WL-issued NFTs allowed") | |
922 | 922 | else { | |
923 | 923 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
924 | 924 | if (if ((acc._4 > 0)) | |
925 | 925 | then (rarityIx != acc._4) | |
926 | 926 | else false) | |
927 | 927 | then throw("You can exchange only NFTs of the same rarity") | |
928 | 928 | else { | |
929 | 929 | let bonusPerc = bonusByDescription(value(asset.description)) | |
930 | 930 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
931 | 931 | } | |
932 | 932 | } | |
933 | 933 | } | |
934 | 934 | } | |
935 | 935 | ||
936 | - | let $ | |
936 | + | let $t02483625052 = { | |
937 | 937 | let $l = i.payments | |
938 | 938 | let $s = size($l) | |
939 | 939 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
940 | 940 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
941 | 941 | then $a | |
942 | 942 | else addUp($a, $l[$i]) | |
943 | 943 | ||
944 | 944 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
945 | 945 | then $a | |
946 | 946 | else throw("List size exceeds 10") | |
947 | 947 | ||
948 | 948 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
949 | 949 | } | |
950 | - | let wlgFee = $ | |
951 | - | let totalBonus = $ | |
952 | - | let burnActions = $ | |
953 | - | let rarityIdx = $ | |
950 | + | let wlgFee = $t02483625052._1 | |
951 | + | let totalBonus = $t02483625052._2 | |
952 | + | let burnActions = $t02483625052._3 | |
953 | + | let rarityIdx = $t02483625052._4 | |
954 | 954 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
955 | 955 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
956 | 956 | then idxRarityC | |
957 | 957 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
958 | 958 | then idxRarityU | |
959 | 959 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
960 | 960 | else if ((rarityIdx == idxRarityU)) | |
961 | 961 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
962 | 962 | then idxRarityU | |
963 | 963 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
964 | 964 | then idxRarityL | |
965 | 965 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
966 | 966 | else if ((rarityIdx == idxRarityL)) | |
967 | 967 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
968 | 968 | then idxRarityL | |
969 | 969 | else idxRarityE | |
970 | 970 | else if ((rarityIdx == idxRarityE)) | |
971 | 971 | then idxRarityE | |
972 | 972 | else if ((rarityIdx == idxRarityP)) | |
973 | 973 | then throw("You can't exchange NFTs of this rarity") | |
974 | 974 | else throw("Unknown rarity") | |
975 | 975 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
976 | 976 | let change = (wlgFee - minWlgFee) | |
977 | 977 | let forTeam = (minWlgFee / 2) | |
978 | 978 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
979 | 979 | if ((0 > change)) | |
980 | 980 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
981 | 981 | else { | |
982 | 982 | let changeActions = if ((change > 0)) | |
983 | 983 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
984 | 984 | else nil | |
985 | - | let $ | |
986 | - | let issueNftActions = $ | |
987 | - | let nftAssetId = $ | |
985 | + | let $t02658926750 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
986 | + | let issueNftActions = $t02658926750._1 | |
987 | + | let nftAssetId = $t02658926750._2 | |
988 | 988 | let burned = size(burnActions) | |
989 | 989 | let burnCounterActions = if ((burned == 0)) | |
990 | 990 | then nil | |
991 | 991 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
992 | 992 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
993 | 993 | } | |
994 | 994 | } | |
995 | 995 | } | |
996 | 996 | ||
997 | 997 | ||
998 | 998 | ||
999 | 999 | @Callable(i) | |
1000 | 1000 | func openNftChest () = { | |
1001 | 1001 | let prologActions = prolog(i) | |
1002 | 1002 | if ((size(i.payments) != 1)) | |
1003 | 1003 | then throw("exactly 1 payment must be attached") | |
1004 | 1004 | else { | |
1005 | 1005 | let pmt = i.payments[0] | |
1006 | 1006 | let wlgAmount = pmt.amount | |
1007 | 1007 | if (if (!(isDefined(pmt.assetId))) | |
1008 | 1008 | then true | |
1009 | 1009 | else (value(pmt.assetId) != wlgAssetId)) | |
1010 | 1010 | then throw("WLGOLD payments only!") | |
1011 | 1011 | else { | |
1012 | 1012 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1013 | 1013 | let change = (wlgAmount - minWlgFee) | |
1014 | 1014 | let forTeam = (minWlgFee / 2) | |
1015 | 1015 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1016 | 1016 | if ((0 > change)) | |
1017 | 1017 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1018 | 1018 | else { | |
1019 | 1019 | let changeActions = if ((change > 0)) | |
1020 | 1020 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1021 | 1021 | else nil | |
1022 | 1022 | let addr = toString(i.caller) | |
1023 | 1023 | let finishKey = keyCommit(addr) | |
1024 | 1024 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1025 | 1025 | if ((finishBlock > height)) | |
1026 | 1026 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1027 | 1027 | else { | |
1028 | 1028 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1029 | 1029 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1030 | 1030 | let rand = getRandomNumber(100, salt, entropy) | |
1031 | - | let $ | |
1031 | + | let $t02876929041 = if ((84 > rand)) | |
1032 | 1032 | then $Tuple2(1, idxRarityC) | |
1033 | 1033 | else if ((98 > rand)) | |
1034 | 1034 | then $Tuple2(5, idxRarityU) | |
1035 | 1035 | else $Tuple2(10, idxRarityL) | |
1036 | - | let bonus = $ | |
1037 | - | let rarityIdx = $ | |
1038 | - | let $ | |
1039 | - | let issueNftActions = $ | |
1040 | - | let nftAssetId = $ | |
1036 | + | let bonus = $t02876929041._1 | |
1037 | + | let rarityIdx = $t02876929041._2 | |
1038 | + | let $t02904429194 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1039 | + | let issueNftActions = $t02904429194._1 | |
1040 | + | let nftAssetId = $t02904429194._2 | |
1041 | 1041 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1042 | 1042 | } | |
1043 | 1043 | } | |
1044 | 1044 | } | |
1045 | 1045 | } | |
1046 | 1046 | } | |
1047 | 1047 | ||
1048 | 1048 | ||
1049 | 1049 | ||
1050 | 1050 | @Callable(i) | |
1051 | 1051 | func commitForRandom () = { | |
1052 | 1052 | let prologActions = prolog(i) | |
1053 | - | let finishBlock = (height + RANDOM_DELAY) | |
1054 | - | $Tuple2(([IntegerEntry(keyCommit(toString(i.caller)), finishBlock)] ++ prologActions), finishBlock) | |
1053 | + | let addr = toString(i.caller) | |
1054 | + | let finishKey = keyCommit(addr) | |
1055 | + | if (isDefined(getInteger(finishKey))) | |
1056 | + | then throw("You already commited for random, please use it") | |
1057 | + | else { | |
1058 | + | let finishBlock = (height + RANDOM_DELAY) | |
1059 | + | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1060 | + | } | |
1055 | 1061 | } | |
1056 | 1062 | ||
1057 | 1063 |
github/deemru/w8io/026f985 135.26 ms ◑