tx · BJyBTzHZhf3kyGsraatC4iRumCnKMUoktK8hQW2YUVY4 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo: -0.01400000 Waves 2021.10.14 06:49 [1745436] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves
{ "type": 13, "id": "BJyBTzHZhf3kyGsraatC4iRumCnKMUoktK8hQW2YUVY4", "fee": 1400000, "feeAssetId": null, "timestamp": 1634183509009, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "2VYC6y6T4mxVxpyKAKWREU3YVnrsn8Ghm9H5t6BfaPsEgAk5D9h7BqpFeXt2LJ8neDQdiWJqKj64te5efYsYgGZb" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAABwAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAAAAAAAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAZAAAAAIJAABrAAAAAwAAAAAAAJiWgAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAAAAGAAAAAAtTdGFraW5nRGFwcAEAAAAgo7WknlFYQG5NE/mpBZyxqA4fl+GkedKP+NopRLlOBBYAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAEAAAABaQEAAAAHRGVwb3NpdAAAAAEAAAAERGF5cwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1l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RyeQAAAAICAAAAB21lc3NhZ2UCAAAAJjxoMT5DT0RFIElzc3VlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefsDJj0=", "height": 1745436, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FesVbkHLXTxVxwcgHugUUJbytbW5C2YM7Gdir6EdgJfq Next: HAS1LVCM8YxPDZaZWrGsmgMuDAWQU2iKic7M5L3aGPC5 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = (height - b) | |
9 | 9 | ||
10 | - | let d = (fraction( | |
10 | + | let d = (fraction(10000000, 1, c) + 6) | |
11 | 11 | ||
12 | 12 | let e = 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 a = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' | |
5 | 5 | ||
6 | 6 | let b = 0 | |
7 | 7 | ||
8 | 8 | let c = (height - b) | |
9 | 9 | ||
10 | - | let d = (fraction( | |
10 | + | let d = (fraction(10000000, 1, c) + 6) | |
11 | 11 | ||
12 | 12 | let e = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV' | |
13 | 13 | ||
14 | 14 | let f = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
15 | 15 | ||
16 | 16 | let g = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
17 | 17 | ||
18 | 18 | @Callable(h) | |
19 | 19 | func Deposit (i) = { | |
20 | 20 | let j = if ((size(h.payments) == 1)) | |
21 | 21 | then h.payments[0] | |
22 | 22 | else throw("No Payments Attached Please Attach CODE Asset Only.") | |
23 | 23 | let k = toBase58String(h.caller.bytes) | |
24 | 24 | let l = (((d * j.amount) * i) / 365) | |
25 | 25 | let m = (c * 100000) | |
26 | 26 | let n = getIntegerValue(this, "Total_Issued_CODE:") | |
27 | 27 | let o = (n + l) | |
28 | 28 | let p = getIntegerValue(this, "Total_Burned_CODE:") | |
29 | 29 | let q = (p + j.amount) | |
30 | 30 | let r = getIntegerValue(this, "Total_Txns:") | |
31 | 31 | let s = (r + 1) | |
32 | 32 | let t = valueOrErrorMessage(getInteger(addressFromPublicKey(e), ("Deposit_height_Of_" + k)), "Your Address not Found on Staking DApp") | |
33 | 33 | let u = valueOrErrorMessage(getInteger(addressFromPublicKey(e), ("Total_Lock_Blocks_Of_" + k)), "Your Address not Found on Staking DApp") | |
34 | 34 | let v = (u - t) | |
35 | 35 | if ((b > height)) | |
36 | 36 | then throw((("DApp is Not Started Yet please Wait until " + toString((b - height))) + " blocks")) | |
37 | 37 | else if ((j.assetId != a)) | |
38 | 38 | then throw(("Incorrect asset attached, please attach " + toBase58String(a))) | |
39 | 39 | else if ((100000 > j.amount)) | |
40 | 40 | then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.") | |
41 | 41 | else if ((j.amount > m)) | |
42 | 42 | then throw((("You can attach maximum " + toString(m)) + "/10^8 CODE.")) | |
43 | 43 | else if ((v != 129600)) | |
44 | 44 | then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.") | |
45 | 45 | else [IntegerEntry("Inflation", d), IntegerEntry("Total_Issued_CODE:", o), IntegerEntry("Total_Burned_CODE:", q), IntegerEntry("Total_Txns:", s), IntegerEntry(("Claim_Amount_" + k), (l / 1000)), Burn(a, j.amount), ScriptTransfer(h.caller, (l / 1000), a), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")] | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Verifier(w) | |
50 | 50 | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) | |
51 | 51 |
github/deemru/w8io/026f985 26.40 ms ◑