tx · 2PALVXPqH9HEfiYPNMMPv9822GftRBrTL3J6q93dbH8Q 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01100000 Waves 2022.06.12 21:26 [2093525] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "2PALVXPqH9HEfiYPNMMPv9822GftRBrTL3J6q93dbH8Q", "fee": 1100000, "feeAssetId": null, "timestamp": 1655058362872, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "YxW2RFjNvFxg54HCbs1HYN2bTmy7yS5bTCAUrbQhcB43E4Ddgg4itkLuxWnFku4AWHkn6u7GgHEnbvyb3wgWVbk" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgASABIAEgMKAQgSABIAEgASAAAAABYAAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAAB1R5cmVBaXIBAAAAIEvuhUcjs8nwlptF+3MJzdMO4zPQYwfXIFaIUK2eroEgAAAAAARGdWVsAQAAACCAZq+XD1uFtjJ9pE4zl3eJu0Qrua3EVPCqkO+MMmym1QAAAAAJQ2FyVW5sb2NrAQAAACAkwYOo0om66Y7VCFFToUliIsLfSrbZas+g4ATAz8e5qAAAAAAIZEFwcEZlZXMBAAAAGgFXmmsBl+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV3YX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W5BbW91bnQAAAAAAAX14QAJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawkAAAIAAAABCQABLAAAAAICAAAAI1lvdSBzaG91bGQgaGF2IGRlcG9zaXRlZCBhdCBsZWFzdDogCQABpAAAAAEJAABpAAAAAgkAAGgAAAACBQAAAAlNaW5BbW91bnQJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawMJAABmAAAAAgkAAGgAAAACBQAAAA1UaW1lQ2FyVW5sb2NrBQAAAANEYXkJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFlvdSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZCBiZWZvcmU6IAkAAaQAAAABCQAAZQAAAAIFAAAADVRpbWVDYXJVbmxvY2sJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkCAAAABSBkYXlzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAATX0xhc3RDYXJVbmxvY2tCbG9jawUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAA9DYXJVbmxvY2tSZXdhcmQAAAAAAAX14QAFAAAACUNhclVubG9jawUAAAADbmlsAAAAAF8kGJc=", "height": 2093525, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZBEDF9sXRkD44GZjE2kBq4m3wSuuP5bhGMPAEsPfrfN Next: G1hgVjjMekfG9tE7Zdr8UFoE6mfvM3oVSaSnBpyRG46m Diff:
Old | New | Differences | |
---|---|---|---|
156 | 156 | if (((p * u) > (height - J))) | |
157 | 157 | then throw((((("You should at least be a member of " + toString(p)) + " Weeks") + " Your account maturity is: ") + toString(((height - J) / u)))) | |
158 | 158 | else if (((((i * 100000000) * (height - J)) / u) > y)) | |
159 | - | then throw(("You should have deposited at least: " + toString(((i * (height - J)) / u)))) | |
159 | + | then throw(("You should have deposited at least: " + toString((((i * (height - J)) / u) / 100000000)))) | |
160 | 160 | else if (((q * v) > ((height - K) / v))) | |
161 | 161 | then throw((("You cannot claim the reward before: " + toString((q - ((height - K) / v)))) + " days")) | |
162 | 162 | else [IntegerEntry((toBase58String(w.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(w.caller, (k * 100000000), c)] |
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'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo' | |
11 | 11 | ||
12 | 12 | let e = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr' | |
13 | 13 | ||
14 | 14 | let f = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR' | |
15 | 15 | ||
16 | 16 | let g = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
17 | 17 | ||
18 | 18 | let h = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb' | |
19 | 19 | ||
20 | 20 | let i = 700 | |
21 | 21 | ||
22 | 22 | let j = 1 | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 1 | |
29 | 29 | ||
30 | 30 | let n = 1 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 8 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 2 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 10 | |
45 | 45 | ||
46 | 46 | let v = 5 | |
47 | 47 | ||
48 | 48 | @Callable(w) | |
49 | 49 | func ResetData () = [IntegerEntry((toBase58String(w.caller.bytes) + "_Deposit"), 0), IntegerEntry((toBase58String(w.caller.bytes) + "_DepositBlock"), 0), IntegerEntry((toBase58String(w.caller.bytes) + "_LastTowingBlock"), height), IntegerEntry((toBase58String(w.caller.bytes) + "_LastTyreAirBlock"), height), IntegerEntry((toBase58String(w.caller.bytes) + "_LastTyreAirBlock"), height), IntegerEntry((toBase58String(w.caller.bytes) + "_LastFuelBlock"), height), IntegerEntry((toBase58String(w.caller.bytes) + "_LastCarUnlockBlock"), height)] | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(w) | |
54 | 54 | func ReceiveFakeHASHForTest () = [ScriptTransfer(w.caller, (1000000 * 100000000), a)] | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Callable(w) | |
59 | 59 | func ShowMeTimersOfdApp () = throw(((((((((((((((("Timers in the dApp: " + "Minimum Join Weeks: ") + toString(p)) + " min") + "Timer Towing: ") + toString(q)) + " min") + "TimerTyreAire: ") + toString(r)) + " min") + "Timer Fuel: ") + toString(s)) + " min") + "Timer CarUnlock: ") + toString(t)) + " min")) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(w) | |
64 | 64 | func DepositHASH () = { | |
65 | 65 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
66 | 66 | let y = { | |
67 | 67 | let z = getInteger(this, x) | |
68 | 68 | if ($isInstanceOf(z, "Int")) | |
69 | 69 | then { | |
70 | 70 | let A = z | |
71 | 71 | A | |
72 | 72 | } | |
73 | 73 | else 0 | |
74 | 74 | } | |
75 | 75 | let B = if ((size(w.payments) == 1)) | |
76 | 76 | then w.payments[0] | |
77 | 77 | else throw("Attached payment is required") | |
78 | 78 | if (if (((i * 100000000) > B.amount)) | |
79 | 79 | then true | |
80 | 80 | else (B.assetId != a)) | |
81 | 81 | then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH") | |
82 | 82 | else { | |
83 | 83 | let C = (y + B.amount) | |
84 | 84 | [IntegerEntry((toBase58String(w.caller.bytes) + "_Deposit"), C), IntegerEntry((toBase58String(w.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(w.caller, (j * 100000000), b)] | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(w) | |
91 | 91 | func RewardReferrer (D) = if ((D == "")) | |
92 | 92 | then throw("Referrer Wallet Address cannot be empty !") | |
93 | 93 | else { | |
94 | 94 | let E = addressFromStringValue(D) | |
95 | 95 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
96 | 96 | let F = (toBase58String(w.caller.bytes) + "_TippedStatus") | |
97 | 97 | let y = { | |
98 | 98 | let z = getInteger(this, x) | |
99 | 99 | if ($isInstanceOf(z, "Int")) | |
100 | 100 | then { | |
101 | 101 | let A = z | |
102 | 102 | A | |
103 | 103 | } | |
104 | 104 | else 0 | |
105 | 105 | } | |
106 | 106 | let G = { | |
107 | 107 | let z = getString(this, F) | |
108 | 108 | if ($isInstanceOf(z, "String")) | |
109 | 109 | then { | |
110 | 110 | let A = z | |
111 | 111 | A | |
112 | 112 | } | |
113 | 113 | else "NO" | |
114 | 114 | } | |
115 | 115 | if ((G == "YES")) | |
116 | 116 | then throw("You already tipped a User, you only can tip once a user") | |
117 | 117 | else if (((i * 100000000) > y)) | |
118 | 118 | then throw((("To tip your referrer you must have at least deposited: " + toString(i)) + " HASH")) | |
119 | 119 | else [StringEntry((toBase58String(w.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(E, (o * 100000000), b)] | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(w) | |
125 | 125 | func RequestTowing () = { | |
126 | 126 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
127 | 127 | let H = (toBase58String(w.caller.bytes) + "_DepositBlock") | |
128 | 128 | let I = (toBase58String(w.caller.bytes) + "_LastTowingBlock") | |
129 | 129 | let y = { | |
130 | 130 | let z = getInteger(this, x) | |
131 | 131 | if ($isInstanceOf(z, "Int")) | |
132 | 132 | then { | |
133 | 133 | let A = z | |
134 | 134 | A | |
135 | 135 | } | |
136 | 136 | else 0 | |
137 | 137 | } | |
138 | 138 | let J = { | |
139 | 139 | let z = getInteger(this, H) | |
140 | 140 | if ($isInstanceOf(z, "Int")) | |
141 | 141 | then { | |
142 | 142 | let A = z | |
143 | 143 | A | |
144 | 144 | } | |
145 | 145 | else 0 | |
146 | 146 | } | |
147 | 147 | let K = { | |
148 | 148 | let z = getInteger(this, I) | |
149 | 149 | if ($isInstanceOf(z, "Int")) | |
150 | 150 | then { | |
151 | 151 | let A = z | |
152 | 152 | A | |
153 | 153 | } | |
154 | 154 | else 0 | |
155 | 155 | } | |
156 | 156 | if (((p * u) > (height - J))) | |
157 | 157 | then throw((((("You should at least be a member of " + toString(p)) + " Weeks") + " Your account maturity is: ") + toString(((height - J) / u)))) | |
158 | 158 | else if (((((i * 100000000) * (height - J)) / u) > y)) | |
159 | - | then throw(("You should have deposited at least: " + toString(((i * (height - J)) / u)))) | |
159 | + | then throw(("You should have deposited at least: " + toString((((i * (height - J)) / u) / 100000000)))) | |
160 | 160 | else if (((q * v) > ((height - K) / v))) | |
161 | 161 | then throw((("You cannot claim the reward before: " + toString((q - ((height - K) / v)))) + " days")) | |
162 | 162 | else [IntegerEntry((toBase58String(w.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(w.caller, (k * 100000000), c)] | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(w) | |
168 | 168 | func RequestTyreAir () = { | |
169 | 169 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
170 | 170 | let H = (toBase58String(w.caller.bytes) + "_DepositBlock") | |
171 | 171 | let L = (toBase58String(w.caller.bytes) + "_LastTyreAirBlock") | |
172 | 172 | let y = { | |
173 | 173 | let z = getInteger(this, x) | |
174 | 174 | if ($isInstanceOf(z, "Int")) | |
175 | 175 | then { | |
176 | 176 | let A = z | |
177 | 177 | A | |
178 | 178 | } | |
179 | 179 | else 0 | |
180 | 180 | } | |
181 | 181 | let J = { | |
182 | 182 | let z = getInteger(this, H) | |
183 | 183 | if ($isInstanceOf(z, "Int")) | |
184 | 184 | then { | |
185 | 185 | let A = z | |
186 | 186 | A | |
187 | 187 | } | |
188 | 188 | else 0 | |
189 | 189 | } | |
190 | 190 | let M = { | |
191 | 191 | let z = getInteger(this, L) | |
192 | 192 | if ($isInstanceOf(z, "Int")) | |
193 | 193 | then { | |
194 | 194 | let A = z | |
195 | 195 | A | |
196 | 196 | } | |
197 | 197 | else 0 | |
198 | 198 | } | |
199 | 199 | if (((p * u) > (height - J))) | |
200 | 200 | then throw((((("You should at least be a member of " + toString(p)) + " Weeks") + " Your account maturity is: ") + toString(((height - J) / u)))) | |
201 | 201 | else if ((y >= (((i * 100000000) * (height - J)) / u))) | |
202 | 202 | then throw(("You should hav deposited at least: " + toString(((i * (height - J)) / u)))) | |
203 | 203 | else if (((r * v) > ((height - M) / v))) | |
204 | 204 | then throw((("You cannot claim the reward before: " + toString((r - ((height - M) / v)))) + " days")) | |
205 | 205 | else [IntegerEntry((toBase58String(w.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(w.caller, (l * 100000000), d)] | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | ||
210 | 210 | @Callable(w) | |
211 | 211 | func RequestFuel () = { | |
212 | 212 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
213 | 213 | let H = (toBase58String(w.caller.bytes) + "_DepositBlock") | |
214 | 214 | let N = (toBase58String(w.caller.bytes) + "_LastFuelBlock") | |
215 | 215 | let y = { | |
216 | 216 | let z = getInteger(this, x) | |
217 | 217 | if ($isInstanceOf(z, "Int")) | |
218 | 218 | then { | |
219 | 219 | let A = z | |
220 | 220 | A | |
221 | 221 | } | |
222 | 222 | else 0 | |
223 | 223 | } | |
224 | 224 | let J = { | |
225 | 225 | let z = getInteger(this, H) | |
226 | 226 | if ($isInstanceOf(z, "Int")) | |
227 | 227 | then { | |
228 | 228 | let A = z | |
229 | 229 | A | |
230 | 230 | } | |
231 | 231 | else 0 | |
232 | 232 | } | |
233 | 233 | let O = { | |
234 | 234 | let z = getInteger(this, N) | |
235 | 235 | if ($isInstanceOf(z, "Int")) | |
236 | 236 | then { | |
237 | 237 | let A = z | |
238 | 238 | A | |
239 | 239 | } | |
240 | 240 | else 0 | |
241 | 241 | } | |
242 | 242 | if (((p * u) > (height - J))) | |
243 | 243 | then throw((((("You should at least be a member of " + toString(p)) + " Weeks") + " Your account maturity is: ") + toString(((height - J) / u)))) | |
244 | 244 | else if ((y >= (((i * 100000000) * (height - J)) / u))) | |
245 | 245 | then throw(("You should hav deposited at least: " + toString(((i * (height - J)) / u)))) | |
246 | 246 | else if (((s * v) > ((height - O) / v))) | |
247 | 247 | then throw((("You cannot claim the reward before: " + toString((s - ((height - O) / v)))) + " days")) | |
248 | 248 | else [IntegerEntry((toBase58String(w.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(w.caller, (m * 100000000), e)] | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | ||
253 | 253 | @Callable(w) | |
254 | 254 | func RequestCarUnlock () = { | |
255 | 255 | let x = (toBase58String(w.caller.bytes) + "_Deposit") | |
256 | 256 | let H = (toBase58String(w.caller.bytes) + "_DepositBlock") | |
257 | 257 | let P = (toBase58String(w.caller.bytes) + "_LastCarUnlockBlock") | |
258 | 258 | let y = { | |
259 | 259 | let z = getInteger(this, x) | |
260 | 260 | if ($isInstanceOf(z, "Int")) | |
261 | 261 | then { | |
262 | 262 | let A = z | |
263 | 263 | A | |
264 | 264 | } | |
265 | 265 | else 0 | |
266 | 266 | } | |
267 | 267 | let J = { | |
268 | 268 | let z = getInteger(this, H) | |
269 | 269 | if ($isInstanceOf(z, "Int")) | |
270 | 270 | then { | |
271 | 271 | let A = z | |
272 | 272 | A | |
273 | 273 | } | |
274 | 274 | else 0 | |
275 | 275 | } | |
276 | 276 | let Q = { | |
277 | 277 | let z = getInteger(this, P) | |
278 | 278 | if ($isInstanceOf(z, "Int")) | |
279 | 279 | then { | |
280 | 280 | let A = z | |
281 | 281 | A | |
282 | 282 | } | |
283 | 283 | else 0 | |
284 | 284 | } | |
285 | 285 | if (((p * u) > (height - J))) | |
286 | 286 | then throw((((("You should at least be a member of " + toString(p)) + " Weeks") + " Your account maturity is: ") + toString(((height - J) / u)))) | |
287 | 287 | else if ((y >= (((i * 100000000) * (height - J)) / u))) | |
288 | 288 | then throw(("You should hav deposited at least: " + toString(((i * (height - J)) / u)))) | |
289 | 289 | else if (((t * v) > ((height - Q) / v))) | |
290 | 290 | then throw((("You cannot claim the reward before: " + toString((t - ((height - Q) / v)))) + " days")) | |
291 | 291 | else [IntegerEntry((toBase58String(w.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(w.caller, (n * 100000000), f)] | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 |
github/deemru/w8io/169f3d6 43.10 ms ◑