tx · 3uBftyGYERoxGYp1HSTBk1cJZPDGiGRLyudt4uU2UDkZ

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.11.12 16:37 [1787855] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "3uBftyGYERoxGYp1HSTBk1cJZPDGiGRLyudt4uU2UDkZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1636724223232, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "2v5kkMRML9uFQe3B8bSghWtr4f5KvCdVyc7oEbJsfFtjwgUWZb9B6zifrXYukAP2aW1WpgvHUmYzkYdWUJ2KKCjp" ], "script": "base64:AAIEAAAAAAAAAAkIAhIDCgEBEgAAAAANAAAAAAtDT0RFQXNzZXRJRAEAAAAgkmB2qfKrqGeDE5s+bUmRW9TL3ErNp4dEODxuXgzu+JEAAAAAC1N0YWtpbmdEYXBwAQAAACCjtaSeUVhAbk0T+akFnLGoDh+X4aR50o/42ilEuU4EFgAAAAASVHJlYXN1cnlGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAABmRldkZlZQAAAAAAAAAAAQAAAAALVHJlYXN1cnlGZWUAAAAAAAAAAAkAAAAACnVzZXJhbW91bnQJAABlAAAAAgkAAGUAAAACAAAAAAAAAAPoBQAAAAtUcmVhc3VyeUZlZQUAAAAGZGV2RmVlAAAAAAtTdGFydEhlaWdodAAAAAAAABqz8AAAAAAPbWluaW11bWxvY2tkYXlzAAAAAAAAAAAGAAAAAA9tYXhpbXVtbG9ja2RheXMAAAAAAAAAAAcAAAAAB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hbF9Mb2NrX0Jsb2Nrc19PZl8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAASRGVwb3NpdF9BbW91bnRfT2ZfBQAAAApjdXJyZW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAC1Jld2FyZHNfT2ZfBQAAAApjdXJyZW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAKDxoMT5DT0RFIFVuU3Rha2VkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5DCxt+w==", "height": 1787855, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: f9AjN4J8UHJBNXQr7k2DGGBCtP9CQgYw4qHxnvrBaVg Next: FhePPc7QdqgDABVC3Gmh7yYT3CCBMcFGrmULSgLajLYy Diff:
OldNewDifferences
9797 let MaxA4AAmt = 1200000000000
9898 let MaxFee = 24
9999 let divisiblefactor = 19
100- let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
100+ let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
101101 let FeeCharged = fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt)
102102 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
103103 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'ArPqXguhFLjJt5XwcNwhXMnCv2zSumrM19y5WgT34yRi'
55
66 let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'
77
88 let TreasuryFeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
99
1010 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1111
1212 let devFee = 1
1313
1414 let TreasuryFee = 9
1515
1616 let useramount = ((1000 - TreasuryFee) - devFee)
1717
1818 let StartHeight = 1750000
1919
2020 let minimumlockdays = 6
2121
2222 let maximumlockdays = 7
2323
2424 let oneday = 1440
2525
2626 let blockdiff = (height - StartHeight)
2727
2828 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
2929
3030 @Callable(i)
3131 func Deposit (days) = {
3232 let pmt = if ((size(i.payments) == 1))
3333 then i.payments[0]
3434 else throw((("No Payments Attached Please Attach " + toBase58String(CODEAssetID)) + " Asset Only."))
3535 let currentKey = toBase58String(i.caller.bytes)
3636 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
3737 let allowdedpymt = (blockdiff * 100000)
3838 let actualblocks = (oneday * days)
3939 let totallockblocks = (height + actualblocks)
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)
5454 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
5555 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
5656 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
5757 let currentCODEAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
5858 case a: Int =>
5959 a
6060 case _ =>
6161 0
6262 }
6363 let newCODEAmount = (currentCODEAmount + pmt.amount)
6464 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
6565 case a: Int =>
6666 a
6767 case _ =>
6868 0
6969 }
7070 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
7171 if ((StartHeight > height))
7272 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
7373 else if ((pmt.assetId != CODEAssetID))
7474 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
7575 else if ((minimumlockdays >= days))
7676 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
7777 else if ((days > maximumlockdays))
7878 then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
7979 else if ((100000 > pmt.amount))
8080 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
8181 else if ((pmt.amount > allowdedpymt))
8282 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
8383 else if ((pmt.amount > UserClaimAmount))
8484 then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString(UserClaimAmount)) + "/") + toString(pmt.amount)) + ")/10^8 CODE."))
8585 else if ((gapofheight != 129600))
8686 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
8787 else if ((UserNoOfDeposits == 1))
8888 then throw("You Already Have an Active Staking, Please Wait until Mature.")
8989 else [Burn(CODEAssetID, pmt.amount), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Inflation", InflationNo), IntegerEntry("Block_Passed", blockdiff), 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>")]
9090 }
9191
9292
9393
9494 @Callable(i)
9595 func Withdraw () = {
9696 let currentKey = toBase58String(i.caller.bytes)
9797 let MaxA4AAmt = 1200000000000
9898 let MaxFee = 24
9999 let divisiblefactor = 19
100- let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
100+ let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
101101 let FeeCharged = fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt)
102102 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
103103 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
104104 case a: Int =>
105105 a
106106 case _ =>
107107 0
108108 }
109109 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
110110 let fetchRewardData = match getIntegerValue(this, "Total_CODE_Claimed:") {
111111 case a: Int =>
112112 a
113113 case _ =>
114114 0
115115 }
116116 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
117117 let PreviousIssuedCODE = match getIntegerValue(this, "Total_Issued_CODE:") {
118118 case a: Int =>
119119 a
120120 case _ =>
121121 0
122122 }
123123 let TotalIssuedCODE = (PreviousIssuedCODE + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
124124 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
125125 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
126126 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
127127 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
128128 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."))
129129 else if ((checkdepositvalue == 0))
130130 then throw("You Have Already Withdraw your CODE Amount.")
131131 else if ((gapofheight != 129600))
132132 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.")
133133 else [IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Total_CODE_Claimed:", totalrewardclaimed), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Fee_Charged", FeeCharged), Reissue(CODEAssetID, getIntegerValue(this, ("Rewards_Of_" + currentKey)), true), ScriptTransfer(i.caller, ((getIntegerValue(this, ("Rewards_Of_" + currentKey)) * useramount) / 1000), CODEAssetID), ScriptTransfer(addressFromPublicKey(TreasuryFeeAddress), ((getIntegerValue(this, ("Rewards_Of_" + currentKey)) * TreasuryFee) / 1000), CODEAssetID), ScriptTransfer(addressFromPublicKey(devAddress), ((getIntegerValue(this, ("Rewards_Of_" + currentKey)) * devFee) / 1000), 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>")]
134134 }
135135
136136
137137 @Verifier(tx)
138138 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
139139

github/deemru/w8io/026f985 
35.47 ms