tx · CJTRgHuLbmBRn4PqMTHvSLeccb8Q4D6XKTC7YLxtfwXM

3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA:  -0.02200000 Waves

2023.07.21 15:06 [2675592] smart account 3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA > SELF 0.00000000 Waves

{ "type": 13, "id": "CJTRgHuLbmBRn4PqMTHvSLeccb8Q4D6XKTC7YLxtfwXM", "fee": 2200000, "feeAssetId": null, "timestamp": 1689941218358, "version": 2, "chainId": 84, "sender": "3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA", "senderPublicKey": "FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw", "proofs": [ "4XWiEjAQL6jzbEBgm7468PyiJ61ftG29A7xkx925o4tZ8To6chxocWx7hApxsNEcUrGfLDAbzhpABXnJRhwgNJYg" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEBEgASBAoCAQESAwoBAQAAAA4AAAAAB1ZlcnNpb24CAAAABTMuMC4wAAAAAAtDT0RFQXNzZXRJRAEAAAAgw7tamQ+/dXoyJwRZ/Fb5N4jdONzqCnQ4LyXft9O80qAAAAAAEkNPREVMSUNFTlNFQXNzZXRJRAEAAAAg7lVnAjcLvxekcB3/CobKfYc33HvjWL4A3RwDawGZ3Q4AAAAAC1N0YWtpbmdEYXBwAQAAACD9QZsEseGyMUVvRvdhafix40e0RpieAhyxxGPea9bVPwAAAAASVHJlYXN1cnlGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2YWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAADGRldmZlZWNoYXJlZAAAAAAAAAAAFAAAAAALU3RhcnRIZWlnaHQAAAAAAAAcOpAAAAAAD21pbmltdW1sb2NrZGF5cwkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAA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mVlCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACVNYXhpbXVtIENsYWltIGZlZSBjYW4ndCBiZSBtb3JlIHRoYW4gCQABpAAAAAEFAAAAEU1heGltdW1fQ2xhaW1fZmVlAgAAABEgVE4uIFtpbnQtZm9ybWF0XQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJQ2xhaW1fRmVlBQAAAAhDbGFpbUZlZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlpNpF6", "height": 2675592, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 51bruAkKK44BQb5wPmAyEvRud6WVamLBRB6g5iTaf7oJ Next: 4ZRPCAaHnp7PjXCWhJhcuxycowdhei439kvyK1bbqweR Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let Version = "3.0.0"
5+
46 let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
57
68 let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
1820 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
1921
2022 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23+
24+let Minimum_Burn_factor = 1000000
2125
2226 let oneday = 1440
2327
8589 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
8690 else if ((pmt.amount > allowdedpymt))
8791 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
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.")
92+ else if ((gapofheight != 129600))
93+ then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
94+ else if ((UserNoOfDeposits == 1))
95+ then throw("You Already Have an Active Staking, Please Wait until Mature.")
96+ 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)]
9498 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>")]
9599 }
96100
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let Version = "3.0.0"
5+
46 let CODEAssetID = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
57
68 let CODELICENSEAssetID = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
79
810 let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
911
1012 let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1113
1214 let devaddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1315
1416 let devfeechared = 20
1517
1618 let StartHeight = 1850000
1719
1820 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
1921
2022 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
23+
24+let Minimum_Burn_factor = 1000000
2125
2226 let oneday = 1440
2327
2428 let blockdiff = (height - StartHeight)
2529
2630 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
2731
2832 @Callable(i)
2933 func Deposit (days) = {
3034 let pmt = if ((size(i.payments) == 1))
3135 then i.payments[0]
3236 else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only."))
3337 let currentKey = toBase58String(i.caller.bytes)
3438 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
3539 let allowdedpymt = (blockdiff * 100000)
3640 let actualblocks = (oneday * days)
3741 let totallockblocks = (height + actualblocks)
3842 let max_receivable = fraction(maximumlockdays, (allowdedpymt * InflationNo), (365 * 1000))
3943 let Burn_factor = fraction(max_receivable, 1000000, allowdedpymt)
4044 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
4145 case a: Int =>
4246 a
4347 case _ =>
4448 0
4549 }
4650 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
4751 let PreviousBurnedCODE = match getInteger(this, "Total_Burned_CODE:") {
4852 case a: Int =>
4953 a
5054 case _ =>
5155 0
5256 }
5357 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
5458 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
5559 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
5660 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
5761 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID)
5862 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
5963 case a: Int =>
6064 a
6165 case _ =>
6266 0
6367 }
6468 let newCODEAmount = (currentCODEAmount + pmt.amount)
6569 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
6670 case a: Int =>
6771 a
6872 case _ =>
6973 0
7074 }
7175 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
7276 if ((checkLicenseBalance != 1))
7377 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
7478 else if ((checkLicenseBalance > 1))
7579 then throw("You Own Multiple CODE License on Same Address.")
7680 else if ((StartHeight > height))
7781 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
7882 else if ((pmt.assetId != CODEAssetID))
7983 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
8084 else if ((minimumlockdays >= days))
8185 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8286 else if ((days > maximumlockdays))
8387 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8488 else if ((100000 > pmt.amount))
8589 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
8690 else if ((pmt.amount > allowdedpymt))
8791 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
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.")
92+ else if ((gapofheight != 129600))
93+ then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
94+ else if ((UserNoOfDeposits == 1))
95+ then throw("You Already Have an Active Staking, Please Wait until Mature.")
96+ 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)]
9498 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>")]
9599 }
96100
97101
98102
99103 @Callable(i)
100104 func Withdraw () = {
101105 let currentKey = toBase58String(i.caller.bytes)
102106 let MaxA4AAmt = 1200000000000
103107 let MaxFee = 24000000
104108 let divisiblefactor = 19
105109 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
106110 let FlatfeePercent = 500
107111 let FeesPercent = ((MaxFee - (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)) / 10000)
108112 let ClaimFee = getIntegerValue(this, "Claim_Fee")
109113 let pmt = value(i.payments[0])
110114 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
111115 let userFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FeesPercent) / 10000)
112116 let userFlatFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FlatfeePercent) / 10000)
113117 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
114118 case a: Int =>
115119 a
116120 case _ =>
117121 0
118122 }
119123 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
120124 let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") {
121125 case a: Int =>
122126 a
123127 case _ =>
124128 0
125129 }
126130 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
127131 let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") {
128132 case a: Int =>
129133 a
130134 case _ =>
131135 0
132136 }
133137 let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
134138 let PreviousClaimFeeInTN = match getIntegerValue(this, "Total_Claim_Fee_In_TN") {
135139 case a: Int =>
136140 a
137141 case _ =>
138142 0
139143 }
140144 let TotalClaimFeeInTN = (PreviousClaimFeeInTN + ClaimFee)
141145 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
142146 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
143147 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
144148 if (isDefined(pmt.assetId))
145149 then throw((("Wrong Asset Attached for Payment, please Attach " + toString(ClaimFee)) + "/10^8 TN."))
146150 else if ((pmt.amount != ClaimFee))
147151 then throw((("Please Attach Exact " + toString(ClaimFee)) + "/10^8 TN."))
148152 else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
149153 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."))
150154 else if ((checkdepositvalue == 0))
151155 then throw("You Have Already Withdraw your CODE Amount.")
152156 else if ((gapofheight != 129600))
153157 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.")
154158 else if ((fetchUserStakeAmt >= 1199999999999))
155159 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>")]
156160 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>")]
157161 }
158162
159163
160164
161165 @Callable(i)
162166 func SetDaysRange (Minimum_Days_Range,Maximum_Days_Range) = {
163167 let calleraddress = toBase58String(i.caller.bytes)
164168 let adminrights = getStringValue(this, "DApp_Admin_Rights")
165169 let Minimum_days = 7
166170 let Maximum_days = 200
167171 if ((adminrights != calleraddress))
168172 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Days Range."))
169173 else if ((Minimum_days > Minimum_Days_Range))
170174 then throw("Minimum days range must be more than 6 and in between 7-200.")
171175 else if ((Maximum_Days_Range > Maximum_days))
172176 then throw("Maximum days range can't exceed the 200.")
173177 else if ((Minimum_Days_Range > Maximum_Days_Range))
174178 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)) + "]"))
175179 else [IntegerEntry("Minimum_Days_Range", Minimum_Days_Range), IntegerEntry("Maximum_Days_Range", Maximum_Days_Range)]
176180 }
177181
178182
179183
180184 @Callable(i)
181185 func SetClaimFee (ClaimFee) = {
182186 let calleraddress = toBase58String(i.caller.bytes)
183187 let adminrights = getStringValue(this, "DApp_Admin_Rights")
184188 let Minimum_Claim_fee = 100000000
185189 let Maximum_Claim_fee = 100000000000
186190 if ((adminrights != calleraddress))
187191 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Claim Fee."))
188192 else if ((Minimum_Claim_fee > ClaimFee))
189193 then throw((("Minimum Claim fee is " + toString(Minimum_Claim_fee)) + " TN [int-format]."))
190194 else if ((ClaimFee > Maximum_Claim_fee))
191195 then throw((("Maximum Claim fee can't be more than " + toString(Maximum_Claim_fee)) + " TN. [int-format]"))
192196 else [IntegerEntry("Claim_Fee", ClaimFee)]
193197 }
194198
195199
196200 @Verifier(tx)
197201 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
198202

github/deemru/w8io/026f985 
105.25 ms