tx · CXGVNRjMMFztBT4oXifAqnQCFAUPQ6Rzp5ezSoCM699r 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP: -0.01300000 Waves 2022.12.26 13:05 [2377101] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves
{ "type": 13, "id": "CXGVNRjMMFztBT4oXifAqnQCFAUPQ6Rzp5ezSoCM699r", "fee": 1300000, "feeAssetId": null, "timestamp": 1672049119869, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "J9ofsdYv1JXR2vDFBq9fb1am4XgboB8G5dTbbX2a7D7FAYuxfJNtBmyhEBgsNm3HUxgTNsiawUEFTSwhrQfDRwB" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgwm0nmAhWSDqW+K/S1mvC+NNow4ujn8UBfOoCFti2ZnMAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAAC2V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ZEJsb2NrBQAAAAZoZWlnaHQJAABmAAAAAgUAAAAMdG90YWxQYXltZW50BQAAAAdoYXJkQ2FwBwkAAGYAAAACBQAAAA13YWxsZXRQYXltZW50AAAAAAAAAAAABwUAAAAIc2h1dERvd24HCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAlyZWZ1bmRLZXkFAAAACmN1cnJlbnRLZXkCAAAAAV8JAAGkAAAAAQUAAAAHZXZlbnRJZAUAAAANd2FsbGV0UGF5bWVudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADXdhbGxldFBheW1lbnQFAAAADHBheW1lbnRBc3NldAUAAAADbmlsCQAAAgAAAAECAAAAIGNhbiBub3QgcmVmdW5kLiBjYW1wYWlnbiBzdWNjZXNzAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm8Rocs", "height": 2377101, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4G7aZbAeXDPiB7xF4tR5WW9j9rf5PjRcGGnEPGVu1vn9 Next: HwchqgSm8ya7sarXCQstc4G4XSEXqg5cjvgswrdQ8HY8 Diff:
Old | New | Differences | |
---|---|---|---|
99 | 99 | then throw("crowdfunding is over") | |
100 | 100 | else if ((O >= K)) | |
101 | 101 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
102 | - | else if (!(x(y))) | |
103 | - | then throw("you have to attach payment greater than zero") | |
104 | - | else { | |
105 | - | let R = valueOrElse(getBoolean(this, g), true) | |
106 | - | if (!(R)) | |
107 | - | then throw("emergency shutdown") | |
108 | - | else { | |
109 | - | let A = y.payments[0] | |
110 | - | let S = A.amount | |
111 | - | let T = fraction(S, w, v) | |
112 | - | let U = (S - T) | |
102 | + | else if ((P > K)) | |
103 | + | then throw("you can not pay more than hardcap") | |
104 | + | else if (!(x(y))) | |
105 | + | then throw("you have to attach payment greater than zero") | |
106 | + | else { | |
107 | + | let R = valueOrElse(getBoolean(this, g), true) | |
108 | + | if (!(R)) | |
109 | + | then throw("emergency shutdown") | |
110 | + | else { | |
111 | + | let A = y.payments[0] | |
112 | + | let S = A.amount | |
113 | + | let T = fraction(S, w, v) | |
114 | + | let U = (S - T) | |
113 | 115 | [IntegerEntry(((i + r) + toString(L)), (Q + 1)), IntegerEntry(((i + s) + toString(L)), (O + U)), IntegerEntry(((((i + t) + N) + "_") + toString(L)), (P + U)), ScriptTransfer(c, T, d)] | |
114 | - | } | |
115 | - | } | |
116 | + | } | |
117 | + | } | |
116 | 118 | } | |
117 | 119 | ||
118 | 120 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "CROWDFUNDING_ON_WAVES_SHARE" | |
5 | 5 | ||
6 | 6 | let b = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx' | |
7 | 7 | ||
8 | 8 | let c = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79') | |
9 | 9 | ||
10 | 10 | let d = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
11 | 11 | ||
12 | 12 | let e = "_claim_" | |
13 | 13 | ||
14 | 14 | let f = "_nft_" | |
15 | 15 | ||
16 | 16 | let g = "_shutDown_" | |
17 | 17 | ||
18 | 18 | let h = "_event_" | |
19 | 19 | ||
20 | 20 | let i = "_payment_" | |
21 | 21 | ||
22 | 22 | let j = "_eventId_" | |
23 | 23 | ||
24 | 24 | let k = "_startBlock_" | |
25 | 25 | ||
26 | 26 | let l = "_endBlock_" | |
27 | 27 | ||
28 | 28 | let m = "_image_" | |
29 | 29 | ||
30 | 30 | let n = "_owner_" | |
31 | 31 | ||
32 | 32 | let o = "_url_" | |
33 | 33 | ||
34 | 34 | let p = "_hardCap_" | |
35 | 35 | ||
36 | 36 | let q = "_title_" | |
37 | 37 | ||
38 | 38 | let r = "_shareHolderCount_" | |
39 | 39 | ||
40 | 40 | let s = "_totalPayment_" | |
41 | 41 | ||
42 | 42 | let t = "_walletPayment_" | |
43 | 43 | ||
44 | 44 | let u = "_refund_" | |
45 | 45 | ||
46 | 46 | let v = 500000000 | |
47 | 47 | ||
48 | 48 | let w = 100000000 | |
49 | 49 | ||
50 | 50 | func x (y) = { | |
51 | 51 | let z = d | |
52 | 52 | if ((size(y.payments) == 0)) | |
53 | 53 | then throw("Payment not attached") | |
54 | 54 | else { | |
55 | 55 | let A = y.payments[0] | |
56 | 56 | let B = A.assetId | |
57 | 57 | if ($isInstanceOf(B, "ByteVector")) | |
58 | 58 | then { | |
59 | 59 | let C = B | |
60 | 60 | if ((C == z)) | |
61 | 61 | then (A.amount > 0) | |
62 | 62 | else false | |
63 | 63 | } | |
64 | 64 | else throw("Wrong payment asset") | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(y) | |
70 | 70 | func shutdown (D) = if ((y.callerPublicKey == b)) | |
71 | 71 | then [BooleanEntry(g, D)] | |
72 | 72 | else throw("you are not allow to do this!") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | ||
76 | 76 | @Callable(y) | |
77 | 77 | func create (E,F,G,H,I,J,K) = { | |
78 | 78 | let L = valueOrElse(getInteger(this, (h + j)), 0) | |
79 | 79 | let M = (L + 1) | |
80 | 80 | if ((y.callerPublicKey == b)) | |
81 | 81 | then [StringEntry(((h + m) + toString(M)), F), StringEntry(((h + n) + toString(M)), G), StringEntry(((h + q) + toString(M)), E), IntegerEntry(((h + k) + toString(M)), H), IntegerEntry(((h + l) + toString(M)), I), StringEntry(((h + o) + toString(M)), J), IntegerEntry(((h + p) + toString(M)), K), IntegerEntry((h + j), M)] | |
82 | 82 | else throw("you are not allowed") | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(y) | |
88 | 88 | func funding (L) = { | |
89 | 89 | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
90 | 90 | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
91 | 91 | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
92 | 92 | let N = toBase58String(y.caller.bytes) | |
93 | 93 | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
94 | 94 | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
95 | 95 | let Q = valueOrElse(getInteger(this, ((i + r) + toString(L))), 0) | |
96 | 96 | if ((H > height)) | |
97 | 97 | then throw("crowdfunding not started") | |
98 | 98 | else if ((height >= I)) | |
99 | 99 | then throw("crowdfunding is over") | |
100 | 100 | else if ((O >= K)) | |
101 | 101 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
102 | - | else if (!(x(y))) | |
103 | - | then throw("you have to attach payment greater than zero") | |
104 | - | else { | |
105 | - | let R = valueOrElse(getBoolean(this, g), true) | |
106 | - | if (!(R)) | |
107 | - | then throw("emergency shutdown") | |
108 | - | else { | |
109 | - | let A = y.payments[0] | |
110 | - | let S = A.amount | |
111 | - | let T = fraction(S, w, v) | |
112 | - | let U = (S - T) | |
102 | + | else if ((P > K)) | |
103 | + | then throw("you can not pay more than hardcap") | |
104 | + | else if (!(x(y))) | |
105 | + | then throw("you have to attach payment greater than zero") | |
106 | + | else { | |
107 | + | let R = valueOrElse(getBoolean(this, g), true) | |
108 | + | if (!(R)) | |
109 | + | then throw("emergency shutdown") | |
110 | + | else { | |
111 | + | let A = y.payments[0] | |
112 | + | let S = A.amount | |
113 | + | let T = fraction(S, w, v) | |
114 | + | let U = (S - T) | |
113 | 115 | [IntegerEntry(((i + r) + toString(L)), (Q + 1)), IntegerEntry(((i + s) + toString(L)), (O + U)), IntegerEntry(((((i + t) + N) + "_") + toString(L)), (P + U)), ScriptTransfer(c, T, d)] | |
114 | - | } | |
115 | - | } | |
116 | + | } | |
117 | + | } | |
116 | 118 | } | |
117 | 119 | ||
118 | 120 | ||
119 | 121 | ||
120 | 122 | @Callable(y) | |
121 | 123 | func claim (L) = { | |
122 | 124 | let G = valueOrErrorMessage(getString(this, ((h + n) + toString(L))), "can not find the owner") | |
123 | 125 | let N = toBase58String(y.caller.bytes) | |
124 | 126 | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
125 | 127 | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
126 | 128 | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
127 | 129 | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
128 | 130 | let R = valueOrElse(getBoolean(this, g), true) | |
129 | 131 | if ((toBytes(G) == y.caller.bytes)) | |
130 | 132 | then throw("you are not able to claim") | |
131 | 133 | else if (if (if ((height > I)) | |
132 | 134 | then (O >= K) | |
133 | 135 | else false) | |
134 | 136 | then R | |
135 | 137 | else false) | |
136 | 138 | then [ScriptTransfer(y.caller, O, d), IntegerEntry((((e + N) + "_") + toString(L)), O)] | |
137 | 139 | else throw("not allowed") | |
138 | 140 | } | |
139 | 141 | ||
140 | 142 | ||
141 | 143 | ||
142 | 144 | @Callable(y) | |
143 | 145 | func claimShare (L) = { | |
144 | 146 | let N = toBase58String(y.caller.bytes) | |
145 | 147 | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
146 | 148 | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
147 | 149 | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
148 | 150 | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
149 | 151 | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
150 | 152 | let T = fraction(P, w, O) | |
151 | 153 | let V = ((toString(T) + "_") + toString(L)) | |
152 | 154 | let W = Issue(((a + "_") + toString(L)), V, 1, 0, false) | |
153 | 155 | let X = calculateAssetId(W) | |
154 | 156 | let R = valueOrElse(getBoolean(this, g), true) | |
155 | 157 | if (if (if (if ((height > I)) | |
156 | 158 | then (K >= O) | |
157 | 159 | else false) | |
158 | 160 | then (P > 0) | |
159 | 161 | else false) | |
160 | 162 | then R | |
161 | 163 | else false) | |
162 | 164 | then [W, StringEntry((f + toString(L)), toBase58String(X)), BooleanEntry(toBase58String(X), true), ScriptTransfer(y.caller, 1, X)] | |
163 | 165 | else throw("you are not able to claim NFT") | |
164 | 166 | } | |
165 | 167 | ||
166 | 168 | ||
167 | 169 | ||
168 | 170 | @Callable(y) | |
169 | 171 | func refund (L) = { | |
170 | 172 | let N = toBase58String(y.caller.bytes) | |
171 | 173 | let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1") | |
172 | 174 | let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2") | |
173 | 175 | let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3") | |
174 | 176 | let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0) | |
175 | 177 | let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0) | |
176 | 178 | let R = valueOrElse(getBoolean(this, g), true) | |
177 | 179 | if (if (if (if ((I > height)) | |
178 | 180 | then (O > K) | |
179 | 181 | else false) | |
180 | 182 | then (P > 0) | |
181 | 183 | else false) | |
182 | 184 | then R | |
183 | 185 | else false) | |
184 | 186 | then [IntegerEntry((((u + N) + "_") + toString(L)), P), ScriptTransfer(y.caller, P, d)] | |
185 | 187 | else throw("can not refund. campaign success") | |
186 | 188 | } | |
187 | 189 | ||
188 | 190 | ||
189 | 191 | @Verifier(Y) | |
190 | 192 | func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey) | |
191 | 193 |
github/deemru/w8io/169f3d6 44.25 ms ◑