tx · 4ZRPCAaHnp7PjXCWhJhcuxycowdhei439kvyK1bbqweR 3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA: -0.02000000 Waves 2023.07.21 16:49 [2675699] smart account 3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA > SELF 0.00000000 Waves
{ "type": 13, "id": "4ZRPCAaHnp7PjXCWhJhcuxycowdhei439kvyK1bbqweR", "fee": 2000000, "feeAssetId": null, "timestamp": 1689947388384, "version": 2, "chainId": 84, "sender": "3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA", "senderPublicKey": "FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw", "proofs": [ "5RGjqxBbUemj6eQxB8XuyVMxrC75d2TF2YcK6wFt59UiWvrPGBt4N4ceQjQ5XRAdzyB6ZmPyhpDboHpRnoDZiuHj" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEBEgASBAoCAQESAwoBAQAAAA8AAAAAB1ZlcnNpb24CAAAABTMuMC4wAAAAAAtDT0RFQXNzZXRJRAEAAAAgw7tamQ+/dXoyJwRZ/Fb5N4jdONzqCnQ4LyXft9O80qAAAAAAEkNPREVMSUNFTlNFQXNzZXRJRAEAAAAg7lVnAjcLvxekcB3/CobKfYc33HvjWL4A3RwDawGZ3Q4AAAAAC1N0YWtpbmdEYXBwAQAAACD9QZsEseGyMUVvRvdhafix40e0RpieAhyxxGPea9bVPwAAAAASVHJlYXN1cnlGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2YWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAADGRldmZlZWNoYXJlZAAAAAAAAAAAFAAAAAALU3RhcnRIZWlnaHQAAAAAAAAcOpAAAAAAD21pbmltdW1sb2NrZGF5cwkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAASTW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pbV9mZWUAAAAAF0h26AADCQEAAAACIT0AAAACBQAAAAthZG1pbnJpZ2h0cwUAAAANY2FsbGVyYWRkcmVzcwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAiSSBrbm93IFlvdSBhcmUgbm90IEFuIEFkbWluLiBPbmx5IAUAAAALYWRtaW5yaWdodHMCAAAAICBoYXMgcmlnaHRzIHRvIGNoYW5nZSBDbGFpbSBGZWUuAwkAAGYAAAACBQAAABFNaW5pbXVtX0NsYWltX2ZlZQUAAAAIQ2xhaW1GZWUJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAFU1pbmltdW0gQ2xhaW0gZmVlIGlzIAkAAaQAAAABBQAAABFNaW5pbXVtX0NsYWltX2ZlZQIAAAARIFROIFtpbnQtZm9ybWF0XS4DCQAAZgAAAAIFAAAACENsYWltRmVlBQAAABFNYXhpbXVtX0NsYWltX2ZlZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAlTWF4aW11bSBDbGFpbSBmZWUgY2FuJ3QgYmUgbW9yZSB0aGFuIAkAAaQAAAABBQAAABFNYXhpbXVtX0NsYWltX2ZlZQIAAAARIFROLiBbaW50LWZvcm1hdF0JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACUNsYWltX0ZlZQUAAAAIQ2xhaW1GZWUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V54ubzMQ==", "height": 2675699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJTRgHuLbmBRn4PqMTHvSLeccb8Q4D6XKTC7YLxtfwXM Next: none Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range") | |
21 | 21 | ||
22 | 22 | let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range") | |
23 | + | ||
24 | + | let Minimum_CODE_Stake_Amount = 100000 | |
23 | 25 | ||
24 | 26 | let Minimum_Burn_factor = 1000000 | |
25 | 27 | ||
73 | 75 | 0 | |
74 | 76 | } | |
75 | 77 | let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1) | |
78 | + | let Expension_Counter = match getInteger(this, "Expension_Counter") { | |
79 | + | case a: Int => | |
80 | + | a | |
81 | + | case _ => | |
82 | + | 0 | |
83 | + | } | |
84 | + | let NewExpension_Counter = (Expension_Counter + 1) | |
76 | 85 | if ((checkLicenseBalance != 1)) | |
77 | 86 | then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.") | |
78 | 87 | else if ((checkLicenseBalance > 1)) | |
85 | 94 | then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays))) | |
86 | 95 | else if ((days > maximumlockdays)) | |
87 | 96 | then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays))) | |
88 | - | else if (( | |
97 | + | else if ((Minimum_CODE_Stake_Amount > pmt.amount)) | |
89 | 98 | then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.") | |
90 | 99 | else if ((pmt.amount > allowdedpymt)) | |
91 | 100 | then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE.")) | |
94 | 103 | else if ((UserNoOfDeposits == 1)) | |
95 | 104 | then throw("You Already Have an Active Staking, Please Wait until Mature.") | |
96 | 105 | else if ((Minimum_Burn_factor > Burn_factor)) | |
97 | - | then [StringEntry("Version", Version), | |
106 | + | then [StringEntry("Version", Version), IntegerEntry("Expension_Counter", NewExpension_Counter), StringEntry((toString(NewExpension_Counter) + "_Expension_Updator"), currentKey), StringEntry("message", (((("New Days Range Expended from " + toString(maximumlockdays)) + " To ") + toString((maximumlockdays + 1))) + " Days. Please Restake.")), IntegerEntry("Maximum_Days_Range", (maximumlockdays + 1)), IntegerEntry("Minimum_Days_Range", (minimumlockdays + 1)), ScriptTransfer(i.caller, pmt.amount, CODEAssetID)] | |
98 | 107 | else [Burn(CODEAssetID, pmt.amount), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Inflation", InflationNo), IntegerEntry("Block_Passed", blockdiff), IntegerEntry("Burn_Factor", Burn_factor), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newCODEAmount), IntegerEntry(("Rewards_Of_" + currentKey), UserClaimAmount), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")] | |
99 | 108 | } | |
100 | 109 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Version = "3.0.0" | |
5 | 5 | ||
6 | 6 | let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB' | |
7 | 7 | ||
8 | 8 | let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX' | |
9 | 9 | ||
10 | 10 | let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J' | |
11 | 11 | ||
12 | 12 | let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
13 | 13 | ||
14 | 14 | let devaddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
15 | 15 | ||
16 | 16 | let devfeechared = 20 | |
17 | 17 | ||
18 | 18 | let StartHeight = 1850000 | |
19 | 19 | ||
20 | 20 | let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range") | |
21 | 21 | ||
22 | 22 | let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range") | |
23 | + | ||
24 | + | let Minimum_CODE_Stake_Amount = 100000 | |
23 | 25 | ||
24 | 26 | let Minimum_Burn_factor = 1000000 | |
25 | 27 | ||
26 | 28 | let oneday = 1440 | |
27 | 29 | ||
28 | 30 | let blockdiff = (height - StartHeight) | |
29 | 31 | ||
30 | 32 | let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000) | |
31 | 33 | ||
32 | 34 | @Callable(i) | |
33 | 35 | func Deposit (days) = { | |
34 | 36 | let pmt = if ((size(i.payments) == 1)) | |
35 | 37 | then i.payments[0] | |
36 | 38 | else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only.")) | |
37 | 39 | let currentKey = toBase58String(i.caller.bytes) | |
38 | 40 | let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000) | |
39 | 41 | let allowdedpymt = (blockdiff * 100000) | |
40 | 42 | let actualblocks = (oneday * days) | |
41 | 43 | let totallockblocks = (height + actualblocks) | |
42 | 44 | let max_receivable = fraction(maximumlockdays, (allowdedpymt * InflationNo), (365 * 1000)) | |
43 | 45 | let Burn_factor = fraction(max_receivable, 1000000, allowdedpymt) | |
44 | 46 | let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") { | |
45 | 47 | case a: Int => | |
46 | 48 | a | |
47 | 49 | case _ => | |
48 | 50 | 0 | |
49 | 51 | } | |
50 | 52 | let TotalTxnsCODE = (PreviousTxnsCODE + 1) | |
51 | 53 | let PreviousBurnedCODE = match getInteger(this, "Total_Burned_CODE:") { | |
52 | 54 | case a: Int => | |
53 | 55 | a | |
54 | 56 | case _ => | |
55 | 57 | 0 | |
56 | 58 | } | |
57 | 59 | let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount) | |
58 | 60 | let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
59 | 61 | let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
60 | 62 | let gapofheight = (fetchusermatureheight - fetchuserstakeheight) | |
61 | 63 | let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID) | |
62 | 64 | let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) { | |
63 | 65 | case a: Int => | |
64 | 66 | a | |
65 | 67 | case _ => | |
66 | 68 | 0 | |
67 | 69 | } | |
68 | 70 | let newCODEAmount = (currentCODEAmount + pmt.amount) | |
69 | 71 | let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) { | |
70 | 72 | case a: Int => | |
71 | 73 | a | |
72 | 74 | case _ => | |
73 | 75 | 0 | |
74 | 76 | } | |
75 | 77 | let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1) | |
78 | + | let Expension_Counter = match getInteger(this, "Expension_Counter") { | |
79 | + | case a: Int => | |
80 | + | a | |
81 | + | case _ => | |
82 | + | 0 | |
83 | + | } | |
84 | + | let NewExpension_Counter = (Expension_Counter + 1) | |
76 | 85 | if ((checkLicenseBalance != 1)) | |
77 | 86 | then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.") | |
78 | 87 | else if ((checkLicenseBalance > 1)) | |
79 | 88 | then throw("You Own Multiple CODE License on Same Address.") | |
80 | 89 | else if ((StartHeight > height)) | |
81 | 90 | then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks")) | |
82 | 91 | else if ((pmt.assetId != CODEAssetID)) | |
83 | 92 | then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only")) | |
84 | 93 | else if ((minimumlockdays >= days)) | |
85 | 94 | then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays))) | |
86 | 95 | else if ((days > maximumlockdays)) | |
87 | 96 | then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays))) | |
88 | - | else if (( | |
97 | + | else if ((Minimum_CODE_Stake_Amount > pmt.amount)) | |
89 | 98 | then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.") | |
90 | 99 | else if ((pmt.amount > allowdedpymt)) | |
91 | 100 | then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE.")) | |
92 | 101 | else if ((gapofheight != 129600)) | |
93 | 102 | then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.") | |
94 | 103 | else if ((UserNoOfDeposits == 1)) | |
95 | 104 | then throw("You Already Have an Active Staking, Please Wait until Mature.") | |
96 | 105 | else if ((Minimum_Burn_factor > Burn_factor)) | |
97 | - | then [StringEntry("Version", Version), | |
106 | + | then [StringEntry("Version", Version), IntegerEntry("Expension_Counter", NewExpension_Counter), StringEntry((toString(NewExpension_Counter) + "_Expension_Updator"), currentKey), StringEntry("message", (((("New Days Range Expended from " + toString(maximumlockdays)) + " To ") + toString((maximumlockdays + 1))) + " Days. Please Restake.")), IntegerEntry("Maximum_Days_Range", (maximumlockdays + 1)), IntegerEntry("Minimum_Days_Range", (minimumlockdays + 1)), ScriptTransfer(i.caller, pmt.amount, CODEAssetID)] | |
98 | 107 | else [Burn(CODEAssetID, pmt.amount), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Inflation", InflationNo), IntegerEntry("Block_Passed", blockdiff), IntegerEntry("Burn_Factor", Burn_factor), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newCODEAmount), IntegerEntry(("Rewards_Of_" + currentKey), UserClaimAmount), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")] | |
99 | 108 | } | |
100 | 109 | ||
101 | 110 | ||
102 | 111 | ||
103 | 112 | @Callable(i) | |
104 | 113 | func Withdraw () = { | |
105 | 114 | let currentKey = toBase58String(i.caller.bytes) | |
106 | 115 | let MaxA4AAmt = 1200000000000 | |
107 | 116 | let MaxFee = 24000000 | |
108 | 117 | let divisiblefactor = 19 | |
109 | 118 | let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
110 | 119 | let FlatfeePercent = 500 | |
111 | 120 | let FeesPercent = ((MaxFee - (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)) / 10000) | |
112 | 121 | let ClaimFee = getIntegerValue(this, "Claim_Fee") | |
113 | 122 | let pmt = value(i.payments[0]) | |
114 | 123 | let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)) | |
115 | 124 | let userFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FeesPercent) / 10000) | |
116 | 125 | let userFlatFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FlatfeePercent) / 10000) | |
117 | 126 | let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") { | |
118 | 127 | case a: Int => | |
119 | 128 | a | |
120 | 129 | case _ => | |
121 | 130 | 0 | |
122 | 131 | } | |
123 | 132 | let TotalTxnsCODE = (PreviousTxnsCODE + 1) | |
124 | 133 | let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") { | |
125 | 134 | case a: Int => | |
126 | 135 | a | |
127 | 136 | case _ => | |
128 | 137 | 0 | |
129 | 138 | } | |
130 | 139 | let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey))) | |
131 | 140 | let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") { | |
132 | 141 | case a: Int => | |
133 | 142 | a | |
134 | 143 | case _ => | |
135 | 144 | 0 | |
136 | 145 | } | |
137 | 146 | let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey))) | |
138 | 147 | let PreviousClaimFeeInTN = match getIntegerValue(this, "Total_Claim_Fee_In_TN") { | |
139 | 148 | case a: Int => | |
140 | 149 | a | |
141 | 150 | case _ => | |
142 | 151 | 0 | |
143 | 152 | } | |
144 | 153 | let TotalClaimFeeInTN = (PreviousClaimFeeInTN + ClaimFee) | |
145 | 154 | let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
146 | 155 | let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
147 | 156 | let gapofheight = (fetchusermatureheight - fetchuserstakeheight) | |
148 | 157 | if (isDefined(pmt.assetId)) | |
149 | 158 | then throw((("Wrong Asset Attached for Payment, please Attach " + toString(ClaimFee)) + "/10^8 TN.")) | |
150 | 159 | else if ((pmt.amount != ClaimFee)) | |
151 | 160 | then throw((("Please Attach Exact " + toString(ClaimFee)) + "/10^8 TN.")) | |
152 | 161 | else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height)) | |
153 | 162 | then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + currentKey)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) - height))) + " blocks.")) | |
154 | 163 | else if ((checkdepositvalue == 0)) | |
155 | 164 | then throw("You Have Already Withdraw your CODE Amount.") | |
156 | 165 | else if ((gapofheight != 129600)) | |
157 | 166 | then throw("You are Not Eligible to Withdraw CODE. It need minimum 90 Days Staking at A4A DApp. Probably you already have Claimed Your Stake or you Overwrite the Smart Contract with less than 90 days.") | |
158 | 167 | else if ((fetchUserStakeAmt >= 1199999999999)) | |
159 | 168 | then [IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Total_CODE_Claimed:", totalrewardclaimed), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Claim_Fee_In_TN", TotalClaimFeeInTN), IntegerEntry("Fee_%_Charge", FlatfeePercent), IntegerEntry("Fee_Amount", userFlatFeeAmt), Reissue(CODEAssetID, getIntegerValue(this, ("Rewards_Of_" + currentKey)), true), ScriptTransfer(i.caller, (getIntegerValue(this, ("Rewards_Of_" + currentKey)) - userFlatFeeAmt), CODEAssetID), ScriptTransfer(addressFromPublicKey(TreasuryFeeAddress), fraction(userFlatFeeAmt, 80, 100), CODEAssetID), ScriptTransfer(addressFromPublicKey(devaddress), fraction(userFlatFeeAmt, devfeechared, 100), CODEAssetID), IntegerEntry(("No_Of_Deposits_" + currentKey), 0), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Rewards_Of_" + currentKey), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
160 | 169 | else [IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Total_CODE_Claimed:", totalrewardclaimed), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Claim_Fee_In_TN", TotalClaimFeeInTN), IntegerEntry("Fee_%_Charge", FeesPercent), IntegerEntry("Fee_Amount", userFeeAmt), Reissue(CODEAssetID, getIntegerValue(this, ("Rewards_Of_" + currentKey)), true), ScriptTransfer(i.caller, (getIntegerValue(this, ("Rewards_Of_" + currentKey)) - userFeeAmt), CODEAssetID), ScriptTransfer(addressFromPublicKey(TreasuryFeeAddress), fraction(userFeeAmt, 80, 100), CODEAssetID), ScriptTransfer(addressFromPublicKey(devaddress), fraction(userFeeAmt, devfeechared, 100), CODEAssetID), IntegerEntry(("No_Of_Deposits_" + currentKey), 0), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Rewards_Of_" + currentKey), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
161 | 170 | } | |
162 | 171 | ||
163 | 172 | ||
164 | 173 | ||
165 | 174 | @Callable(i) | |
166 | 175 | func SetDaysRange (Minimum_Days_Range,Maximum_Days_Range) = { | |
167 | 176 | let calleraddress = toBase58String(i.caller.bytes) | |
168 | 177 | let adminrights = getStringValue(this, "DApp_Admin_Rights") | |
169 | 178 | let Minimum_days = 7 | |
170 | 179 | let Maximum_days = 200 | |
171 | 180 | if ((adminrights != calleraddress)) | |
172 | 181 | then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Days Range.")) | |
173 | 182 | else if ((Minimum_days > Minimum_Days_Range)) | |
174 | 183 | then throw("Minimum days range must be more than 6 and in between 7-200.") | |
175 | 184 | else if ((Maximum_Days_Range > Maximum_days)) | |
176 | 185 | then throw("Maximum days range can't exceed the 200.") | |
177 | 186 | else if ((Minimum_Days_Range > Maximum_Days_Range)) | |
178 | 187 | then throw((((("Minimum days range can't be exceed the value of Maximum days range. Choose the Range between [" + toString(Minimum_days)) + "-") + toString(Maximum_days)) + "]")) | |
179 | 188 | else [IntegerEntry("Minimum_Days_Range", Minimum_Days_Range), IntegerEntry("Maximum_Days_Range", Maximum_Days_Range)] | |
180 | 189 | } | |
181 | 190 | ||
182 | 191 | ||
183 | 192 | ||
184 | 193 | @Callable(i) | |
185 | 194 | func SetClaimFee (ClaimFee) = { | |
186 | 195 | let calleraddress = toBase58String(i.caller.bytes) | |
187 | 196 | let adminrights = getStringValue(this, "DApp_Admin_Rights") | |
188 | 197 | let Minimum_Claim_fee = 100000000 | |
189 | 198 | let Maximum_Claim_fee = 100000000000 | |
190 | 199 | if ((adminrights != calleraddress)) | |
191 | 200 | then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Claim Fee.")) | |
192 | 201 | else if ((Minimum_Claim_fee > ClaimFee)) | |
193 | 202 | then throw((("Minimum Claim fee is " + toString(Minimum_Claim_fee)) + " TN [int-format].")) | |
194 | 203 | else if ((ClaimFee > Maximum_Claim_fee)) | |
195 | 204 | then throw((("Maximum Claim fee can't be more than " + toString(Maximum_Claim_fee)) + " TN. [int-format]")) | |
196 | 205 | else [IntegerEntry("Claim_Fee", ClaimFee)] | |
197 | 206 | } | |
198 | 207 | ||
199 | 208 | ||
200 | 209 | @Verifier(tx) | |
201 | 210 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
202 | 211 |
github/deemru/w8io/026f985 49.59 ms ◑