tx · DTuE8qFTa4S12zaMdkw3uvG61z74N2FA4Sa398P5EU3b 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK: -0.01400000 Waves 2022.08.15 01:10 [2184724] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves
{ "type": 13, "id": "DTuE8qFTa4S12zaMdkw3uvG61z74N2FA4Sa398P5EU3b", "fee": 1400000, "feeAssetId": null, "timestamp": 1660515040690, "version": 2, "chainId": 84, "sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK", "senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y", "proofs": [ "2rNm7SyLp84TXwwZzCM3f2koir49wDGJmgVAC4yTQDEYgzRqEH4bjdT1VaVDdF36ossJHvErjAeL4tcuAyigSvAE" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAFAAAAAApCVENBc3NldElEAQAAACD0NPJEoKaVcLA62QAal819hhYdQl83FUDxF7HRh6LUlwAAAAALU0FUU0Fzc2V0SUQBAAAAIIQVHLyAa6peOQxN4R+aXTT73bjvUy7OZLsC9igQULD7AAAAAAhUcmVhc3VyeQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAABHR4bnMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAAJVG90YWx0eG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdGFsdHhucwkAAGQAAAACBQAAAAR0eG5zAAAAAAAAAAABAAAAAgAAAAFpAQAAAAlJc3N1ZVNBVFMAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAA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Pbmx5IAkAAlgAAAABBQAAAAtTQVRTQXNzZXRJRAIAAAAIIFtTQVRTXS4DCQAAZgAAAAIAAAAAAAAAE4gIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAALUF0dGFjaCBBbW91bnQgbXVzdCBiZSBncmVhdGVyIHRoYW4gNTAwMCBTQVRTLgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAC1NBVFNBc3NldElECAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJVG90YWx0eG5zBQAAAAl0b3RhbHR4bnMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAElRvdGFsX0lzc3VlZF9TQVRTOgUAAAAPVG90YWxJc3N1ZWRTQVRTCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAKjxoMT5TQVRTIExpcXVpZGF0ZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEmNhbGN1bGF0ZWJ1cm52YWx1ZQUAAAAKQlRDQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5PT23YQ==", "height": 2184724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9jr8QPwJ3orWdvsudhczG1Q1oUBFPJrcaQg5ZyerP6jq Next: ygk7jEhcbGU8N97MWcf3TaxAS4QqWgQhoFqi4UgGr2g Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | let j = toBase58String(h.callerPublicKey) | |
44 | 44 | let i = value(h.payments[0]) | |
45 | 45 | let l = getIntegerValue(this, "Total_Issued_SATS:") | |
46 | - | let o = getIntegerValue(this, "Total_Burned_SATS:") | |
47 | - | let p = getIntegerValue(this, "SATSCurrentCap") | |
48 | 46 | let m = (l - i.amount) | |
49 | - | let q = (o + i.amount) | |
50 | - | let r = (p - m) | |
51 | - | let s = getIntegerValue(this, "Total_SATS_Reserve_In_BTC:") | |
52 | - | let t = getIntegerValue(this, "SATS_Backup_Value_In_BTC:") | |
53 | - | let u = fraction(t, i.amount, 100000) | |
54 | - | let v = (s - u) | |
55 | - | let w = fraction(100000000, v, m) | |
47 | + | let o = fraction(i.amount, 1, 1000000) | |
56 | 48 | if ((i.assetId != b)) | |
57 | 49 | then throw((("Kindly Deposit Only " + toBase58String(b)) + " [SATS].")) | |
58 | 50 | else if ((5000 > i.amount)) | |
59 | 51 | then throw("Attach Amount must be greater than 5000 SATS.") | |
60 | - | else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), | |
52 | + | else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, o, a)] | |
61 | 53 | } | |
62 | 54 | ||
63 | 55 | ||
64 | - | @Verifier( | |
65 | - | func | |
66 | - | let e = | |
67 | - | sigVerify( | |
56 | + | @Verifier(p) | |
57 | + | func q () = { | |
58 | + | let e = p | |
59 | + | sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
68 | 60 | } | |
69 | 61 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'HSHJecCLGF7DEPA23dJe6WwroaLeDnik5eptjxEJYvwY' | |
5 | 5 | ||
6 | 6 | let b = base58'9tbVJFXNxWGtZefTnuH9yojcYEPHwXGxhDvY4UK4qf2z' | |
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR') | |
9 | 9 | ||
10 | 10 | let d = { | |
11 | 11 | let e = getInteger(this, "Totaltxns") | |
12 | 12 | if ($isInstanceOf(e, "Int")) | |
13 | 13 | then { | |
14 | 14 | let f = e | |
15 | 15 | f | |
16 | 16 | } | |
17 | 17 | else 0 | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | let g = (d + 1) | |
21 | 21 | ||
22 | 22 | @Callable(h) | |
23 | 23 | func IssueSATS () = { | |
24 | 24 | let i = if ((size(h.payments) == 1)) | |
25 | 25 | then h.payments[0] | |
26 | 26 | else throw((("No Payments attached please attach [BTC] - " + toBase58String(a)) + " Asset Only.")) | |
27 | 27 | let j = toBase58String(h.caller.bytes) | |
28 | 28 | let k = fraction(1000000, i.amount, 1) | |
29 | 29 | let l = getIntegerValue(this, "Total_Issued_SATS:") | |
30 | 30 | let m = (l + k) | |
31 | 31 | let n = 1000000 | |
32 | 32 | if ((i.assetId != a)) | |
33 | 33 | then throw((("Incorrect asset attached, please attach [BTC] - " + toBase58String(a)) + " only.")) | |
34 | 34 | else if ((5000 > i.amount)) | |
35 | 35 | then throw("Please Attach minimum 5000 Satoshi's To Issue SATS Asset.") | |
36 | 36 | else [IntegerEntry("Total_Issued_SATS:", m), IntegerEntry("Totaltxns", g), StringEntry("message", "<h1>SATS Issued Successfully!</h1><br>"), Reissue(b, k, true), ScriptTransfer(h.caller, (k - n), b), ScriptTransfer(c, n, b)] | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(h) | |
42 | 42 | func Liquidate () = { | |
43 | 43 | let j = toBase58String(h.callerPublicKey) | |
44 | 44 | let i = value(h.payments[0]) | |
45 | 45 | let l = getIntegerValue(this, "Total_Issued_SATS:") | |
46 | - | let o = getIntegerValue(this, "Total_Burned_SATS:") | |
47 | - | let p = getIntegerValue(this, "SATSCurrentCap") | |
48 | 46 | let m = (l - i.amount) | |
49 | - | let q = (o + i.amount) | |
50 | - | let r = (p - m) | |
51 | - | let s = getIntegerValue(this, "Total_SATS_Reserve_In_BTC:") | |
52 | - | let t = getIntegerValue(this, "SATS_Backup_Value_In_BTC:") | |
53 | - | let u = fraction(t, i.amount, 100000) | |
54 | - | let v = (s - u) | |
55 | - | let w = fraction(100000000, v, m) | |
47 | + | let o = fraction(i.amount, 1, 1000000) | |
56 | 48 | if ((i.assetId != b)) | |
57 | 49 | then throw((("Kindly Deposit Only " + toBase58String(b)) + " [SATS].")) | |
58 | 50 | else if ((5000 > i.amount)) | |
59 | 51 | then throw("Attach Amount must be greater than 5000 SATS.") | |
60 | - | else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), | |
52 | + | else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, o, a)] | |
61 | 53 | } | |
62 | 54 | ||
63 | 55 | ||
64 | - | @Verifier( | |
65 | - | func | |
66 | - | let e = | |
67 | - | sigVerify( | |
56 | + | @Verifier(p) | |
57 | + | func q () = { | |
58 | + | let e = p | |
59 | + | sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
68 | 60 | } | |
69 | 61 |
github/deemru/w8io/169f3d6 29.02 ms ◑