tx · 51bruAkKK44BQb5wPmAyEvRud6WVamLBRB6g5iTaf7oJ

3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA:  -0.02000000 Waves

2023.07.21 13:12 [2675481] smart account 3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA > SELF 0.00000000 Waves

{ "type": 13, "id": "51bruAkKK44BQb5wPmAyEvRud6WVamLBRB6g5iTaf7oJ", "fee": 2000000, "feeAssetId": null, "timestamp": 1689934374201, "version": 2, "chainId": 84, "sender": "3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA", "senderPublicKey": "FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw", "proofs": [ "5rFYP1p58Jiq3i6Svv1KKGx2oJEGnVkzLNrJXSwwEZKAupKTQLmqodVjRf6CGqFGtZSLPMJkQFZNDT5iMvee5NbC" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEBEgASBAoCAQESAwoBAQAAAAwAAAAAC0NPREVBc3NldElEAQAAACDDu1qZD791ejInBFn8Vvk3iN043OoKdDgvJd+307zSoAAAAAASQ09ERUxJQ0VOU0VBc3NldElEAQAAACDuVWcCNwu/F6RwHf8Khsp9hzfce+NYvgDdHANrAZndDgAAAAALU3Rha2luZ0RhcHABAAAAIP1BmwSx4bIxRW9G92Fp+LHjR7RGmJ4CHLHEY95r1tU/AAAAABJUcmVhc3VyeUZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZhZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAAMZGV2ZmVlY2hhcmVkAAAAAAAAAAAUAAAAAAtTdGFydEhlaWdodAAAAAAAABw6kAAAAAAPbWluaW11bWxvY2tkYXlzCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAABJNaW5pbXVtX0RheXNfUmFuZ2UAAAAAD21heGltdW1sb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AgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACJJIGtub3cgWW91IGFyZSBub3QgQW4gQWRtaW4uIE9ubHkgBQAAAAthZG1pbnJpZ2h0cwIAAAAgIGhhcyByaWdodHMgdG8gY2hhbmdlIENsYWltIEZlZS4DCQAAZgAAAAIFAAAAEU1pbmltdW1fQ2xhaW1fZmVlBQAAAAhDbGFpbUZlZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAVTWluaW11bSBDbGFpbSBmZWUgaXMgCQABpAAAAAEFAAAAEU1pbmltdW1fQ2xhaW1fZmVlAgAAABEgVE4gW2ludC1mb3JtYXRdLgMJAABmAAAAAgUAAAAIQ2xhaW1GZWUFAAAAEU1heGltdW1fQ2xhaW1fZmVlCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACVNYXhpbXVtIENsYWltIGZlZSBjYW4ndCBiZSBtb3JlIHRoYW4gCQABpAAAAAEFAAAAEU1heGltdW1fQ2xhaW1fZmVlAgAAABEgVE4uIFtpbnQtZm9ybWF0XQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJQ2xhaW1fRmVlBQAAAAhDbGFpbUZlZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmVK0lJ", "height": 2675481, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JCRMZuqf9ww4MRpMxiDN4LecG7g96yZ3pj8RCJHxavjZ Next: CJTRgHuLbmBRn4PqMTHvSLeccb8Q4D6XKTC7YLxtfwXM Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let CODEAssetID = base58'ArPqXguhFLjJt5XwcNwhXMnCv2zSumrM19y5WgT34yRi'
4+let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
55
6-let CODELICENSEAssetID = base58'AxK7XXUow7R1roZXLyYbW7qokA3ELxAWPpyXkJCJumCa'
6+let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
77
8-let StakingDapp = base58'FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw'
8+let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
99
1010 let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1111
1515
1616 let StartHeight = 1850000
1717
18-let minimumBurnFactor = 1000000
19-
2018 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
2119
2220 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23-
24-let New_minimumlockdays = (minimumlockdays + 1)
25-
26-let New_maximumlockdays = (maximumlockdays + 1)
2721
2822 let oneday = 1440
2923
5751 0
5852 }
5953 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
60- let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking, DAppError: Deposit Height data Missing")
61- let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp,Error: Total Lock Blocks data Missing")
54+ let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
55+ let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
6256 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
6357 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID)
6458 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
9185 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
9286 else if ((pmt.amount > allowdedpymt))
9387 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
94- else if ((gapofheight != 129600))
95- then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
96- else if ((UserNoOfDeposits == 1))
97- then throw("You Already Have an Active Staking, Please Wait until Mature.")
98- else if ((Burn_factor > minimumBurnFactor))
99- then [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>")]
100- else if ((minimumBurnFactor > Burn_factor))
101- then [IntegerEntry("Minimum_Days_Range", New_minimumlockdays), IntegerEntry("Maximum_Days_Range", New_maximumlockdays), StringEntry("message", (((("<h1>Days Range Expended from " + toString(maximumlockdays)) + " Days to ") + toString(New_maximumlockdays)) + " Days. Please Re-Stake Your Code."))]
102- else nil
88+ else if ((pmt.amount > UserClaimAmount))
89+ then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString(UserClaimAmount)) + "/") + toString(pmt.amount)) + ")/10^8 CODE."))
90+ else if ((gapofheight != 129600))
91+ then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
92+ else if ((UserNoOfDeposits == 1))
93+ then throw("You Already Have an Active Staking, Please Wait until Mature.")
94+ 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>")]
10395 }
10496
10597
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let CODEAssetID = base58'ArPqXguhFLjJt5XwcNwhXMnCv2zSumrM19y5WgT34yRi'
4+let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
55
6-let CODELICENSEAssetID = base58'AxK7XXUow7R1roZXLyYbW7qokA3ELxAWPpyXkJCJumCa'
6+let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
77
8-let StakingDapp = base58'FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw'
8+let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
99
1010 let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1111
1212 let devaddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1313
1414 let devfeechared = 20
1515
1616 let StartHeight = 1850000
1717
18-let minimumBurnFactor = 1000000
19-
2018 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
2119
2220 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23-
24-let New_minimumlockdays = (minimumlockdays + 1)
25-
26-let New_maximumlockdays = (maximumlockdays + 1)
2721
2822 let oneday = 1440
2923
3024 let blockdiff = (height - StartHeight)
3125
3226 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
3327
3428 @Callable(i)
3529 func Deposit (days) = {
3630 let pmt = if ((size(i.payments) == 1))
3731 then i.payments[0]
3832 else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only."))
3933 let currentKey = toBase58String(i.caller.bytes)
4034 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
4135 let allowdedpymt = (blockdiff * 100000)
4236 let actualblocks = (oneday * days)
4337 let totallockblocks = (height + actualblocks)
4438 let max_receivable = fraction(maximumlockdays, (allowdedpymt * InflationNo), (365 * 1000))
4539 let Burn_factor = fraction(max_receivable, 1000000, allowdedpymt)
4640 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
4741 case a: Int =>
4842 a
4943 case _ =>
5044 0
5145 }
5246 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
5347 let PreviousBurnedCODE = match getInteger(this, "Total_Burned_CODE:") {
5448 case a: Int =>
5549 a
5650 case _ =>
5751 0
5852 }
5953 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
60- let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking, DAppError: Deposit Height data Missing")
61- let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp,Error: Total Lock Blocks data Missing")
54+ let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
55+ let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
6256 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
6357 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID)
6458 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
6559 case a: Int =>
6660 a
6761 case _ =>
6862 0
6963 }
7064 let newCODEAmount = (currentCODEAmount + pmt.amount)
7165 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
7266 case a: Int =>
7367 a
7468 case _ =>
7569 0
7670 }
7771 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
7872 if ((checkLicenseBalance != 1))
7973 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
8074 else if ((checkLicenseBalance > 1))
8175 then throw("You Own Multiple CODE License on Same Address.")
8276 else if ((StartHeight > height))
8377 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
8478 else if ((pmt.assetId != CODEAssetID))
8579 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
8680 else if ((minimumlockdays >= days))
8781 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8882 else if ((days > maximumlockdays))
8983 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
9084 else if ((100000 > pmt.amount))
9185 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
9286 else if ((pmt.amount > allowdedpymt))
9387 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
94- else if ((gapofheight != 129600))
95- then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
96- else if ((UserNoOfDeposits == 1))
97- then throw("You Already Have an Active Staking, Please Wait until Mature.")
98- else if ((Burn_factor > minimumBurnFactor))
99- then [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>")]
100- else if ((minimumBurnFactor > Burn_factor))
101- then [IntegerEntry("Minimum_Days_Range", New_minimumlockdays), IntegerEntry("Maximum_Days_Range", New_maximumlockdays), StringEntry("message", (((("<h1>Days Range Expended from " + toString(maximumlockdays)) + " Days to ") + toString(New_maximumlockdays)) + " Days. Please Re-Stake Your Code."))]
102- else nil
88+ else if ((pmt.amount > UserClaimAmount))
89+ then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString(UserClaimAmount)) + "/") + toString(pmt.amount)) + ")/10^8 CODE."))
90+ else if ((gapofheight != 129600))
91+ then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
92+ else if ((UserNoOfDeposits == 1))
93+ then throw("You Already Have an Active Staking, Please Wait until Mature.")
94+ 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>")]
10395 }
10496
10597
10698
10799 @Callable(i)
108100 func Withdraw () = {
109101 let currentKey = toBase58String(i.caller.bytes)
110102 let MaxA4AAmt = 1200000000000
111103 let MaxFee = 24000000
112104 let divisiblefactor = 19
113105 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
114106 let FlatfeePercent = 500
115107 let FeesPercent = ((MaxFee - (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)) / 10000)
116108 let ClaimFee = getIntegerValue(this, "Claim_Fee")
117109 let pmt = value(i.payments[0])
118110 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
119111 let userFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FeesPercent) / 10000)
120112 let userFlatFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FlatfeePercent) / 10000)
121113 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
122114 case a: Int =>
123115 a
124116 case _ =>
125117 0
126118 }
127119 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
128120 let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") {
129121 case a: Int =>
130122 a
131123 case _ =>
132124 0
133125 }
134126 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
135127 let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") {
136128 case a: Int =>
137129 a
138130 case _ =>
139131 0
140132 }
141133 let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
142134 let PreviousClaimFeeInTN = match getIntegerValue(this, "Total_Claim_Fee_In_TN") {
143135 case a: Int =>
144136 a
145137 case _ =>
146138 0
147139 }
148140 let TotalClaimFeeInTN = (PreviousClaimFeeInTN + ClaimFee)
149141 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
150142 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
151143 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
152144 if (isDefined(pmt.assetId))
153145 then throw((("Wrong Asset Attached for Payment, please Attach " + toString(ClaimFee)) + "/10^8 TN."))
154146 else if ((pmt.amount != ClaimFee))
155147 then throw((("Please Attach Exact " + toString(ClaimFee)) + "/10^8 TN."))
156148 else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
157149 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."))
158150 else if ((checkdepositvalue == 0))
159151 then throw("You Have Already Withdraw your CODE Amount.")
160152 else if ((gapofheight != 129600))
161153 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.")
162154 else if ((fetchUserStakeAmt >= 1199999999999))
163155 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>")]
164156 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>")]
165157 }
166158
167159
168160
169161 @Callable(i)
170162 func SetDaysRange (Minimum_Days_Range,Maximum_Days_Range) = {
171163 let calleraddress = toBase58String(i.caller.bytes)
172164 let adminrights = getStringValue(this, "DApp_Admin_Rights")
173165 let Minimum_days = 7
174166 let Maximum_days = 200
175167 if ((adminrights != calleraddress))
176168 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Days Range."))
177169 else if ((Minimum_days > Minimum_Days_Range))
178170 then throw("Minimum days range must be more than 6 and in between 7-200.")
179171 else if ((Maximum_Days_Range > Maximum_days))
180172 then throw("Maximum days range can't exceed the 200.")
181173 else if ((Minimum_Days_Range > Maximum_Days_Range))
182174 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)) + "]"))
183175 else [IntegerEntry("Minimum_Days_Range", Minimum_Days_Range), IntegerEntry("Maximum_Days_Range", Maximum_Days_Range)]
184176 }
185177
186178
187179
188180 @Callable(i)
189181 func SetClaimFee (ClaimFee) = {
190182 let calleraddress = toBase58String(i.caller.bytes)
191183 let adminrights = getStringValue(this, "DApp_Admin_Rights")
192184 let Minimum_Claim_fee = 100000000
193185 let Maximum_Claim_fee = 100000000000
194186 if ((adminrights != calleraddress))
195187 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Claim Fee."))
196188 else if ((Minimum_Claim_fee > ClaimFee))
197189 then throw((("Minimum Claim fee is " + toString(Minimum_Claim_fee)) + " TN [int-format]."))
198190 else if ((ClaimFee > Maximum_Claim_fee))
199191 then throw((("Maximum Claim fee can't be more than " + toString(Maximum_Claim_fee)) + " TN. [int-format]"))
200192 else [IntegerEntry("Claim_Fee", ClaimFee)]
201193 }
202194
203195
204196 @Verifier(tx)
205197 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
206198

github/deemru/w8io/026f985 
42.46 ms