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/F4fmB0sxZ6ySMfiIAAAAAAKZGV2YWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAADGRldmZlZWNoYXJlZAAAAAAAAAAAFAAAAAALU3RhcnRIZWlnaHQAAAAAAAAcOpAAAAAAD21pbmltdW1sb2NrZGF5cwkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAST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FpbV9mZWUAAAAAF0h26AADCQEAAAACIT0AAAACBQAAAAthZG1pbnJpZ2h0cwUAAAANY2FsbGVyYWRkcmVzcwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAiSSBrbm93IFlvdSBhcmUgbm90IEFuIEFkbWluLiBPbmx5IAUAAAALYWRtaW5yaWdodHMCAAAAICBoYXMgcmlnaHRzIHRvIGNoYW5nZSBDbGFpbSBGZWUuAwkAAGYAAAACBQAAABFNaW5pbXVtX0NsYWltX2ZlZQUAAAAIQ2xhaW1GZWUJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAFU1pbmltdW0gQ2xhaW0gZmVlIGlzIAkAAaQAAAABBQAAABFNaW5pbXVtX0NsYWltX2ZlZQIAAAARIFROIFtpbnQtZm9ybWF0XS4DCQAAZgAAAAIFAAAACENsYWltRmVlBQAAABFNYXhpbXVtX0NsYWltX2ZlZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAlTWF4aW11bSBDbGFpbSBmZWUgY2FuJ3QgYmUgbW9yZSB0aGFuIAkAAaQAAAABBQAAABFNYXhpbXVtX0NsYWltX2ZlZQIAAAARIFROLiBbaW50LWZvcm1hdF0JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACUNsYWltX0ZlZQUAAAAIQ2xhaW1GZWUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V54ubzMQ==", "height": 2675699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJTRgHuLbmBRn4PqMTHvSLeccb8Q4D6XKTC7YLxtfwXM Next: none Diff:
OldNewDifferences
2020 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
2121
2222 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23+
24+let Minimum_CODE_Stake_Amount = 100000
2325
2426 let Minimum_Burn_factor = 1000000
2527
7375 0
7476 }
7577 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)
7685 if ((checkLicenseBalance != 1))
7786 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
7887 else if ((checkLicenseBalance > 1))
8594 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8695 else if ((days > maximumlockdays))
8796 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
88- else if ((100000 > pmt.amount))
97+ else if ((Minimum_CODE_Stake_Amount > pmt.amount))
8998 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
9099 else if ((pmt.amount > allowdedpymt))
91100 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
94103 else if ((UserNoOfDeposits == 1))
95104 then throw("You Already Have an Active Staking, Please Wait until Mature.")
96105 else if ((Minimum_Burn_factor > Burn_factor))
97- then [StringEntry("Version", Version), StringEntry("Version_Updator", ((Version + "_") + 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)]
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)]
98107 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>")]
99108 }
100109
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let Version = "3.0.0"
55
66 let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
77
88 let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
99
1010 let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
1111
1212 let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1313
1414 let devaddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1515
1616 let devfeechared = 20
1717
1818 let StartHeight = 1850000
1919
2020 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
2121
2222 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23+
24+let Minimum_CODE_Stake_Amount = 100000
2325
2426 let Minimum_Burn_factor = 1000000
2527
2628 let oneday = 1440
2729
2830 let blockdiff = (height - StartHeight)
2931
3032 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
3133
3234 @Callable(i)
3335 func Deposit (days) = {
3436 let pmt = if ((size(i.payments) == 1))
3537 then i.payments[0]
3638 else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only."))
3739 let currentKey = toBase58String(i.caller.bytes)
3840 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
3941 let allowdedpymt = (blockdiff * 100000)
4042 let actualblocks = (oneday * days)
4143 let totallockblocks = (height + actualblocks)
4244 let max_receivable = fraction(maximumlockdays, (allowdedpymt * InflationNo), (365 * 1000))
4345 let Burn_factor = fraction(max_receivable, 1000000, allowdedpymt)
4446 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
4547 case a: Int =>
4648 a
4749 case _ =>
4850 0
4951 }
5052 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
5153 let PreviousBurnedCODE = match getInteger(this, "Total_Burned_CODE:") {
5254 case a: Int =>
5355 a
5456 case _ =>
5557 0
5658 }
5759 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
5860 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
5961 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
6062 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
6163 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID)
6264 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
6365 case a: Int =>
6466 a
6567 case _ =>
6668 0
6769 }
6870 let newCODEAmount = (currentCODEAmount + pmt.amount)
6971 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
7072 case a: Int =>
7173 a
7274 case _ =>
7375 0
7476 }
7577 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)
7685 if ((checkLicenseBalance != 1))
7786 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
7887 else if ((checkLicenseBalance > 1))
7988 then throw("You Own Multiple CODE License on Same Address.")
8089 else if ((StartHeight > height))
8190 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
8291 else if ((pmt.assetId != CODEAssetID))
8392 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
8493 else if ((minimumlockdays >= days))
8594 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8695 else if ((days > maximumlockdays))
8796 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
88- else if ((100000 > pmt.amount))
97+ else if ((Minimum_CODE_Stake_Amount > pmt.amount))
8998 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
9099 else if ((pmt.amount > allowdedpymt))
91100 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
92101 else if ((gapofheight != 129600))
93102 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
94103 else if ((UserNoOfDeposits == 1))
95104 then throw("You Already Have an Active Staking, Please Wait until Mature.")
96105 else if ((Minimum_Burn_factor > Burn_factor))
97- then [StringEntry("Version", Version), StringEntry("Version_Updator", ((Version + "_") + 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)]
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)]
98107 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>")]
99108 }
100109
101110
102111
103112 @Callable(i)
104113 func Withdraw () = {
105114 let currentKey = toBase58String(i.caller.bytes)
106115 let MaxA4AAmt = 1200000000000
107116 let MaxFee = 24000000
108117 let divisiblefactor = 19
109118 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
110119 let FlatfeePercent = 500
111120 let FeesPercent = ((MaxFee - (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)) / 10000)
112121 let ClaimFee = getIntegerValue(this, "Claim_Fee")
113122 let pmt = value(i.payments[0])
114123 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
115124 let userFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FeesPercent) / 10000)
116125 let userFlatFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FlatfeePercent) / 10000)
117126 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
118127 case a: Int =>
119128 a
120129 case _ =>
121130 0
122131 }
123132 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
124133 let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") {
125134 case a: Int =>
126135 a
127136 case _ =>
128137 0
129138 }
130139 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
131140 let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") {
132141 case a: Int =>
133142 a
134143 case _ =>
135144 0
136145 }
137146 let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
138147 let PreviousClaimFeeInTN = match getIntegerValue(this, "Total_Claim_Fee_In_TN") {
139148 case a: Int =>
140149 a
141150 case _ =>
142151 0
143152 }
144153 let TotalClaimFeeInTN = (PreviousClaimFeeInTN + ClaimFee)
145154 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
146155 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
147156 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
148157 if (isDefined(pmt.assetId))
149158 then throw((("Wrong Asset Attached for Payment, please Attach " + toString(ClaimFee)) + "/10^8 TN."))
150159 else if ((pmt.amount != ClaimFee))
151160 then throw((("Please Attach Exact " + toString(ClaimFee)) + "/10^8 TN."))
152161 else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
153162 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."))
154163 else if ((checkdepositvalue == 0))
155164 then throw("You Have Already Withdraw your CODE Amount.")
156165 else if ((gapofheight != 129600))
157166 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.")
158167 else if ((fetchUserStakeAmt >= 1199999999999))
159168 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>")]
160169 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>")]
161170 }
162171
163172
164173
165174 @Callable(i)
166175 func SetDaysRange (Minimum_Days_Range,Maximum_Days_Range) = {
167176 let calleraddress = toBase58String(i.caller.bytes)
168177 let adminrights = getStringValue(this, "DApp_Admin_Rights")
169178 let Minimum_days = 7
170179 let Maximum_days = 200
171180 if ((adminrights != calleraddress))
172181 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Days Range."))
173182 else if ((Minimum_days > Minimum_Days_Range))
174183 then throw("Minimum days range must be more than 6 and in between 7-200.")
175184 else if ((Maximum_Days_Range > Maximum_days))
176185 then throw("Maximum days range can't exceed the 200.")
177186 else if ((Minimum_Days_Range > Maximum_Days_Range))
178187 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)) + "]"))
179188 else [IntegerEntry("Minimum_Days_Range", Minimum_Days_Range), IntegerEntry("Maximum_Days_Range", Maximum_Days_Range)]
180189 }
181190
182191
183192
184193 @Callable(i)
185194 func SetClaimFee (ClaimFee) = {
186195 let calleraddress = toBase58String(i.caller.bytes)
187196 let adminrights = getStringValue(this, "DApp_Admin_Rights")
188197 let Minimum_Claim_fee = 100000000
189198 let Maximum_Claim_fee = 100000000000
190199 if ((adminrights != calleraddress))
191200 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Claim Fee."))
192201 else if ((Minimum_Claim_fee > ClaimFee))
193202 then throw((("Minimum Claim fee is " + toString(Minimum_Claim_fee)) + " TN [int-format]."))
194203 else if ((ClaimFee > Maximum_Claim_fee))
195204 then throw((("Maximum Claim fee can't be more than " + toString(Maximum_Claim_fee)) + " TN. [int-format]"))
196205 else [IntegerEntry("Claim_Fee", ClaimFee)]
197206 }
198207
199208
200209 @Verifier(tx)
201210 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
202211

github/deemru/w8io/026f985 
49.59 ms