tx · AREsJKRX8VpTmJNjrYsHg9pmCuicuQiGnFttdgJ17Jez

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.13 16:37 [1744568] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "AREsJKRX8VpTmJNjrYsHg9pmCuicuQiGnFttdgJ17Jez", "fee": 1400000, "feeAssetId": null, "timestamp": 1634132238153, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "3wDBcVQYhPH8nz8CuXFfaXhMzSpY34sG8aBSb2sLJnZrQqcCKDBvcSHEQVCUZVymkz2YrhAM79BKD4aYPmXWpmwu" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAABwAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAAAAAAAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAbAAAAAYJAABkAAAAAgkAAGsAAAADAAAAAAAAmJaAAAAAAAAAAAABBQAAAAlibG9ja2RpZmYAAAAAAAAAAAYAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAIFAAAABkhBTEZVUAAAAAALU3Rha2luZ0RhcHABAAAAIKO1pJ5RWEBuTRP5qQWcsagOH5fhpHnSj/jaKUS5TgQWAAAAAApGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAABAAAAAWkB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AAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAJjxoMT5DT0RFIElzc3VlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebyU3oc=", "height": 1744568, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 39ZxqcjyfSRnG9xczvFrNYcKAGFzHRovFj2WRQjmMk5K Next: 3rSnBrCrux8QqWCS4EwHNvwUs4tDdtgFndEQ9vFZ79ik Diff:
OldNewDifferences
77
88 let blockdiff = (height - StartHeight)
99
10-let InflationNo = (fraction(10000000, 1, blockdiff) + 6)
10+let InflationNo = pow((fraction(10000000, 1, blockdiff) + 6), 2, 1, 0, 2, HALFUP)
1111
1212 let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'
1313
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
66 let StartHeight = 0
77
88 let blockdiff = (height - StartHeight)
99
10-let InflationNo = (fraction(10000000, 1, blockdiff) + 6)
10+let InflationNo = pow((fraction(10000000, 1, blockdiff) + 6), 2, 1, 0, 2, HALFUP)
1111
1212 let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'
1313
1414 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1515
1616 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1717
1818 @Callable(i)
1919 func Deposit (Days) = {
2020 let pmt = if ((size(i.payments) == 1))
2121 then i.payments[0]
2222 else throw("No Payments Attached Please Attach CODE Asset Only.")
2323 let currentKey = toBase58String(i.caller.bytes)
2424 let UserClaimAmount = (((InflationNo * pmt.amount) * Days) / 365)
2525 let allowdedpymt = (blockdiff * 100000)
2626 let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
2727 let TotalIssuedCODE = (PreviousIssuedCODE + UserClaimAmount)
2828 let PreviousBurnedCODE = getIntegerValue(this, "Total_Burned_CODE:")
2929 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
3030 let PreviousTxnsCODE = getIntegerValue(this, "Total_Txns:")
3131 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
3232 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
3333 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
3434 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
3535 if ((StartHeight > height))
3636 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
3737 else if ((pmt.assetId != CODEAssetID))
3838 then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3939 else if ((100000 > pmt.amount))
4040 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
4141 else if ((pmt.amount > allowdedpymt))
4242 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
4343 else if ((gapofheight != 129600))
4444 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
4545 else [IntegerEntry("Inflation", InflationNo), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), UserClaimAmount), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, UserClaimAmount, CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
4646 }
4747
4848
4949 @Verifier(tx)
5050 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5151

github/deemru/w8io/169f3d6 
40.50 ms