tx · FhePPc7QdqgDABVC3Gmh7yYT3CCBMcFGrmULSgLajLYy

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.11.12 16:42 [1787862] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "FhePPc7QdqgDABVC3Gmh7yYT3CCBMcFGrmULSgLajLYy", "fee": 1400000, "feeAssetId": null, "timestamp": 1636724598104, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "4S6F8gySHj4KiVp7svsewtzuAH98o47PeHtgSRh7gVh3T4pF4NGtfzKZgNdEdNpE7Zk7iSGh285SFuce6DkUKCPZ" ], "script": "base64:AAIEAAAAAAAAAAkIAhIDCgEBEgAAAAANAAAAAAtDT0RFQXNzZXRJRAEAAAAgkmB2qfKrqGeDE5s+bUmRW9TL3ErNp4dEODxuXgzu+JEAAAAAC1N0YWtpbmdEYXBwAQAAACCjtaSeUVhAbk0T+akFnLGoDh+X4aR50o/42ilEuU4EFgAAAAASVHJlYXN1cnlGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAABmRldkZlZQAAAAAAAAAAAQAAAAALVHJlYXN1cnlGZWUAAAAAAAAAAAkAAAAACnVzZXJhbW91bnQJAABlAAAAAgkAAGUAAAACAAAAAAAAAAPoBQAAAAtUcmVhc3VyeUZlZQUAAAAGZGV2RmVlAAAAAAtTdGFydEhlaWdodAAAAAAAABqz8AAAAAAPbWluaW11bWxvY2tkYXlzAAAAAAAAAAAGAAAAAA9tYXhpbXVtbG9ja2RheXMAAAAAAAAAAAcAAAAABm9uZWR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vY2tzX09mXwUAAAAKY3VycmVudEtleQAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABJEZXBvc2l0X0Ftb3VudF9PZl8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAALUmV3YXJkc19PZl8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQIAAAAoPGgxPkNPREUgVW5TdGFrZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXliFIBG", "height": 1787862, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3uBftyGYERoxGYp1HSTBk1cJZPDGiGRLyudt4uU2UDkZ Next: EyHxuMHFQeE3yJQKPMpvzQKudXckhD5cXzz3Md9qKMSH Diff:
OldNewDifferences
9898 let MaxFee = 24
9999 let divisiblefactor = 19
100100 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
101- let FeeCharged = fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt)
101+ let FeeCharged = (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)
102102 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
103103 let PreviousTxnsCODE = match getIntegerValue(this, "Total_Txns:") {
104104 case a: Int =>
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
100100 let fetchUserStakeAmt = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_Amount_Of_" + currentKey)), "Your Address not Found on Staking DApp")
101- let FeeCharged = fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt)
101+ let FeeCharged = (fraction(fetchUserStakeAmt, 1000000, MaxA4AAmt) * 19)
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 
28.56 ms