tx · HEm5H51R1GZvqJxJMrV7eSVoY3MNHPmaNYUfXzeEeJcM 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG: -0.01500000 Waves 2022.12.26 15:30 [2377246] smart account 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG > SELF 0.00000000 Waves
{ "type": 13, "id": "HEm5H51R1GZvqJxJMrV7eSVoY3MNHPmaNYUfXzeEeJcM", "fee": 1500000, "feeAssetId": null, "timestamp": 1672057829530, "version": 2, "chainId": 84, "sender": "3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG", "senderPublicKey": "9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F", "proofs": [ "KuacSvm6wXWpxnT7GS2RzxLmwZFL4s3k1QzvUY2J8fBMqkMCHWqAt67abz7UkW51f8R3mYyzsnM3DxLfatcqUXf" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgAkE2VigpXwyPVsqLqs85Wa4JuFZ+lt64yRSqXslbm2YAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAA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Ax0b3RhbFBheW1lbnQFAAAAB2hhcmRDYXAHCQAAZgAAAAIFAAAADXdhbGxldFBheW1lbnQAAAAAAAAAAAAHBQAAAAhzaHV0RG93bgcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACXJlZnVuZEtleQUAAAAKY3VycmVudEtleQIAAAABXwkAAaQAAAABBQAAAAdldmVudElkBQAAAA13YWxsZXRQYXltZW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANd2FsbGV0UGF5bWVudAUAAAAMcGF5bWVudEFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAgY2FuIG5vdCByZWZ1bmQuIGNhbXBhaWduIHN1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVsQtwM=", "height": 2377246, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7R9Umz52MD7HdcHWLYKVK55E7tREcYq2Rp89BstHt8yi Next: EHxGUh5mMoC1AV8HnpCxQCBPoTcNAUo95tPW4imsJWN8 Diff:
Old | New | Differences | |
---|---|---|---|
57 | 57 | match p.assetId { | |
58 | 58 | case assetId: ByteVector => | |
59 | 59 | if ((assetId == acceptableAssetId)) | |
60 | - | then (walletBalance >= p.amount) | |
60 | + | then (walletBalance >= (p.amount * 2)) | |
61 | 61 | else false | |
62 | 62 | case _ => | |
63 | 63 | throw("Wrong payment") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let dAppName = "CROWDFUNDING_ON_WAVES_SHARE" | |
5 | 5 | ||
6 | 6 | let admPub = base58'9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F' | |
7 | 7 | ||
8 | 8 | let bank = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79') | |
9 | 9 | ||
10 | 10 | let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
11 | 11 | ||
12 | 12 | let claimKey = "_claim_" | |
13 | 13 | ||
14 | 14 | let nftKey = "_nft_" | |
15 | 15 | ||
16 | 16 | let shutDownKey = "_shutDown_" | |
17 | 17 | ||
18 | 18 | let eventKey = "_event_" | |
19 | 19 | ||
20 | 20 | let paymentKey = "_payment_" | |
21 | 21 | ||
22 | 22 | let globalEventIdKey = "_eventId_" | |
23 | 23 | ||
24 | 24 | let startBlockKey = "_startBlock_" | |
25 | 25 | ||
26 | 26 | let endBlockKey = "_endBlock_" | |
27 | 27 | ||
28 | 28 | let imageKey = "_image_" | |
29 | 29 | ||
30 | 30 | let ownerKey = "_owner_" | |
31 | 31 | ||
32 | 32 | let urlKey = "_url_" | |
33 | 33 | ||
34 | 34 | let hardCapKey = "_hardCap_" | |
35 | 35 | ||
36 | 36 | let titleKey = "_title_" | |
37 | 37 | ||
38 | 38 | let shareHolderCountKey = "_shareHolderCount_" | |
39 | 39 | ||
40 | 40 | let totalPaymentKey = "_totalPayment_" | |
41 | 41 | ||
42 | 42 | let walletPaymentKey = "_walletPayment_" | |
43 | 43 | ||
44 | 44 | let refundKey = "_refund_" | |
45 | 45 | ||
46 | 46 | let commissionFee = 500000000 | |
47 | 47 | ||
48 | 48 | let scale8 = 100000000 | |
49 | 49 | ||
50 | 50 | func isPaymentOk (i) = { | |
51 | 51 | let acceptableAssetId = paymentAsset | |
52 | 52 | if ((size(i.payments) == 0)) | |
53 | 53 | then throw("Payment not attached") | |
54 | 54 | else { | |
55 | 55 | let p = i.payments[0] | |
56 | 56 | let walletBalance = assetBalance(i.caller, acceptableAssetId) | |
57 | 57 | match p.assetId { | |
58 | 58 | case assetId: ByteVector => | |
59 | 59 | if ((assetId == acceptableAssetId)) | |
60 | - | then (walletBalance >= p.amount) | |
60 | + | then (walletBalance >= (p.amount * 2)) | |
61 | 61 | else false | |
62 | 62 | case _ => | |
63 | 63 | throw("Wrong payment") | |
64 | 64 | } | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(i) | |
70 | 70 | func shutdown (isOpen) = if ((i.callerPublicKey == admPub)) | |
71 | 71 | then [BooleanEntry(shutDownKey, isOpen)] | |
72 | 72 | else throw("you are not allow to do this!") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | ||
76 | 76 | @Callable(i) | |
77 | 77 | func create (title,image,owner,startBlock,endBlock,url,hardCap) = { | |
78 | 78 | let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0) | |
79 | 79 | let increaseEventId = (eventId + 1) | |
80 | 80 | if ((i.callerPublicKey == admPub)) | |
81 | 81 | then [StringEntry(((eventKey + imageKey) + toString(increaseEventId)), image), StringEntry(((eventKey + ownerKey) + toString(increaseEventId)), owner), StringEntry(((eventKey + titleKey) + toString(increaseEventId)), title), IntegerEntry(((eventKey + startBlockKey) + toString(increaseEventId)), startBlock), IntegerEntry(((eventKey + endBlockKey) + toString(increaseEventId)), endBlock), StringEntry(((eventKey + urlKey) + toString(increaseEventId)), url), IntegerEntry(((eventKey + hardCapKey) + toString(increaseEventId)), hardCap), IntegerEntry((eventKey + globalEventIdKey), increaseEventId)] | |
82 | 82 | else throw("you are not allowed") | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(i) | |
88 | 88 | func funding (eventId) = { | |
89 | 89 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
90 | 90 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
91 | 91 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
92 | 92 | let currentKey = toBase58String(i.caller.bytes) | |
93 | 93 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
94 | 94 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
95 | 95 | let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0) | |
96 | 96 | if ((startBlock > height)) | |
97 | 97 | then throw("crowdfunding not started") | |
98 | 98 | else if ((height >= endBlock)) | |
99 | 99 | then throw("crowdfunding is over") | |
100 | 100 | else if ((totalPayment >= hardCap)) | |
101 | 101 | then throw("crowdfunding is reached to hard cap. thank you for participating!") | |
102 | 102 | else { | |
103 | 103 | let p = i.payments[0] | |
104 | 104 | let paymentAmount = p.amount | |
105 | 105 | if (isPaymentOk(i)) | |
106 | 106 | then { | |
107 | 107 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
108 | 108 | if (!(shutDown)) | |
109 | 109 | then throw("emergency shutdown") | |
110 | 110 | else { | |
111 | 111 | let calcFee = fraction(paymentAmount, scale8, commissionFee) | |
112 | 112 | let realAmount = (paymentAmount - calcFee) | |
113 | 113 | [IntegerEntry(((paymentKey + shareHolderCountKey) + toString(eventId)), (shareHolderCount + 1)), IntegerEntry(((paymentKey + totalPaymentKey) + toString(eventId)), (totalPayment + realAmount)), IntegerEntry(((((paymentKey + walletPaymentKey) + currentKey) + "_") + toString(eventId)), (walletPayment + realAmount)), ScriptTransfer(bank, calcFee, paymentAsset)] | |
114 | 114 | } | |
115 | 115 | } | |
116 | 116 | else throw("attach payment correctly") | |
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | ||
122 | 122 | @Callable(i) | |
123 | 123 | func claim (eventId) = { | |
124 | 124 | let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner") | |
125 | 125 | let currentKey = toBase58String(i.caller.bytes) | |
126 | 126 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
127 | 127 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
128 | 128 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
129 | 129 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
130 | 130 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
131 | 131 | if ((toBytes(owner) == i.caller.bytes)) | |
132 | 132 | then throw("you are not able to claim") | |
133 | 133 | else if (if (if ((height > endBlock)) | |
134 | 134 | then (totalPayment >= hardCap) | |
135 | 135 | else false) | |
136 | 136 | then shutDown | |
137 | 137 | else false) | |
138 | 138 | then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)] | |
139 | 139 | else throw("not allowed") | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(i) | |
145 | 145 | func claimShare (eventId) = { | |
146 | 146 | let currentKey = toBase58String(i.caller.bytes) | |
147 | 147 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
148 | 148 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
149 | 149 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
150 | 150 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
151 | 151 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
152 | 152 | let calcFee = fraction(walletPayment, scale8, totalPayment) | |
153 | 153 | let desc = ((toString(calcFee) + "_") + toString(eventId)) | |
154 | 154 | let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false) | |
155 | 155 | let nftId = calculateAssetId(issueNft) | |
156 | 156 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
157 | 157 | if (if (if (if ((height > endBlock)) | |
158 | 158 | then (hardCap >= totalPayment) | |
159 | 159 | else false) | |
160 | 160 | then (walletPayment > 0) | |
161 | 161 | else false) | |
162 | 162 | then shutDown | |
163 | 163 | else false) | |
164 | 164 | then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), BooleanEntry(toBase58String(nftId), true), ScriptTransfer(i.caller, 1, nftId)] | |
165 | 165 | else throw("you are not able to claim NFT") | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(i) | |
171 | 171 | func refund (eventId) = { | |
172 | 172 | let currentKey = toBase58String(i.caller.bytes) | |
173 | 173 | let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1") | |
174 | 174 | let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2") | |
175 | 175 | let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3") | |
176 | 176 | let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0) | |
177 | 177 | let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0) | |
178 | 178 | let shutDown = valueOrElse(getBoolean(this, shutDownKey), true) | |
179 | 179 | if (if (if (if ((endBlock > height)) | |
180 | 180 | then (totalPayment > hardCap) | |
181 | 181 | else false) | |
182 | 182 | then (walletPayment > 0) | |
183 | 183 | else false) | |
184 | 184 | then shutDown | |
185 | 185 | else false) | |
186 | 186 | then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), ScriptTransfer(i.caller, walletPayment, paymentAsset)] | |
187 | 187 | else throw("can not refund. campaign success") | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Verifier(tx) | |
192 | 192 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
193 | 193 |
github/deemru/w8io/026f985 35.89 ms ◑