tx · 8a6w6jKpKCMhxmCV69tVF5xs4BMSZHwVs6EcTaargBGP 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01000000 Waves 2022.06.09 17:16 [2088952] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "8a6w6jKpKCMhxmCV69tVF5xs4BMSZHwVs6EcTaargBGP", "fee": 1000000, "feeAssetId": null, "timestamp": 1654784198041, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "3dRw4BA4qmzEsdGsoPavTvfQiBpmYofLdfRyTZgMvMRwaXSB1ufPEnP18D55mJRNUepky5V4HXTd4QbbhnEdNKxZ" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAA0AAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAACGRBcHBGZWVzAQAAABoBV5prAZfpnthmNq2ZMbws44Htl6ZEmG28iwAAAAAJQWRtaW5kQXBwAQAAABoBV9BDQuIchL6bmoa833jKal/OBiGoZGoQDgAAAAAJTWluQW1vdW50AAAAAAAAAAK8AAAAAA5Lcm9zc0NhclJld2FyZAAAAAAAAAAAAQAAAAAMVG93aW5nUmV3YXJkAAAAAAAAAAABAAAAAApSZWZlcnJlVGlwAAAAAAAAAAABAAAAAAxtaW5Kb2luV2Vla3MAAAAAAAAAAAgAAAAAClRpbWVUb3dpbmcAAAAAAAAAAAIAAAAABFdlZWsAAAAAAAAAAAoAAAAAA0RheQAAAAAAAAAABQAAAAMAAAABaQE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AADFVzZXJNYXR1cml0eQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAABRMYXN0VG93aW5nQmxvY2tWYWx1ZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAA9MYXN0VG93aW5nQmxvY2sDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMDAwkAAGYAAAACCQAAaAAAAAIFAAAACU1pbkFtb3VudAAAAAAABfXhAAkAAGkAAAACCQAAaAAAAAIFAAAABmFtb3VudAkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBQAAAARXZWVrBgkAAGYAAAACCQAAaAAAAAIFAAAADG1pbkpvaW5XZWVrcwUAAAAEV2VlawkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBgkAAGYAAAACCQAAaAAAAAIFAAAAClRpbWVUb3dpbmcFAAAAA0RheQUAAAAUTGFzdFRvd2luZ0Jsb2NrVmFsdWUJAAACAAAAAQIAAAARWW91IFNob3VsZCBDb21wbHkJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABBfTGFzdFRvd2luZ0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAADFRvd2luZ1Jld2FyZAAAAAAABfXhAAUAAAAGVG93aW5nBQAAAANuaWwAAAAAc6fomA==", "height": 2088952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hr1Sw3p32CJ1mZrtK4kbFf5Zpz6kmHiqWgqjFdqZCoUP Next: 7BADF1V97xoAH3XYte3NnPVbcpR7BabHwyHRKn4ModBC Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = 8 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 2 | |
25 | 25 | ||
26 | 26 | let l = 10 | |
27 | 27 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i' | |
5 | 5 | ||
6 | 6 | let b = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW' | |
7 | 7 | ||
8 | 8 | let c = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w' | |
9 | 9 | ||
10 | 10 | let d = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
11 | 11 | ||
12 | 12 | let e = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb' | |
13 | 13 | ||
14 | 14 | let f = 700 | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 1 | |
21 | 21 | ||
22 | 22 | let j = 8 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 2 | |
25 | 25 | ||
26 | 26 | let l = 10 | |
27 | 27 | ||
28 | 28 | let m = 5 | |
29 | 29 | ||
30 | 30 | @Callable(n) | |
31 | 31 | func DepositHASH () = { | |
32 | 32 | let o = (toBase58String(n.caller.bytes) + "_Deposit") | |
33 | 33 | let p = { | |
34 | 34 | let q = getInteger(this, o) | |
35 | 35 | if ($isInstanceOf(q, "Int")) | |
36 | 36 | then { | |
37 | 37 | let r = q | |
38 | 38 | r | |
39 | 39 | } | |
40 | 40 | else 0 | |
41 | 41 | } | |
42 | 42 | let s = if ((size(n.payments) == 1)) | |
43 | 43 | then n.payments[0] | |
44 | 44 | else throw("Attached payment is required") | |
45 | 45 | if (if (((f * 100000000) > s.amount)) | |
46 | 46 | then true | |
47 | 47 | else (s.assetId != a)) | |
48 | 48 | then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH") | |
49 | 49 | else { | |
50 | 50 | let t = (p + s.amount) | |
51 | 51 | [IntegerEntry((toBase58String(n.caller.bytes) + "_Deposit"), t), IntegerEntry((toBase58String(n.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(n.caller, (g * 100000000), b)] | |
52 | 52 | } | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | ||
57 | 57 | @Callable(n) | |
58 | 58 | func RewardReferrer (u) = if ((u == "")) | |
59 | 59 | then throw("Referrer Wallet Address cannot be empty !") | |
60 | 60 | else { | |
61 | 61 | let v = addressFromStringValue(u) | |
62 | 62 | let o = (toBase58String(n.caller.bytes) + "_Deposit") | |
63 | 63 | let w = (toBase58String(n.caller.bytes) + "_TippedStatus") | |
64 | 64 | let p = { | |
65 | 65 | let q = getInteger(this, o) | |
66 | 66 | if ($isInstanceOf(q, "Int")) | |
67 | 67 | then { | |
68 | 68 | let r = q | |
69 | 69 | r | |
70 | 70 | } | |
71 | 71 | else 0 | |
72 | 72 | } | |
73 | 73 | let x = { | |
74 | 74 | let q = getString(this, w) | |
75 | 75 | if ($isInstanceOf(q, "String")) | |
76 | 76 | then { | |
77 | 77 | let r = q | |
78 | 78 | r | |
79 | 79 | } | |
80 | 80 | else "NO" | |
81 | 81 | } | |
82 | 82 | if ((x == "YES")) | |
83 | 83 | then throw("You already tipped a User, you only can tip once a user") | |
84 | 84 | else if (((f * 100000000) > p)) | |
85 | 85 | then throw((("To tip your referrer you must have at least deposited: " + toString(f)) + " HASH")) | |
86 | 86 | else [StringEntry((toBase58String(n.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(v, (i * 100000000), b)] | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | ||
91 | 91 | @Callable(n) | |
92 | 92 | func RequestTowing () = { | |
93 | 93 | let o = (toBase58String(n.caller.bytes) + "_Deposit") | |
94 | 94 | let y = (toBase58String(n.caller.bytes) + "_DepositBlock") | |
95 | 95 | let z = (toBase58String(n.caller.bytes) + "_LastTowingBlock") | |
96 | 96 | let p = { | |
97 | 97 | let q = getInteger(this, o) | |
98 | 98 | if ($isInstanceOf(q, "Int")) | |
99 | 99 | then { | |
100 | 100 | let r = q | |
101 | 101 | r | |
102 | 102 | } | |
103 | 103 | else 0 | |
104 | 104 | } | |
105 | 105 | let A = { | |
106 | 106 | let q = getInteger(this, y) | |
107 | 107 | if ($isInstanceOf(q, "Int")) | |
108 | 108 | then { | |
109 | 109 | let r = q | |
110 | 110 | r | |
111 | 111 | } | |
112 | 112 | else 0 | |
113 | 113 | } | |
114 | 114 | let B = { | |
115 | 115 | let q = getInteger(this, z) | |
116 | 116 | if ($isInstanceOf(q, "Int")) | |
117 | 117 | then { | |
118 | 118 | let r = q | |
119 | 119 | r | |
120 | 120 | } | |
121 | 121 | else 0 | |
122 | 122 | } | |
123 | 123 | if (if (if (((f * 100000000) > ((p * (height - A)) / l))) | |
124 | 124 | then true | |
125 | 125 | else ((j * l) > (height - A))) | |
126 | 126 | then true | |
127 | 127 | else ((k * m) > B)) | |
128 | 128 | then throw("You Should Comply") | |
129 | 129 | else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)] | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 |
github/deemru/w8io/026f985 31.19 ms ◑