tx · EBDzAgWRr5pAfdHPpAxy25C2BXNm3oWH1nYaMmDogrEp 3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq: -0.01400000 Waves 2021.04.01 19:13 [1463603] smart account 3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq > SELF 0.00000000 Waves
{ "type": 13, "id": "EBDzAgWRr5pAfdHPpAxy25C2BXNm3oWH1nYaMmDogrEp", "fee": 1400000, "feeAssetId": null, "timestamp": 1617293604792, "version": 2, "chainId": 84, "sender": "3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq", "senderPublicKey": "551T51u5CXgqTybnycyVjFjM9tKkqVEenm7ZrxxC7gLe", "proofs": [ "5z41ap7f2HqnFgd8FzfNoc6gbg6J463ij9JA1yDTBUianMERtNP1o8dXAXSP8XXPZwppjBHv1JxCv1avMmu3JaaY" ], "script": "base64:AAIDAAAAAAAAACwIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgSAwoBCBIAEgMKAQESAwoBAQAAABgAAAAABnVwVm90ZQIAAAAGdXB2b3RlAAAAAA1hZG1pbkFkZHJlc3MxAQAAABoBVGx6nhB9WGGjnofF5YsTbL8z35oL0vs2fAAAAAANYWRtaW5BZGRyZXNzMgEAAAAaAVTlj1A9878YQ058BBZUI9QC+LwgFva37DoAAAAADWFkbWluQWRkcmVzczMBAAAAGgFUPo0bC5weIFiGP3KzAhxqwrizqd9EMgoVAAAAAAVkeXpJZAEAAAAgFZsfdOZJuZHuLptIBwOCMHYpnDoPtCAZD6J+T/NJGW4BAAAAD2dldFN0YWtlUG9vbEtleQAAAAACAAAACnN0YWtlX3Bvb2wBAAAADGdldFN0YWtlUG9vbAAAAAAEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkBAAAAD2dldFN0YWtlUG9vbEtleQAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAQZ2V0V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ZhcgUAAAAGcmV3YXJkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAC2xhc3RfY2xhaW1fBQAAAAZzdGFrZXIFAAAADWN1cnJlbnRIZWlnaHQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAAxnZXRTdGFrZXJLZXkAAAABBQAAAAZzdGFrZXIFAAAADm5ld1N0YWtlQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAPZ2V0U3Rha2VQb29sS2V5AAAAAAUAAAAMbmV3U3Rha2VQb29sBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZyZXdhcmQFAAAABWR5eklkBQAAAANuaWwAAAAAjQgaAA==", "height": 1463603, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AobTV5DZY6VKzNHoWN9y9EMDczdy4WgD8b3411jtNqVJ Next: DstErzo7hWsPT2amPyfWnfRe5jy2SnNpHbc3Yd8oxn8F Diff:
Old | New | Differences | |
---|---|---|---|
307 | 307 | else if ((ag > aa)) | |
308 | 308 | then throw("No rewards at this time") | |
309 | 309 | else if (((ai + 1440) > ah)) | |
310 | - | then throw("You can only claim once a day | |
310 | + | then throw("You can only claim once a day") | |
311 | 311 | else { | |
312 | 312 | let ab = (aa - ag) | |
313 | 313 | let al = W |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "upvote" | |
5 | 5 | ||
6 | 6 | let b = base58'3MyofeFJ29LLoVcHYtYgkLP7EUuYYGKBB4P' | |
7 | 7 | ||
8 | 8 | let c = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b' | |
9 | 9 | ||
10 | 10 | let d = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ' | |
11 | 11 | ||
12 | 12 | let e = base58'2TLkgUERqF1y21ShjiFVVTVYtP1BL8wvc6BGLZvt4fND' | |
13 | 13 | ||
14 | 14 | func f () = "stake_pool" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g () = { | |
18 | 18 | let h = getInteger(this, f()) | |
19 | 19 | if ($isInstanceOf(h, "Int")) | |
20 | 20 | then { | |
21 | 21 | let i = h | |
22 | 22 | i | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func j (k,l) = if ((l == "upvote")) | |
29 | 29 | then (((k + "_") + l) + "_amount") | |
30 | 30 | else throw("Invalid vote type") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m (n) = (n + "_stake") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (n) = { | |
37 | 37 | let h = getInteger(this, m(n)) | |
38 | 38 | if ($isInstanceOf(h, "Int")) | |
39 | 39 | then { | |
40 | 40 | let i = h | |
41 | 41 | i | |
42 | 42 | } | |
43 | 43 | else 0 | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func p (k) = (k + "_entrepreneurProfile") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (k) = (k + "_status") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func r (k,l) = if ((l == "upvote")) | |
54 | 54 | then (k + "_upvote") | |
55 | 55 | else throw("Invalid vote type") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func s (k) = { | |
59 | 59 | let h = getString(this, p(k)) | |
60 | 60 | if ($isInstanceOf(h, "String")) | |
61 | 61 | then { | |
62 | 62 | let i = h | |
63 | 63 | true | |
64 | 64 | } | |
65 | 65 | else false | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func t (u) = { | |
70 | 70 | let h = getString(this, q(u)) | |
71 | 71 | if ($isInstanceOf(h, "String")) | |
72 | 72 | then { | |
73 | 73 | let i = h | |
74 | 74 | i | |
75 | 75 | } | |
76 | 76 | else false | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func v (k,u) = (((k + "_") + u) + "_amount") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func w (u,x) = { | |
84 | 84 | let h = getInteger(this, j(u, x)) | |
85 | 85 | if ($isInstanceOf(h, "Int")) | |
86 | 86 | then { | |
87 | 87 | let i = h | |
88 | 88 | i | |
89 | 89 | } | |
90 | 90 | else 0 | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func y (z) = { | |
95 | 95 | let h = getInteger(this, ("last_claim_" + z)) | |
96 | 96 | if ($isInstanceOf(h, "Int")) | |
97 | 97 | then { | |
98 | 98 | let i = h | |
99 | 99 | i | |
100 | 100 | } | |
101 | 101 | else 0 | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func A (u,x) = { | |
106 | 106 | let h = getInteger(this, r(u, x)) | |
107 | 107 | if ($isInstanceOf(h, "Int")) | |
108 | 108 | then { | |
109 | 109 | let i = h | |
110 | 110 | i | |
111 | 111 | } | |
112 | 112 | else throw("Not a valid vote ID") | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func B (C,u) = ((((C + "_") + u) + "_") + "vote") | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func D (C,u) = { | |
120 | 120 | let h = getString(this, B(C, u)) | |
121 | 121 | if ($isInstanceOf(h, "String")) | |
122 | 122 | then { | |
123 | 123 | let i = h | |
124 | 124 | i | |
125 | 125 | } | |
126 | 126 | else "" | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func E (C,u) = { | |
131 | 131 | let F = D(C, u) | |
132 | 132 | if ((F == "")) | |
133 | 133 | then true | |
134 | 134 | else false | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func G () = { | |
139 | 139 | let h = getInteger(this, "claimed_total") | |
140 | 140 | if ($isInstanceOf(h, "Int")) | |
141 | 141 | then { | |
142 | 142 | let i = h | |
143 | 143 | i | |
144 | 144 | } | |
145 | 145 | else 0 | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func H (C) = { | |
150 | 150 | let h = getInteger(this, ("claimed_total_" + C)) | |
151 | 151 | if ($isInstanceOf(h, "Int")) | |
152 | 152 | then { | |
153 | 153 | let i = h | |
154 | 154 | i | |
155 | 155 | } | |
156 | 156 | else 0 | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(I) | |
161 | 161 | func addEntrepreneurProfile (J,K,L,M,N) = if (if (if ((I.caller.bytes == b)) | |
162 | 162 | then true | |
163 | 163 | else (I.caller.bytes == c)) | |
164 | 164 | then true | |
165 | 165 | else (I.caller.bytes == d)) | |
166 | 166 | then { | |
167 | 167 | let O = toBase58String(I.transactionId) | |
168 | 168 | WriteSet([DataEntry(p(O), ((((((((J + "_") + K) + "_") + L) + "_") + M) + "_") + N)), DataEntry(r(O, "upvote"), 0), DataEntry(j(O, "upvote"), 0), DataEntry(q(O), "open")]) | |
169 | 169 | } | |
170 | 170 | else throw("Only Dyzrupt Admin can call this dApp function") | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(I) | |
175 | 175 | func vote (u,x) = { | |
176 | 176 | let P = extract(I.payment) | |
177 | 177 | let F = toBase58String(I.caller.bytes) | |
178 | 178 | if ((P.amount == 0)) | |
179 | 179 | then throw("You cannot vote without paying voting fee") | |
180 | 180 | else if ((P.assetId != e)) | |
181 | 181 | then throw("You can only vote with DYZRUPT token") | |
182 | 182 | else if (E(toBase58String(I.caller.bytes), u)) | |
183 | 183 | then if (s(u)) | |
184 | 184 | then if ((t(u) == "open")) | |
185 | 185 | then if ((x == a)) | |
186 | 186 | then { | |
187 | 187 | let Q = A(u, x) | |
188 | 188 | let R = w(u, x) | |
189 | 189 | let S = (Q + 1) | |
190 | 190 | let T = (R + P.amount) | |
191 | 191 | ScriptResult(WriteSet([DataEntry(r(u, x), S), DataEntry(B(F, u), u), DataEntry(v(F, u), P.amount), DataEntry(j(u, x), T)]), TransferSet([ScriptTransfer(this, P.amount, e)])) | |
192 | 192 | } | |
193 | 193 | else throw("Not a valid vote value") | |
194 | 194 | else throw("This profile is not open for voting") | |
195 | 195 | else throw("Invalid Profile") | |
196 | 196 | else throw("You can't vote twice") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(I) | |
202 | 202 | func openVote (u) = if (if (if ((I.caller.bytes == b)) | |
203 | 203 | then true | |
204 | 204 | else (I.caller.bytes == c)) | |
205 | 205 | then true | |
206 | 206 | else (I.caller.bytes == d)) | |
207 | 207 | then if (s(u)) | |
208 | 208 | then WriteSet([DataEntry(q(u), "open")]) | |
209 | 209 | else throw("Invalid ID") | |
210 | 210 | else throw("Only Dyzrupt Admin can call this dApp function") | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(I) | |
215 | 215 | func closeVote (u) = if (if (if ((I.caller.bytes == b)) | |
216 | 216 | then true | |
217 | 217 | else (I.caller.bytes == c)) | |
218 | 218 | then true | |
219 | 219 | else (I.caller.bytes == d)) | |
220 | 220 | then if (s(u)) | |
221 | 221 | then WriteSet([DataEntry(q(u), "closed")]) | |
222 | 222 | else throw("Invalid ID") | |
223 | 223 | else throw("Only Dyzrupt Admin can call this dApp function") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(I) | |
228 | 228 | func withdraw (u) = { | |
229 | 229 | let F = toBase58String(I.caller.bytes) | |
230 | 230 | if ((D(F, u) != "")) | |
231 | 231 | then if ((t(u) == "closed")) | |
232 | 232 | then { | |
233 | 233 | let U = v(F, u) | |
234 | 234 | let V = { | |
235 | 235 | let h = getInteger(this, U) | |
236 | 236 | if ($isInstanceOf(h, "Int")) | |
237 | 237 | then { | |
238 | 238 | let i = h | |
239 | 239 | i | |
240 | 240 | } | |
241 | 241 | else throw("You didn't vote for this entrepreneur") | |
242 | 242 | } | |
243 | 243 | if ((V == 0)) | |
244 | 244 | then throw("Seems you have previously withdrawn.") | |
245 | 245 | else ScriptResult(WriteSet([DataEntry(U, 0)]), TransferSet([ScriptTransfer(I.caller, V, e)])) | |
246 | 246 | } | |
247 | 247 | else throw("Can't withdraw vote amount while voting is still open.") | |
248 | 248 | else throw("You didn't vote for this entrepreneur") | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | ||
253 | 253 | @Callable(I) | |
254 | 254 | func stake () = { | |
255 | 255 | let n = toBase58String(I.caller.bytes) | |
256 | 256 | let P = extract(I.payment) | |
257 | 257 | if ((P.amount == 0)) | |
258 | 258 | then throw("Stake amount too low") | |
259 | 259 | else if ((P.assetId != e)) | |
260 | 260 | then throw("You can only stake with DYZRUPT token") | |
261 | 261 | else { | |
262 | 262 | let W = o(n) | |
263 | 263 | let X = fraction(P.amount, 5, 100) | |
264 | 264 | let Y = (P.amount - X) | |
265 | 265 | let Z = (W + Y) | |
266 | 266 | let aa = g() | |
267 | 267 | let ab = (aa + X) | |
268 | 268 | ScriptResult(WriteSet([DataEntry(m(n), Z), DataEntry(f(), ab)]), TransferSet(nil)) | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(I) | |
275 | 275 | func unstake (ac) = { | |
276 | 276 | let n = toBase58String(I.caller.bytes) | |
277 | 277 | let W = o(n) | |
278 | 278 | if ((W == 0)) | |
279 | 279 | then throw("You don't have any stakes") | |
280 | 280 | else if ((ac > W)) | |
281 | 281 | then throw("You can't withdraw an amount higher than you staked") | |
282 | 282 | else { | |
283 | 283 | let ad = fraction(ac, 10, 100) | |
284 | 284 | let ae = (ac - ad) | |
285 | 285 | let af = (W - ac) | |
286 | 286 | let aa = g() | |
287 | 287 | let ab = (aa + ad) | |
288 | 288 | ScriptResult(WriteSet([DataEntry(m(n), af), DataEntry(f(), ab)]), TransferSet([ScriptTransfer(I.caller, ae, e)])) | |
289 | 289 | } | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(I) | |
295 | 295 | func claimDailyStakeReward (ag) = { | |
296 | 296 | let n = toBase58String(I.caller.bytes) | |
297 | 297 | let W = o(n) | |
298 | 298 | let aa = g() | |
299 | 299 | let ah = height | |
300 | 300 | let ai = y(n) | |
301 | 301 | let aj = G() | |
302 | 302 | let ak = H(n) | |
303 | 303 | if ((W == 0)) | |
304 | 304 | then throw("You don't have any stakes") | |
305 | 305 | else if ((aa == 0)) | |
306 | 306 | then throw("Nothing in Stake pool at this time. Try again later") | |
307 | 307 | else if ((ag > aa)) | |
308 | 308 | then throw("No rewards at this time") | |
309 | 309 | else if (((ai + 1440) > ah)) | |
310 | - | then throw("You can only claim once a day | |
310 | + | then throw("You can only claim once a day") | |
311 | 311 | else { | |
312 | 312 | let ab = (aa - ag) | |
313 | 313 | let al = W | |
314 | 314 | ScriptResult(WriteSet([DataEntry(("claimed_total_" + n), (ak + ag)), DataEntry("claimed_total", (aj + ag)), DataEntry(("last_claim_" + n), ah), DataEntry(m(n), al), DataEntry(f(), ab)]), TransferSet([ScriptTransfer(I.caller, ag, e)])) | |
315 | 315 | } | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 |
github/deemru/w8io/169f3d6 52.47 ms ◑