tx · FKHj8gVigZoQmr7sRitvVQJLG6fssT62j5rKHRysE52y

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.11 07:31 [1741133] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "FKHj8gVigZoQmr7sRitvVQJLG6fssT62j5rKHRysE52y", "fee": 1400000, "feeAssetId": null, "timestamp": 1633926681480, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "ePp1yAaAR3P1mzeZBA49TeP83AwF6MVsbL9bXMUq5rTg2oe3f4huHSecpLbJ7vwvpLa7GCh5YMYedp9asMYtUng" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAAAAAAAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAADlN0YXJ0SW5mbGF0aW9uCQAAZAAAAAIJAABrAAAAAwAAAAAAAJiWgAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAAAAGAAAAAApGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAABAAAAAWkBAAAABUNsYWltAAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAM05vIFBheW1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JFbnRyeQAAAAICAAAAC1RvdGFsX1R4bnM6BQAAAA1Ub3RhbFR4bnNDT0RFCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADUNsYWltX0Ftb3VudF8FAAAACmN1cnJlbnRLZXkFAAAADU5ld0NPREVUb1VzZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE1VzZXJfU3Rha2VkX0Ftb3VudDoFAAAAFmZldGNodXNlcnN0YWtlZGJsYW5hY2UJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAtDT0RFQXNzZXRJRAgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1OZXdDT0RFVG9Vc2VyBQAAAAtDT0RFQXNzZXRJRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAACY8aDE+Q09ERSBJc3N1ZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl2RGVZ", "height": 1741133, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GpuawgmdpFZYuii2ADF274KZRVhdZzPNqxeqxEu5uJY Next: 2a35VEKunj7U2A4mwtamTx2tADiWzxf3WxarpgNHbs9q Diff:
OldNewDifferences
2727 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
2828 let PreviousTxnsCODE = getIntegerValue(this, "Total_Txns:")
2929 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
30+ let fetchuserstakedblanace = valueOrErrorMessage(getIntegerValue(addressFromPublicKey(base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'), ("Deposit_Amount_Of_" + currentKey)), "Address not Found")
3031 if ((StartHeight > height))
3132 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
3233 else if ((pmt.assetId != CODEAssetID))
3536 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
3637 else if ((pmt.amount > allowdedpymt))
3738 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
38- else [IntegerEntry("Inflation", StartInflation), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), NewCODEToUser), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, NewCODEToUser, CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
39+ else [IntegerEntry("Inflation", StartInflation), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), NewCODEToUser), IntegerEntry("User_Staked_Amount:", fetchuserstakedblanace), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, NewCODEToUser, CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
3940 }
4041
4142
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
1010 let StartInflation = (fraction(10000000, 1, blockdiff) + 6)
1111
1212 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1313
1414 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1515
1616 @Callable(i)
1717 func Claim () = {
1818 let pmt = if ((size(i.payments) == 1))
1919 then i.payments[0]
2020 else throw("No Payments Attached Please Attach CODE Asset Only.")
2121 let currentKey = toBase58String(i.caller.bytes)
2222 let allowdedpymt = (blockdiff * 100000)
2323 let NewCODEToUser = (StartInflation * pmt.amount)
2424 let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
2525 let TotalIssuedCODE = (PreviousIssuedCODE + NewCODEToUser)
2626 let PreviousBurnedCODE = getIntegerValue(this, "Total_Burned_CODE:")
2727 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
2828 let PreviousTxnsCODE = getIntegerValue(this, "Total_Txns:")
2929 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
30+ let fetchuserstakedblanace = valueOrErrorMessage(getIntegerValue(addressFromPublicKey(base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'), ("Deposit_Amount_Of_" + currentKey)), "Address not Found")
3031 if ((StartHeight > height))
3132 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
3233 else if ((pmt.assetId != CODEAssetID))
3334 then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3435 else if ((100000 > pmt.amount))
3536 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
3637 else if ((pmt.amount > allowdedpymt))
3738 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
38- else [IntegerEntry("Inflation", StartInflation), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), NewCODEToUser), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, NewCODEToUser, CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
39+ else [IntegerEntry("Inflation", StartInflation), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), NewCODEToUser), IntegerEntry("User_Staked_Amount:", fetchuserstakedblanace), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, NewCODEToUser, CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
3940 }
4041
4142
4243 @Verifier(tx)
4344 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4445

github/deemru/w8io/169f3d6 
24.47 ms