tx · 6bXLJ4ZUtyrtR59LheaZwEKTUyHYWRPD17ajTbhUAPQD

3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA:  -0.02200000 Waves

2023.07.21 12:02 [2675406] smart account 3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA > SELF 0.00000000 Waves

{ "type": 13, "id": "6bXLJ4ZUtyrtR59LheaZwEKTUyHYWRPD17ajTbhUAPQD", "fee": 2200000, "feeAssetId": null, "timestamp": 1689930145760, "version": 2, "chainId": 84, "sender": "3N7CrGtgTb8SxosNYbfN8HwyZEDrqExkdgA", "senderPublicKey": "FyySBU6ydmEQirHxRVQwxjexQwZ4ikgE4LPJ8sxX2Naw", "proofs": [ "66KSf5ixueT6JWoEthNSm6oDutGpQuG22SYuAdkRMzg8ph19CVFn7P5gwRZxpTC3zciE66ffjx4zRLxQXxcNLtJV" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEBEgASBAoCAQESAwoBAQAAAA8AAAAAC0NPREVBc3NldElEAQAAACCSYHap8quoZ4MTmz5tSZFb1MvcSs2nh0Q4PG5eDO74kQAAAAASQ09ERUxJQ0VOU0VBc3NldElEAQAAACCT5JtStFR/LLUt4qSMWm67xnjtyDlYrfvjPSgwZuLYnwAAAAALU3Rha2luZ0RhcHABAAAAIP1BmwSx4bIxRW9G92Fp+LHjR7RGmJ4CHLHEY95r1tU/AAAAABJUcmVhc3VyeUZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZhZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAAMZGV2ZmVlY2hhcmVkAAAAAAAAAAAUAAAAAAtTdGFydEhlaWdodAAAAAAAABw6kAAAAAARbWluaW11bUJ1cm5GYWN0b3IAAAAAAAAPQkAAAAAAD21pbmltdW1sb2NrZGF5cwkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhp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AAEsAAAAAgIAAAAVTWluaW11bSBDbGFpbSBmZWUgaXMgCQABpAAAAAEFAAAAEU1pbmltdW1fQ2xhaW1fZmVlAgAAABEgVE4gW2ludC1mb3JtYXRdLgMJAABmAAAAAgUAAAAIQ2xhaW1GZWUFAAAAEU1heGltdW1fQ2xhaW1fZmVlCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACVNYXhpbXVtIENsYWltIGZlZSBjYW4ndCBiZSBtb3JlIHRoYW4gCQABpAAAAAEFAAAAEU1heGltdW1fQ2xhaW1fZmVlAgAAABEgVE4uIFtpbnQtZm9ybWF0XQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJQ2xhaW1fRmVlBQAAAAhDbGFpbUZlZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkRmzLX", "height": 2675406, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AtDmaDxfb4xKQTDG78ZoxdbkQGxPRYpn8RSoyL9exLuX Next: 7jJqfGbdP1aYesYezA9a2JPYXtTBe74w6NzsxkZzaVMc Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'ArPqXguhFLjJt5XwcNwhXMnCv2zSumrM19y5WgT34yRi'
55
6-let CODELICENSEAssetID = base58'FRPGcqtMX1hZyCuDLfWVvYEfUcVxBdGez2XThjKimKdA'
6+let CODELICENSEAssetID = base58'AxK7XXUow7R1roZXLyYbW7qokA3ELxAWPpyXkJCJumCa'
77
88 let StakingDapp = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
99
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'ArPqXguhFLjJt5XwcNwhXMnCv2zSumrM19y5WgT34yRi'
55
6-let CODELICENSEAssetID = base58'FRPGcqtMX1hZyCuDLfWVvYEfUcVxBdGez2XThjKimKdA'
6+let CODELICENSEAssetID = base58'AxK7XXUow7R1roZXLyYbW7qokA3ELxAWPpyXkJCJumCa'
77
88 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
1818 let minimumBurnFactor = 1000000
1919
2020 let minimumlockdays = getIntegerValue(this, "Minimum_Days_Range")
2121
2222 let maximumlockdays = getIntegerValue(this, "Maximum_Days_Range")
2323
2424 let New_minimumlockdays = (minimumlockdays + 1)
2525
2626 let New_maximumlockdays = (maximumlockdays + 1)
2727
2828 let oneday = 1440
2929
3030 let blockdiff = (height - StartHeight)
3131
3232 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
3333
3434 @Callable(i)
3535 func Deposit (days) = {
3636 let pmt = if ((size(i.payments) == 1))
3737 then i.payments[0]
3838 else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only."))
3939 let currentKey = toBase58String(i.caller.bytes)
4040 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
4141 let allowdedpymt = (blockdiff * 100000)
4242 let actualblocks = (oneday * days)
4343 let totallockblocks = (height + actualblocks)
4444 let max_receivable = fraction(maximumlockdays, (allowdedpymt * InflationNo), (365 * 1000))
4545 let Burn_factor = fraction(max_receivable, 1000000, allowdedpymt)
4646 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
4747 case a: Int =>
4848 a
4949 case _ =>
5050 0
5151 }
5252 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
5353 let PreviousBurnedCODE = match getInteger(this, "Total_Burned_CODE:") {
5454 case a: Int =>
5555 a
5656 case _ =>
5757 0
5858 }
5959 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
6060 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
6161 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
6262 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
6363 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), CODELICENSEAssetID)
6464 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
6565 case a: Int =>
6666 a
6767 case _ =>
6868 0
6969 }
7070 let newCODEAmount = (currentCODEAmount + pmt.amount)
7171 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
7272 case a: Int =>
7373 a
7474 case _ =>
7575 0
7676 }
7777 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
7878 if ((checkLicenseBalance != 1))
7979 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
8080 else if ((checkLicenseBalance > 1))
8181 then throw("You Own Multiple CODE License on Same Address.")
8282 else if ((StartHeight > height))
8383 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
8484 else if ((pmt.assetId != CODEAssetID))
8585 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
8686 else if ((minimumlockdays >= days))
8787 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
8888 else if ((days > maximumlockdays))
8989 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
9090 else if ((100000 > pmt.amount))
9191 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
9292 else if ((pmt.amount > allowdedpymt))
9393 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
9494 else if ((pmt.amount > UserClaimAmount))
9595 then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString(UserClaimAmount)) + "/") + toString(pmt.amount)) + ")/10^8 CODE."))
9696 else if ((gapofheight != 129600))
9797 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
9898 else if ((UserNoOfDeposits == 1))
9999 then throw("You Already Have an Active Staking, Please Wait until Mature.")
100100 else if ((Burn_factor > minimumBurnFactor))
101101 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>")]
102102 else if ((minimumBurnFactor > Burn_factor))
103103 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."))]
104104 else nil
105105 }
106106
107107
108108
109109 @Callable(i)
110110 func Withdraw () = {
111111 let currentKey = toBase58String(i.caller.bytes)
112112 let MaxA4AAmt = 1200000000000
113113 let MaxFee = 24000000
114114 let divisiblefactor = 19
115115 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
116116 let FlatfeePercent = 500
117117 let FeesPercent = ((MaxFee - (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)) / 10000)
118118 let ClaimFee = getIntegerValue(this, "Claim_Fee")
119119 let pmt = value(i.payments[0])
120120 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
121121 let userFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FeesPercent) / 10000)
122122 let userFlatFeeAmt = (((getIntegerValue(this, ("Rewards_Of_" + currentKey)) - checkdepositvalue) * FlatfeePercent) / 10000)
123123 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
124124 case a: Int =>
125125 a
126126 case _ =>
127127 0
128128 }
129129 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
130130 let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") {
131131 case a: Int =>
132132 a
133133 case _ =>
134134 0
135135 }
136136 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
137137 let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") {
138138 case a: Int =>
139139 a
140140 case _ =>
141141 0
142142 }
143143 let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
144144 let PreviousClaimFeeInTN = match getIntegerValue(this, "Total_Claim_Fee_In_TN") {
145145 case a: Int =>
146146 a
147147 case _ =>
148148 0
149149 }
150150 let TotalClaimFeeInTN = (PreviousClaimFeeInTN + ClaimFee)
151151 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
152152 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
153153 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
154154 if (isDefined(pmt.assetId))
155155 then throw((("Wrong Asset Attached for Payment, please Attach " + toString(ClaimFee)) + "/10^8 TN."))
156156 else if ((pmt.amount != ClaimFee))
157157 then throw((("Please Attach Exact " + toString(ClaimFee)) + "/10^8 TN."))
158158 else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
159159 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."))
160160 else if ((checkdepositvalue == 0))
161161 then throw("You Have Already Withdraw your CODE Amount.")
162162 else if ((gapofheight != 129600))
163163 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.")
164164 else if ((fetchUserStakeAmt >= 1199999999999))
165165 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>")]
166166 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>")]
167167 }
168168
169169
170170
171171 @Callable(i)
172172 func SetDaysRange (Minimum_Days_Range,Maximum_Days_Range) = {
173173 let calleraddress = toBase58String(i.caller.bytes)
174174 let adminrights = getStringValue(this, "DApp_Admin_Rights")
175175 let Minimum_days = 7
176176 let Maximum_days = 200
177177 if ((adminrights != calleraddress))
178178 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Days Range."))
179179 else if ((Minimum_days > Minimum_Days_Range))
180180 then throw("Minimum days range must be more than 6 and in between 7-200.")
181181 else if ((Maximum_Days_Range > Maximum_days))
182182 then throw("Maximum days range can't exceed the 200.")
183183 else if ((Minimum_Days_Range > Maximum_Days_Range))
184184 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)) + "]"))
185185 else [IntegerEntry("Minimum_Days_Range", Minimum_Days_Range), IntegerEntry("Maximum_Days_Range", Maximum_Days_Range)]
186186 }
187187
188188
189189
190190 @Callable(i)
191191 func SetClaimFee (ClaimFee) = {
192192 let calleraddress = toBase58String(i.caller.bytes)
193193 let adminrights = getStringValue(this, "DApp_Admin_Rights")
194194 let Minimum_Claim_fee = 100000000
195195 let Maximum_Claim_fee = 100000000000
196196 if ((adminrights != calleraddress))
197197 then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to change Claim Fee."))
198198 else if ((Minimum_Claim_fee > ClaimFee))
199199 then throw((("Minimum Claim fee is " + toString(Minimum_Claim_fee)) + " TN [int-format]."))
200200 else if ((ClaimFee > Maximum_Claim_fee))
201201 then throw((("Maximum Claim fee can't be more than " + toString(Maximum_Claim_fee)) + " TN. [int-format]"))
202202 else [IntegerEntry("Claim_Fee", ClaimFee)]
203203 }
204204
205205
206206 @Verifier(tx)
207207 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
208208

github/deemru/w8io/026f985 
46.64 ms