tx · 3FUvAP5dSmbnVpL9MLJdKQB9aaQVZHHbvvj7SWnvtH1F 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01000000 Waves 2022.06.08 22:36 [2087820] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "3FUvAP5dSmbnVpL9MLJdKQB9aaQVZHHbvvj7SWnvtH1F", "fee": 1000000, "feeAssetId": null, "timestamp": 1654716995497, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "2Puoj5FWJ4KYbotzQHd2UwTMU2524M5QRPcqzvUUi3Wgmfuv2KAFECqzk6dXZZitzd1igg9aK2TjfRbRHkLfrZuS" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAA0AAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAACGRBcHBGZWVzAQAAABoBV5prAZfpnthmNq2ZMbws44Htl6ZEmG28iwAAAAAJQWRtaW5kQXBwAQAAABoBV9BDQuIchL6bmoa833jKal/OBiGoZGoQDgAAAAAJTWluQW1vdW50AAAAAAAAAAK8AAAAAA5Lcm9zc0NhclJld2FyZAAAAAAAAAAAAQAAAAAMVG93aW5nUmV3YXJkAAAAAAAAAAABAAAAAApSZWZlcnJlVGlwAAAAAAAAAAABAAAAAAxtaW5Kb2luV2Vla3MAAAAAAAAAAAgAAAAAClRpbWVUb3dpbmcAAAAAAAAAAB4AAAAABFdlZWsJAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAABwAAAAAD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WUEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAMVXNlck1hdHVyaXR5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFExhc3RUb3dpbmdCbG9ja1ZhbHVlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAD0xhc3RUb3dpbmdCbG9jawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwMDCQAAZgAAAAIJAABoAAAAAgUAAAAJTWluQW1vdW50AAAAAAAF9eEACQAAaQAAAAIJAABoAAAAAgUAAAAGYW1vdW50CQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUFAAAABFdlZWsGCQAAZgAAAAIJAABoAAAAAgUAAAAMbWluSm9pbldlZWtzBQAAAARXZWVrCQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUGCQAAZgAAAAIJAABoAAAAAgUAAAAKVGltZVRvd2luZwUAAAADRGF5BQAAABRMYXN0VG93aW5nQmxvY2tWYWx1ZQkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABBfTGFzdFRvd2luZ0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAADFRvd2luZ1Jld2FyZAAAAAAABfXhAAUAAAAGVG93aW5nBQAAAANuaWwAAAAAp3fTmw==", "height": 2087820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GrrCbUqpU5ZSbAqpcZJcyNF78TGQx4HC8tR3aSves91K Next: G6uiKSNZ7NZA6KtZ9qk6mKZkY99ZqaDQPfzNzdLjzBCf Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | ||
24 | 24 | let k = 30 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = (1440 * 7) | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 1440 | |
29 | 29 | ||
30 | 30 | @Callable(n) | |
31 | 31 | func DepositHASH () = { | |
126 | 126 | then true | |
127 | 127 | else ((k * m) > B)) | |
128 | 128 | then throw("") | |
129 | - | else | |
129 | + | else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)] | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 |
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 | 24 | let k = 30 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = (1440 * 7) | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 1440 | |
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("") | |
129 | - | else | |
129 | + | else [IntegerEntry((toBase58String(n.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(n.caller, (h * 100000000), c)] | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 |
github/deemru/w8io/169f3d6 45.63 ms ◑