tx · 2WZBfb41jsPbbKdpJhgDyXTgeDg6ScsNUfhgxhBH7mi2

3MyLnBsVm9pw43K9eba5UExxb3efeai91KP:  -0.01300000 Waves

2022.12.23 11:06 [2372666] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves

{ "type": 13, "id": "2WZBfb41jsPbbKdpJhgDyXTgeDg6ScsNUfhgxhBH7mi2", "fee": 1300000, "feeAssetId": null, "timestamp": 1671782800296, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "2bd9iafQ6FKyLDx5zYExcJjm6EAkokFzqVAChZprZoR4ZFAL5J7kjX2CgQgtqVV8cq7A2MdLNy5XMKh7GS8kKihD" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgwm0nmAhWSDqW+K/S1mvC+NNow4ujn8UBfOoCFti2ZnMAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAA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EsAAAAAgUAAAAJcmVmdW5kS2V5BQAAAApjdXJyZW50S2V5AgAAAAFfCQABpAAAAAEFAAAAB2V2ZW50SWQFAAAADXdhbGxldFBheW1lbnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA13YWxsZXRQYXltZW50BQAAAAxwYXltZW50QXNzZXQFAAAAA25pbAkAAAIAAAABAgAAACBjYW4gbm90IHJlZnVuZC4gY2FtcGFpZ24gc3VjY2VzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5G9vPcw==", "height": 2372666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GpHyuXyv86UWfJ2nLRbh26oJdt7CKwwP7Cq1jNLuzM8i Next: FQM6ga19EjDLZ6JUHPTMuctR9BC4mGzi41ASNDByawHS Diff:
OldNewDifferences
1313
1414 let f = "_nft_"
1515
16-let g = "_nftId_"
16+let g = "_shutDown_"
1717
18-let h = "_shutDown_"
18+let h = "_event_"
1919
20-let i = "_event_"
20+let i = "_payment_"
2121
22-let j = "_payment_"
22+let j = "_eventId_"
2323
24-let k = "_eventId_"
24+let k = "_startBlock_"
2525
26-let l = "_startBlock_"
26+let l = "_endBlock_"
2727
28-let m = "_endBlock_"
28+let m = "_image_"
2929
30-let n = "_image_"
30+let n = "_owner_"
3131
32-let o = "_owner_"
32+let o = "_url_"
3333
34-let p = "_url_"
34+let p = "_hardCap_"
3535
36-let q = "_hardCap_"
36+let q = "_title_"
3737
38-let r = "_title_"
38+let r = "_shareHolderCount_"
3939
40-let s = "_shareHolderCount_"
40+let s = "_totalPayment_"
4141
42-let t = "_totalPayment_"
42+let t = "_walletPayment_"
4343
44-let u = "_walletPayment_"
44+let u = "_refund_"
4545
46-let v = "_refund_"
46+let v = 500000000
4747
48-let w = 500000000
48+let w = 100000000
4949
50-let x = 100000000
51-
52-func y (z) = {
53- let A = d
54- if ((size(z.payments) == 0))
50+func x (y) = {
51+ let z = d
52+ if ((size(y.payments) == 0))
5553 then throw("Payment not attached")
5654 else {
57- let B = z.payments[0]
58- let C = B.assetId
59- if ($isInstanceOf(C, "ByteVector"))
55+ let A = y.payments[0]
56+ let B = A.assetId
57+ if ($isInstanceOf(B, "ByteVector"))
6058 then {
61- let D = C
62- if ((D == A))
63- then (B.amount > 0)
59+ let C = B
60+ if ((C == z))
61+ then (A.amount > 0)
6462 else false
6563 }
6664 else throw("Wrong payment asset")
6866 }
6967
7068
71-@Callable(z)
72-func shutdown (E) = if ((z.callerPublicKey == b))
73- then [BooleanEntry(h, E)]
69+@Callable(y)
70+func shutdown (D) = if ((y.callerPublicKey == b))
71+ then [BooleanEntry(g, D)]
7472 else throw("you are not allow to do this!")
7573
7674
7775
78-@Callable(z)
79-func create (F,G,H,I,J,K,L) = {
80- let M = valueOrElse(getInteger(this, (i + k)), 0)
81- let N = (M + 1)
82- if ((z.callerPublicKey == b))
83- then [StringEntry(((i + n) + toString(N)), G), StringEntry(((i + o) + toString(N)), H), StringEntry(((i + r) + toString(N)), F), IntegerEntry(((i + l) + toString(N)), I), IntegerEntry(((i + m) + toString(N)), J), StringEntry(((i + p) + toString(N)), K), IntegerEntry(((i + q) + toString(N)), L), IntegerEntry((i + k), N)]
76+@Callable(y)
77+func create (E,F,G,H,I,J,K) = {
78+ let L = valueOrElse(getInteger(this, (h + j)), 0)
79+ let M = (L + 1)
80+ if ((y.callerPublicKey == b))
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)]
8482 else throw("you are not allowed")
8583 }
8684
8785
8886
89-@Callable(z)
90-func funding (M) = {
91- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
92- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
93- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
94- let O = toBase58String(z.caller.bytes)
95- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
96- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
97- let R = valueOrElse(getInteger(this, ((j + s) + toString(M))), 0)
98- if ((I > height))
87+@Callable(y)
88+func funding (L) = {
89+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
90+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
91+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
92+ let N = toBase58String(y.caller.bytes)
93+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
94+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
95+ let Q = valueOrElse(getInteger(this, ((i + r) + toString(L))), 0)
96+ if ((H > height))
9997 then throw("crowdfunding not started")
100- else if ((height >= J))
98+ else if ((height >= I))
10199 then throw("crowdfunding is over")
102- else if ((P >= L))
100+ else if ((O >= K))
103101 then throw("crowdfunding is reached to hard cap. thank you for participating!")
104- else if (!(y(z)))
102+ else if (!(x(y)))
105103 then throw("you have to attach payment greater than zero")
106104 else {
107- let S = valueOrElse(getBoolean(this, h), true)
108- if (!(S))
105+ let R = valueOrElse(getBoolean(this, g), true)
106+ if (!(R))
109107 then throw("emergency shutdown")
110108 else {
111- let B = z.payments[0]
112- let T = B.amount
113- let U = fraction(T, w, x)
114- let V = (T - U)
115-[IntegerEntry(((j + s) + toString(M)), (R + 1)), IntegerEntry(((j + t) + toString(M)), (P + V)), IntegerEntry(((((j + u) + O) + "_") + toString(M)), (Q + V)), ScriptTransfer(c, U, d)]
109+ let A = y.payments[0]
110+ let S = A.amount
111+ let T = fraction(S, v, w)
112+ let U = (S - T)
113+[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)]
116114 }
117115 }
118116 }
119117
120118
121119
122-@Callable(z)
123-func claim (M) = {
124- let H = valueOrErrorMessage(getString(this, ((i + o) + toString(M))), "can not find the owner")
125- let O = toBase58String(z.caller.bytes)
126- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
127- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
128- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
129- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
130- let S = valueOrElse(getBoolean(this, h), true)
131- if ((toBytes(H) == z.caller.bytes))
120+@Callable(y)
121+func claim (L) = {
122+ let G = valueOrErrorMessage(getString(this, ((h + n) + toString(L))), "can not find the owner")
123+ let N = toBase58String(y.caller.bytes)
124+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
125+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
126+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
127+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
128+ let R = valueOrElse(getBoolean(this, g), true)
129+ if ((toBytes(G) == y.caller.bytes))
132130 then throw("you are not able to claim")
133- else if (if (if ((height > J))
134- then (P >= L)
131+ else if (if (if ((height > I))
132+ then (O >= K)
135133 else false)
136- then S
134+ then R
137135 else false)
138- then [ScriptTransfer(z.caller, P, d), IntegerEntry((((e + O) + "_") + toString(M)), P)]
136+ then [ScriptTransfer(y.caller, O, d), IntegerEntry((((e + N) + "_") + toString(L)), O)]
139137 else throw("not allowed")
140138 }
141139
142140
143141
144-@Callable(z)
145-func claimShare (M) = {
146- let O = toBase58String(z.caller.bytes)
147- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
148- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
149- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
150- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
151- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
152- let U = fraction(Q, x, P)
153- let W = ((toString(U) + "_") + toString(M))
154- let X = Issue(((a + "_") + toString(M)), W, 1, 0, false)
155- let Y = calculateAssetId(X)
156- let S = valueOrElse(getBoolean(this, h), true)
157- if (if (if (if ((height > J))
158- then (L >= P)
142+@Callable(y)
143+func claimShare (L) = {
144+ let N = toBase58String(y.caller.bytes)
145+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
146+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
147+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
148+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
149+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
150+ let T = fraction(P, w, O)
151+ let V = ((toString(T) + "_") + toString(L))
152+ let W = Issue(((a + "_") + toString(L)), V, 1, 0, false)
153+ let X = calculateAssetId(W)
154+ let R = valueOrElse(getBoolean(this, g), true)
155+ if (if (if (if ((height > I))
156+ then (K >= O)
159157 else false)
160- then (Q > 0)
158+ then (P > 0)
161159 else false)
162- then S
160+ then R
163161 else false)
164- then [X, StringEntry((f + toString(M)), toBase58String(Y)), ScriptTransfer(z.caller, 1, Y)]
162+ then [W, StringEntry((f + toString(L)), toBase58String(X)), ScriptTransfer(y.caller, 1, X)]
165163 else throw("you are not able to claim NFT")
166164 }
167165
168166
169167
170-@Callable(z)
171-func refund (M) = {
172- let O = toBase58String(z.caller.bytes)
173- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
174- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
175- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
176- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
177- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
178- let S = valueOrElse(getBoolean(this, h), true)
179- if (if (if (if ((J > height))
180- then (P > L)
168+@Callable(y)
169+func refund (L) = {
170+ let N = toBase58String(y.caller.bytes)
171+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
172+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
173+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
174+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
175+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
176+ let R = valueOrElse(getBoolean(this, g), true)
177+ if (if (if (if ((I > height))
178+ then (O > K)
181179 else false)
182- then (Q > 0)
180+ then (P > 0)
183181 else false)
184- then S
182+ then R
185183 else false)
186- then [IntegerEntry((((v + O) + "_") + toString(M)), Q), ScriptTransfer(z.caller, Q, d)]
184+ then [IntegerEntry((((u + N) + "_") + toString(L)), P), ScriptTransfer(y.caller, P, d)]
187185 else throw("can not refund. campaign success")
188186 }
189187
190188
191-@Verifier(Z)
192-func aa () = sigVerify(Z.bodyBytes, Z.proofs[0], Z.senderPublicKey)
189+@Verifier(Y)
190+func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey)
193191
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "CROWDFUNDING_ON_WAVES_SHARE"
55
66 let b = base58'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx'
77
88 let c = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79')
99
1010 let d = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
1111
1212 let e = "_claim_"
1313
1414 let f = "_nft_"
1515
16-let g = "_nftId_"
16+let g = "_shutDown_"
1717
18-let h = "_shutDown_"
18+let h = "_event_"
1919
20-let i = "_event_"
20+let i = "_payment_"
2121
22-let j = "_payment_"
22+let j = "_eventId_"
2323
24-let k = "_eventId_"
24+let k = "_startBlock_"
2525
26-let l = "_startBlock_"
26+let l = "_endBlock_"
2727
28-let m = "_endBlock_"
28+let m = "_image_"
2929
30-let n = "_image_"
30+let n = "_owner_"
3131
32-let o = "_owner_"
32+let o = "_url_"
3333
34-let p = "_url_"
34+let p = "_hardCap_"
3535
36-let q = "_hardCap_"
36+let q = "_title_"
3737
38-let r = "_title_"
38+let r = "_shareHolderCount_"
3939
40-let s = "_shareHolderCount_"
40+let s = "_totalPayment_"
4141
42-let t = "_totalPayment_"
42+let t = "_walletPayment_"
4343
44-let u = "_walletPayment_"
44+let u = "_refund_"
4545
46-let v = "_refund_"
46+let v = 500000000
4747
48-let w = 500000000
48+let w = 100000000
4949
50-let x = 100000000
51-
52-func y (z) = {
53- let A = d
54- if ((size(z.payments) == 0))
50+func x (y) = {
51+ let z = d
52+ if ((size(y.payments) == 0))
5553 then throw("Payment not attached")
5654 else {
57- let B = z.payments[0]
58- let C = B.assetId
59- if ($isInstanceOf(C, "ByteVector"))
55+ let A = y.payments[0]
56+ let B = A.assetId
57+ if ($isInstanceOf(B, "ByteVector"))
6058 then {
61- let D = C
62- if ((D == A))
63- then (B.amount > 0)
59+ let C = B
60+ if ((C == z))
61+ then (A.amount > 0)
6462 else false
6563 }
6664 else throw("Wrong payment asset")
6765 }
6866 }
6967
7068
71-@Callable(z)
72-func shutdown (E) = if ((z.callerPublicKey == b))
73- then [BooleanEntry(h, E)]
69+@Callable(y)
70+func shutdown (D) = if ((y.callerPublicKey == b))
71+ then [BooleanEntry(g, D)]
7472 else throw("you are not allow to do this!")
7573
7674
7775
78-@Callable(z)
79-func create (F,G,H,I,J,K,L) = {
80- let M = valueOrElse(getInteger(this, (i + k)), 0)
81- let N = (M + 1)
82- if ((z.callerPublicKey == b))
83- then [StringEntry(((i + n) + toString(N)), G), StringEntry(((i + o) + toString(N)), H), StringEntry(((i + r) + toString(N)), F), IntegerEntry(((i + l) + toString(N)), I), IntegerEntry(((i + m) + toString(N)), J), StringEntry(((i + p) + toString(N)), K), IntegerEntry(((i + q) + toString(N)), L), IntegerEntry((i + k), N)]
76+@Callable(y)
77+func create (E,F,G,H,I,J,K) = {
78+ let L = valueOrElse(getInteger(this, (h + j)), 0)
79+ let M = (L + 1)
80+ if ((y.callerPublicKey == b))
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)]
8482 else throw("you are not allowed")
8583 }
8684
8785
8886
89-@Callable(z)
90-func funding (M) = {
91- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
92- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
93- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
94- let O = toBase58String(z.caller.bytes)
95- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
96- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
97- let R = valueOrElse(getInteger(this, ((j + s) + toString(M))), 0)
98- if ((I > height))
87+@Callable(y)
88+func funding (L) = {
89+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
90+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
91+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
92+ let N = toBase58String(y.caller.bytes)
93+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
94+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
95+ let Q = valueOrElse(getInteger(this, ((i + r) + toString(L))), 0)
96+ if ((H > height))
9997 then throw("crowdfunding not started")
100- else if ((height >= J))
98+ else if ((height >= I))
10199 then throw("crowdfunding is over")
102- else if ((P >= L))
100+ else if ((O >= K))
103101 then throw("crowdfunding is reached to hard cap. thank you for participating!")
104- else if (!(y(z)))
102+ else if (!(x(y)))
105103 then throw("you have to attach payment greater than zero")
106104 else {
107- let S = valueOrElse(getBoolean(this, h), true)
108- if (!(S))
105+ let R = valueOrElse(getBoolean(this, g), true)
106+ if (!(R))
109107 then throw("emergency shutdown")
110108 else {
111- let B = z.payments[0]
112- let T = B.amount
113- let U = fraction(T, w, x)
114- let V = (T - U)
115-[IntegerEntry(((j + s) + toString(M)), (R + 1)), IntegerEntry(((j + t) + toString(M)), (P + V)), IntegerEntry(((((j + u) + O) + "_") + toString(M)), (Q + V)), ScriptTransfer(c, U, d)]
109+ let A = y.payments[0]
110+ let S = A.amount
111+ let T = fraction(S, v, w)
112+ let U = (S - T)
113+[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)]
116114 }
117115 }
118116 }
119117
120118
121119
122-@Callable(z)
123-func claim (M) = {
124- let H = valueOrErrorMessage(getString(this, ((i + o) + toString(M))), "can not find the owner")
125- let O = toBase58String(z.caller.bytes)
126- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
127- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
128- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
129- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
130- let S = valueOrElse(getBoolean(this, h), true)
131- if ((toBytes(H) == z.caller.bytes))
120+@Callable(y)
121+func claim (L) = {
122+ let G = valueOrErrorMessage(getString(this, ((h + n) + toString(L))), "can not find the owner")
123+ let N = toBase58String(y.caller.bytes)
124+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
125+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
126+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
127+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
128+ let R = valueOrElse(getBoolean(this, g), true)
129+ if ((toBytes(G) == y.caller.bytes))
132130 then throw("you are not able to claim")
133- else if (if (if ((height > J))
134- then (P >= L)
131+ else if (if (if ((height > I))
132+ then (O >= K)
135133 else false)
136- then S
134+ then R
137135 else false)
138- then [ScriptTransfer(z.caller, P, d), IntegerEntry((((e + O) + "_") + toString(M)), P)]
136+ then [ScriptTransfer(y.caller, O, d), IntegerEntry((((e + N) + "_") + toString(L)), O)]
139137 else throw("not allowed")
140138 }
141139
142140
143141
144-@Callable(z)
145-func claimShare (M) = {
146- let O = toBase58String(z.caller.bytes)
147- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
148- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
149- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
150- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
151- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
152- let U = fraction(Q, x, P)
153- let W = ((toString(U) + "_") + toString(M))
154- let X = Issue(((a + "_") + toString(M)), W, 1, 0, false)
155- let Y = calculateAssetId(X)
156- let S = valueOrElse(getBoolean(this, h), true)
157- if (if (if (if ((height > J))
158- then (L >= P)
142+@Callable(y)
143+func claimShare (L) = {
144+ let N = toBase58String(y.caller.bytes)
145+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
146+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
147+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
148+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
149+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
150+ let T = fraction(P, w, O)
151+ let V = ((toString(T) + "_") + toString(L))
152+ let W = Issue(((a + "_") + toString(L)), V, 1, 0, false)
153+ let X = calculateAssetId(W)
154+ let R = valueOrElse(getBoolean(this, g), true)
155+ if (if (if (if ((height > I))
156+ then (K >= O)
159157 else false)
160- then (Q > 0)
158+ then (P > 0)
161159 else false)
162- then S
160+ then R
163161 else false)
164- then [X, StringEntry((f + toString(M)), toBase58String(Y)), ScriptTransfer(z.caller, 1, Y)]
162+ then [W, StringEntry((f + toString(L)), toBase58String(X)), ScriptTransfer(y.caller, 1, X)]
165163 else throw("you are not able to claim NFT")
166164 }
167165
168166
169167
170-@Callable(z)
171-func refund (M) = {
172- let O = toBase58String(z.caller.bytes)
173- let I = valueOrErrorMessage(getInteger(this, ((i + l) + toString(M))), "can not find event 1")
174- let J = valueOrErrorMessage(getInteger(this, ((i + m) + toString(M))), "can not find event 2")
175- let L = valueOrErrorMessage(getInteger(this, ((i + q) + toString(M))), "can not find event 3")
176- let P = valueOrElse(getInteger(this, ((j + t) + toString(M))), 0)
177- let Q = valueOrElse(getInteger(this, (((j + u) + O) + toString(M))), 0)
178- let S = valueOrElse(getBoolean(this, h), true)
179- if (if (if (if ((J > height))
180- then (P > L)
168+@Callable(y)
169+func refund (L) = {
170+ let N = toBase58String(y.caller.bytes)
171+ let H = valueOrErrorMessage(getInteger(this, ((h + k) + toString(L))), "can not find event 1")
172+ let I = valueOrErrorMessage(getInteger(this, ((h + l) + toString(L))), "can not find event 2")
173+ let K = valueOrErrorMessage(getInteger(this, ((h + p) + toString(L))), "can not find event 3")
174+ let O = valueOrElse(getInteger(this, ((i + s) + toString(L))), 0)
175+ let P = valueOrElse(getInteger(this, (((i + t) + N) + toString(L))), 0)
176+ let R = valueOrElse(getBoolean(this, g), true)
177+ if (if (if (if ((I > height))
178+ then (O > K)
181179 else false)
182- then (Q > 0)
180+ then (P > 0)
183181 else false)
184- then S
182+ then R
185183 else false)
186- then [IntegerEntry((((v + O) + "_") + toString(M)), Q), ScriptTransfer(z.caller, Q, d)]
184+ then [IntegerEntry((((u + N) + "_") + toString(L)), P), ScriptTransfer(y.caller, P, d)]
187185 else throw("can not refund. campaign success")
188186 }
189187
190188
191-@Verifier(Z)
192-func aa () = sigVerify(Z.bodyBytes, Z.proofs[0], Z.senderPublicKey)
189+@Verifier(Y)
190+func Z () = sigVerify(Y.bodyBytes, Y.proofs[0], Y.senderPublicKey)
193191

github/deemru/w8io/026f985 
90.43 ms