tx · 9c69uGnaSHhux12x1dPcnM3iyN9BvfSsyRtS2C5qewYp

3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG:  -0.01500000 Waves

2022.12.26 15:38 [2377254] smart account 3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG > SELF 0.00000000 Waves

{ "type": 13, "id": "9c69uGnaSHhux12x1dPcnM3iyN9BvfSsyRtS2C5qewYp", "fee": 1500000, "feeAssetId": null, "timestamp": 1672058307053, "version": 2, "chainId": 84, "sender": "3N5wJ2ZhRVwoT7WLuTpTJ3CXrgQu2NUgUPG", "senderPublicKey": "9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F", "proofs": [ "5qJCYw6HM75GeGshC9HFC9NMLsarqcdnbVDGn5fk5rEhYTPLXCrvfETx1cEiftQpEXrbTwaLAcbLSrs9QrkJw12t" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgAkE2VigpXwyPVsqLqs85Wa4JuFZ+lt64yRSqXslbm2YAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc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BQAAAAx0b3RhbFBheW1lbnQFAAAAB2hhcmRDYXAHCQAAZgAAAAIFAAAADXdhbGxldFBheW1lbnQAAAAAAAAAAAAHBQAAAAhzaHV0RG93bgcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACXJlZnVuZEtleQUAAAAKY3VycmVudEtleQIAAAABXwkAAaQAAAABBQAAAAdldmVudElkBQAAAA13YWxsZXRQYXltZW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANd2FsbGV0UGF5bWVudAUAAAAMcGF5bWVudEFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAgY2FuIG5vdCByZWZ1bmQuIGNhbXBhaWduIHN1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee52YPs=", "height": 2377254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EHxGUh5mMoC1AV8HnpCxQCBPoTcNAUo95tPW4imsJWN8 Next: 5UUg1fYB9457MaWYvuSAPysixK4gBGoRRtThkNxNS1dG Diff:
OldNewDifferences
9393 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
9494 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
9595 let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
96+ let p = i.payments[0]
97+ let paymentAmount = p.amount
9698 if ((startBlock > height))
9799 then throw("crowdfunding not started")
98100 else if ((height >= endBlock))
99101 then throw("crowdfunding is over")
100- else if ((totalPayment >= hardCap))
102+ else if (((totalPayment + paymentAmount) >= hardCap))
101103 then throw("crowdfunding is reached to hard cap. thank you for participating!")
102- else {
103- let p = i.payments[0]
104- let paymentAmount = p.amount
105- if (isPaymentOk(i))
106- then {
107- let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
108- if (!(shutDown))
109- then throw("emergency shutdown")
110- else {
111- let calcFee = fraction(paymentAmount, scale8, commissionFee)
112- let realAmount = (paymentAmount - calcFee)
104+ else if (isPaymentOk(i))
105+ then {
106+ let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
107+ if (!(shutDown))
108+ then throw("emergency shutdown")
109+ else {
110+ let calcFee = fraction(paymentAmount, scale8, commissionFee)
111+ let realAmount = (paymentAmount - calcFee)
113112 [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- }
115- }
116- else throw("attach payment correctly")
117- }
113+ }
114+ }
115+ else throw("attach payment correctly")
118116 }
119117
120118
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let dAppName = "CROWDFUNDING_ON_WAVES_SHARE"
55
66 let admPub = base58'9oVPUzQkCTgQDc9YhdhZaVS1w5go2NMUN8rd1sfk11F'
77
88 let bank = Address(base58'3N56PUABa6tqTXc4cv6QvntyMPb1KHnzC79')
99
1010 let paymentAsset = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk'
1111
1212 let claimKey = "_claim_"
1313
1414 let nftKey = "_nft_"
1515
1616 let shutDownKey = "_shutDown_"
1717
1818 let eventKey = "_event_"
1919
2020 let paymentKey = "_payment_"
2121
2222 let globalEventIdKey = "_eventId_"
2323
2424 let startBlockKey = "_startBlock_"
2525
2626 let endBlockKey = "_endBlock_"
2727
2828 let imageKey = "_image_"
2929
3030 let ownerKey = "_owner_"
3131
3232 let urlKey = "_url_"
3333
3434 let hardCapKey = "_hardCap_"
3535
3636 let titleKey = "_title_"
3737
3838 let shareHolderCountKey = "_shareHolderCount_"
3939
4040 let totalPaymentKey = "_totalPayment_"
4141
4242 let walletPaymentKey = "_walletPayment_"
4343
4444 let refundKey = "_refund_"
4545
4646 let commissionFee = 500000000
4747
4848 let scale8 = 100000000
4949
5050 func isPaymentOk (i) = {
5151 let acceptableAssetId = paymentAsset
5252 if ((size(i.payments) == 0))
5353 then throw("Payment not attached")
5454 else {
5555 let p = i.payments[0]
5656 let walletBalance = assetBalance(i.caller, acceptableAssetId)
5757 match p.assetId {
5858 case assetId: ByteVector =>
5959 if ((assetId == acceptableAssetId))
6060 then (p.amount > 0)
6161 else false
6262 case _ =>
6363 throw("Wrong payment")
6464 }
6565 }
6666 }
6767
6868
6969 @Callable(i)
7070 func shutdown (isOpen) = if ((i.callerPublicKey == admPub))
7171 then [BooleanEntry(shutDownKey, isOpen)]
7272 else throw("you are not allow to do this!")
7373
7474
7575
7676 @Callable(i)
7777 func create (title,image,owner,startBlock,endBlock,url,hardCap) = {
7878 let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0)
7979 let increaseEventId = (eventId + 1)
8080 if ((i.callerPublicKey == admPub))
8181 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)]
8282 else throw("you are not allowed")
8383 }
8484
8585
8686
8787 @Callable(i)
8888 func funding (eventId) = {
8989 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
9090 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
9191 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
9292 let currentKey = toBase58String(i.caller.bytes)
9393 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
9494 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
9595 let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
96+ let p = i.payments[0]
97+ let paymentAmount = p.amount
9698 if ((startBlock > height))
9799 then throw("crowdfunding not started")
98100 else if ((height >= endBlock))
99101 then throw("crowdfunding is over")
100- else if ((totalPayment >= hardCap))
102+ else if (((totalPayment + paymentAmount) >= hardCap))
101103 then throw("crowdfunding is reached to hard cap. thank you for participating!")
102- else {
103- let p = i.payments[0]
104- let paymentAmount = p.amount
105- if (isPaymentOk(i))
106- then {
107- let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
108- if (!(shutDown))
109- then throw("emergency shutdown")
110- else {
111- let calcFee = fraction(paymentAmount, scale8, commissionFee)
112- let realAmount = (paymentAmount - calcFee)
104+ else if (isPaymentOk(i))
105+ then {
106+ let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
107+ if (!(shutDown))
108+ then throw("emergency shutdown")
109+ else {
110+ let calcFee = fraction(paymentAmount, scale8, commissionFee)
111+ let realAmount = (paymentAmount - calcFee)
113112 [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- }
115- }
116- else throw("attach payment correctly")
117- }
113+ }
114+ }
115+ else throw("attach payment correctly")
118116 }
119117
120118
121119
122120 @Callable(i)
123121 func claim (eventId) = {
124122 let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
125123 let currentKey = toBase58String(i.caller.bytes)
126124 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
127125 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
128126 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
129127 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
130128 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
131129 if ((toBytes(owner) == i.caller.bytes))
132130 then throw("you are not able to claim")
133131 else if (if (if ((height > endBlock))
134132 then (totalPayment >= hardCap)
135133 else false)
136134 then shutDown
137135 else false)
138136 then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)]
139137 else throw("not allowed")
140138 }
141139
142140
143141
144142 @Callable(i)
145143 func claimShare (eventId) = {
146144 let currentKey = toBase58String(i.caller.bytes)
147145 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
148146 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
149147 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
150148 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
151149 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
152150 let calcFee = fraction(walletPayment, scale8, totalPayment)
153151 let desc = ((toString(calcFee) + "_") + toString(eventId))
154152 let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false)
155153 let nftId = calculateAssetId(issueNft)
156154 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
157155 if (if (if (if ((height > endBlock))
158156 then (hardCap >= totalPayment)
159157 else false)
160158 then (walletPayment > 0)
161159 else false)
162160 then shutDown
163161 else false)
164162 then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), BooleanEntry(toBase58String(nftId), true), ScriptTransfer(i.caller, 1, nftId)]
165163 else throw("you are not able to claim NFT")
166164 }
167165
168166
169167
170168 @Callable(i)
171169 func refund (eventId) = {
172170 let currentKey = toBase58String(i.caller.bytes)
173171 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
174172 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
175173 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
176174 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
177175 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
178176 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
179177 if (if (if (if ((endBlock > height))
180178 then (totalPayment > hardCap)
181179 else false)
182180 then (walletPayment > 0)
183181 else false)
184182 then shutDown
185183 else false)
186184 then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), ScriptTransfer(i.caller, walletPayment, paymentAsset)]
187185 else throw("can not refund. campaign success")
188186 }
189187
190188
191189 @Verifier(tx)
192190 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
193191

github/deemru/w8io/026f985 
34.87 ms