tx · 3TNz14cHwAaVz1xgooKwXDidpVaddAPQDfiw281hfULt

3N9LaSWGBniSYGm8mnTqwgfYNFxck1HjmiZ:  -0.01900000 Waves

2023.05.26 17:22 [2595058] smart account 3N9LaSWGBniSYGm8mnTqwgfYNFxck1HjmiZ > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
50.01 ms