tx · 53r1ALUHXtFvnBF78cupfCaPr6ozadj5ZsdwKzeDc7pc 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo: -0.01400000 Waves 2021.10.14 06:57 [1745442] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves
{ "type": 13, "id": "53r1ALUHXtFvnBF78cupfCaPr6ozadj5ZsdwKzeDc7pc", "fee": 1400000, "feeAssetId": null, "timestamp": 1634183849909, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "mbiXwjy5FFyWNF76j3YZ2uHFT9PPbkh7a2ZzrT185TwYJy55QP5zxezbrCRNKNURUokUa8K3eVHMEh7c7m7gMk2" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAABwAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAAAAAAAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAZAAAAAIJAABrAAAAAwAAAAACVAvkAAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAABdwAAAAAAtTdGFraW5nRGFwcAEAAAAgo7WknlFYQG5NE/mpBZyxqA4fl+GkedKP+NopRLlOBBYAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAEAAAABaQEAAAAHRGVwb3NpdAAAAAEAAAAERGF5cwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbn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eQAAAAICAAAAB21lc3NhZ2UCAAAAJjxoMT5DT0RFIElzc3VlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefSgL7c=", "height": 1745442, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HAS1LVCM8YxPDZaZWrGsmgMuDAWQU2iKic7M5L3aGPC5 Next: AwXbCCo17N9XbqW3BR3m6UPXQPeAAyXHZDhbjGg4PGhj Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let blockdiff = (height - StartHeight) | |
9 | 9 | ||
10 | - | let InflationNo = (fraction( | |
10 | + | let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000) | |
11 | 11 | ||
12 | 12 | let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV' | |
13 | 13 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' | |
5 | 5 | ||
6 | 6 | let StartHeight = 0 | |
7 | 7 | ||
8 | 8 | let blockdiff = (height - StartHeight) | |
9 | 9 | ||
10 | - | let InflationNo = (fraction( | |
10 | + | let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000) | |
11 | 11 | ||
12 | 12 | let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV' | |
13 | 13 | ||
14 | 14 | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
15 | 15 | ||
16 | 16 | let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
17 | 17 | ||
18 | 18 | @Callable(i) | |
19 | 19 | func Deposit (Days) = { | |
20 | 20 | let pmt = if ((size(i.payments) == 1)) | |
21 | 21 | then i.payments[0] | |
22 | 22 | else throw("No Payments Attached Please Attach CODE Asset Only.") | |
23 | 23 | let currentKey = toBase58String(i.caller.bytes) | |
24 | 24 | let UserClaimAmount = (((InflationNo * pmt.amount) * Days) / 365) | |
25 | 25 | let allowdedpymt = (blockdiff * 100000) | |
26 | 26 | let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:") | |
27 | 27 | let TotalIssuedCODE = (PreviousIssuedCODE + UserClaimAmount) | |
28 | 28 | let PreviousBurnedCODE = getIntegerValue(this, "Total_Burned_CODE:") | |
29 | 29 | let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount) | |
30 | 30 | let PreviousTxnsCODE = getIntegerValue(this, "Total_Txns:") | |
31 | 31 | let TotalTxnsCODE = (PreviousTxnsCODE + 1) | |
32 | 32 | let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
33 | 33 | let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp") | |
34 | 34 | let gapofheight = (fetchusermatureheight - fetchuserstakeheight) | |
35 | 35 | if ((StartHeight > height)) | |
36 | 36 | then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks")) | |
37 | 37 | else if ((pmt.assetId != CODEAssetID)) | |
38 | 38 | then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID))) | |
39 | 39 | else if ((100000 > pmt.amount)) | |
40 | 40 | then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.") | |
41 | 41 | else if ((pmt.amount > allowdedpymt)) | |
42 | 42 | then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE.")) | |
43 | 43 | else if ((gapofheight != 129600)) | |
44 | 44 | then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.") | |
45 | 45 | else [IntegerEntry("Inflation", InflationNo), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry(("Claim_Amount_" + currentKey), (UserClaimAmount / 1000)), Burn(CODEAssetID, pmt.amount), ScriptTransfer(i.caller, (UserClaimAmount / 1000), CODEAssetID), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")] | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Verifier(tx) | |
50 | 50 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
51 | 51 |
github/deemru/w8io/026f985 27.53 ms ◑