tx · BskCWNL9AVHF7rkAnQsXYkpUq16Rjyp8wrTaqwVFMTFs

3MyLnBsVm9pw43K9eba5UExxb3efeai91KP:  -0.01500000 Waves

2022.12.26 13:27 [2377125] smart account 3MyLnBsVm9pw43K9eba5UExxb3efeai91KP > SELF 0.00000000 Waves

{ "type": 13, "id": "BskCWNL9AVHF7rkAnQsXYkpUq16Rjyp8wrTaqwVFMTFs", "fee": 1500000, "feeAssetId": null, "timestamp": 1672050524403, "version": 2, "chainId": 84, "sender": "3MyLnBsVm9pw43K9eba5UExxb3efeai91KP", "senderPublicKey": "E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx", "proofs": [ "roontyzQBeFA2927ex9LtpasoF6NX3ZKBe89Whoc7QhxwnH13o5aFFGqq14cVzW4d7J8Td9dCVhSJiLqS7MNpZd" ], "script": "base64:AAIFAAAAAAAAACYIAhIDCgEEEgkKBwgICAEBCAESAwoBARIDCgEBEgMKAQESAwoBAQAAABgAAAAACGRBcHBOYW1lAgAAABtDUk9XREZVTkRJTkdfT05fV0FWRVNfU0hBUkUAAAAABmFkbVB1YgEAAAAgwm0nmAhWSDqW+K/S1mvC+NNow4ujn8UBfOoCFti2ZnMAAAAABGJhbmsJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSmfND+3V/r5U39jSnmcibSNaQF0ZS9OSgAAAAADHBheW1lbnRBc3NldAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAACGNsYWltS2V5AgAAAAdfY2xhaW1fAAAAAAZuZnRLZXkCAAAABV9uZnRfAAAAAAtzaHV0RG93bktleQIAAAAKX3NodXREb3duXwAAAAAIZXZlbnRLZXkCAAAAB19ldmVudF8AAAAACnBheW1lbnRLZXkCAAAACV9wYXltZW50XwAAAAAQZ2xvYmFsRXZlbnRJZEtleQIAAAAJX2V2ZW50SWRfAAAAAA1zdGFydEJsb2NrS2V5AgAAAAxfc3RhcnRCbG9ja18AAAAAC2VuZ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MFAAAAC3NodXREb3duS2V5BgMDAwMJAABmAAAAAgUAAAAIZW5kQmxvY2sFAAAABmhlaWdodAkAAGYAAAACBQAAAAx0b3RhbFBheW1lbnQFAAAAB2hhcmRDYXAHCQAAZgAAAAIFAAAADXdhbGxldFBheW1lbnQAAAAAAAAAAAAHBQAAAAhzaHV0RG93bgcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACXJlZnVuZEtleQUAAAAKY3VycmVudEtleQIAAAABXwkAAaQAAAABBQAAAAdldmVudElkBQAAAA13YWxsZXRQYXltZW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANd2FsbGV0UGF5bWVudAUAAAAMcGF5bWVudEFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAgY2FuIG5vdCByZWZ1bmQuIGNhbXBhaWduIHN1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRshhX8=", "height": 2377125, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4o6VQAnTKqhr45ymu5pBBcf7efQvBYXtgk32pCY7KkPJ Next: EFXgFQDrqxDGD4HejoLFkzqPXraF6URPTcrJzxyNagmB Diff:
OldNewDifferences
9898 then throw("crowdfunding is over")
9999 else if ((totalPayment >= hardCap))
100100 then throw("crowdfunding is reached to hard cap. thank you for participating!")
101- else if ((walletPayment > hardCap))
102- then throw("you can not pay more than hardcap")
103- else {
104- let p = i.payments[0]
105- let paymentAmount = p.amount
106- let paymentAssetId = p.assetId
107- let walletBalance = assetBalance(i.caller, paymentAsset)
108- if (if ((paymentAssetId != paymentAsset))
109- then true
110- else (paymentAmount > walletBalance))
111- then throw("you have to attach payment greater than zero")
112- else {
113- let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
114- if (!(shutDown))
115- then throw("emergency shutdown")
116- else {
117- let calcFee = fraction(paymentAmount, scale8, commissionFee)
118- let realAmount = (paymentAmount - calcFee)
101+ else {
102+ let p = i.payments[0]
103+ let paymentAmount = p.amount
104+ let paymentAssetId = p.assetId
105+ let walletBalance = assetBalance(i.caller, paymentAsset)
106+ if (if ((paymentAssetId != paymentAsset))
107+ then true
108+ else (walletBalance > paymentAmount))
109+ then throw("you have to attach payment greater than zero")
110+ else {
111+ let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
112+ if (!(shutDown))
113+ then throw("emergency shutdown")
114+ else {
115+ let calcFee = fraction(paymentAmount, scale8, commissionFee)
116+ let realAmount = (paymentAmount - calcFee)
119117 [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)]
120- }
121- }
122- }
118+ }
119+ }
120+ }
123121 }
124122
125123
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'E5xdZLn3yHKAn29pTyubhr9R1mkRGg9WKAcpPrCYFYHx'
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 match p.assetId {
5757 case assetId: ByteVector =>
5858 if ((assetId == acceptableAssetId))
5959 then (p.amount > 0)
6060 else false
6161 case _ =>
6262 throw("Wrong payment asset")
6363 }
6464 }
6565 }
6666
6767
6868 @Callable(i)
6969 func shutdown (isOpen) = if ((i.callerPublicKey == admPub))
7070 then [BooleanEntry(shutDownKey, isOpen)]
7171 else throw("you are not allow to do this!")
7272
7373
7474
7575 @Callable(i)
7676 func create (title,image,owner,startBlock,endBlock,url,hardCap) = {
7777 let eventId = valueOrElse(getInteger(this, (eventKey + globalEventIdKey)), 0)
7878 let increaseEventId = (eventId + 1)
7979 if ((i.callerPublicKey == admPub))
8080 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)]
8181 else throw("you are not allowed")
8282 }
8383
8484
8585
8686 @Callable(i)
8787 func funding (eventId) = {
8888 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
8989 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
9090 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
9191 let currentKey = toBase58String(i.caller.bytes)
9292 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
9393 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
9494 let shareHolderCount = valueOrElse(getInteger(this, ((paymentKey + shareHolderCountKey) + toString(eventId))), 0)
9595 if ((startBlock > height))
9696 then throw("crowdfunding not started")
9797 else if ((height >= endBlock))
9898 then throw("crowdfunding is over")
9999 else if ((totalPayment >= hardCap))
100100 then throw("crowdfunding is reached to hard cap. thank you for participating!")
101- else if ((walletPayment > hardCap))
102- then throw("you can not pay more than hardcap")
103- else {
104- let p = i.payments[0]
105- let paymentAmount = p.amount
106- let paymentAssetId = p.assetId
107- let walletBalance = assetBalance(i.caller, paymentAsset)
108- if (if ((paymentAssetId != paymentAsset))
109- then true
110- else (paymentAmount > walletBalance))
111- then throw("you have to attach payment greater than zero")
112- else {
113- let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
114- if (!(shutDown))
115- then throw("emergency shutdown")
116- else {
117- let calcFee = fraction(paymentAmount, scale8, commissionFee)
118- let realAmount = (paymentAmount - calcFee)
101+ else {
102+ let p = i.payments[0]
103+ let paymentAmount = p.amount
104+ let paymentAssetId = p.assetId
105+ let walletBalance = assetBalance(i.caller, paymentAsset)
106+ if (if ((paymentAssetId != paymentAsset))
107+ then true
108+ else (walletBalance > paymentAmount))
109+ then throw("you have to attach payment greater than zero")
110+ else {
111+ let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
112+ if (!(shutDown))
113+ then throw("emergency shutdown")
114+ else {
115+ let calcFee = fraction(paymentAmount, scale8, commissionFee)
116+ let realAmount = (paymentAmount - calcFee)
119117 [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)]
120- }
121- }
122- }
118+ }
119+ }
120+ }
123121 }
124122
125123
126124
127125 @Callable(i)
128126 func claim (eventId) = {
129127 let owner = valueOrErrorMessage(getString(this, ((eventKey + ownerKey) + toString(eventId))), "can not find the owner")
130128 let currentKey = toBase58String(i.caller.bytes)
131129 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
132130 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
133131 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
134132 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
135133 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
136134 if ((toBytes(owner) == i.caller.bytes))
137135 then throw("you are not able to claim")
138136 else if (if (if ((height > endBlock))
139137 then (totalPayment >= hardCap)
140138 else false)
141139 then shutDown
142140 else false)
143141 then [ScriptTransfer(i.caller, totalPayment, paymentAsset), IntegerEntry((((claimKey + currentKey) + "_") + toString(eventId)), totalPayment)]
144142 else throw("not allowed")
145143 }
146144
147145
148146
149147 @Callable(i)
150148 func claimShare (eventId) = {
151149 let currentKey = toBase58String(i.caller.bytes)
152150 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
153151 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
154152 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
155153 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
156154 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
157155 let calcFee = fraction(walletPayment, scale8, totalPayment)
158156 let desc = ((toString(calcFee) + "_") + toString(eventId))
159157 let issueNft = Issue(((dAppName + "_") + toString(eventId)), desc, 1, 0, false)
160158 let nftId = calculateAssetId(issueNft)
161159 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
162160 if (if (if (if ((height > endBlock))
163161 then (hardCap >= totalPayment)
164162 else false)
165163 then (walletPayment > 0)
166164 else false)
167165 then shutDown
168166 else false)
169167 then [issueNft, StringEntry((nftKey + toString(eventId)), toBase58String(nftId)), BooleanEntry(toBase58String(nftId), true), ScriptTransfer(i.caller, 1, nftId)]
170168 else throw("you are not able to claim NFT")
171169 }
172170
173171
174172
175173 @Callable(i)
176174 func refund (eventId) = {
177175 let currentKey = toBase58String(i.caller.bytes)
178176 let startBlock = valueOrErrorMessage(getInteger(this, ((eventKey + startBlockKey) + toString(eventId))), "can not find event 1")
179177 let endBlock = valueOrErrorMessage(getInteger(this, ((eventKey + endBlockKey) + toString(eventId))), "can not find event 2")
180178 let hardCap = valueOrErrorMessage(getInteger(this, ((eventKey + hardCapKey) + toString(eventId))), "can not find event 3")
181179 let totalPayment = valueOrElse(getInteger(this, ((paymentKey + totalPaymentKey) + toString(eventId))), 0)
182180 let walletPayment = valueOrElse(getInteger(this, (((paymentKey + walletPaymentKey) + currentKey) + toString(eventId))), 0)
183181 let shutDown = valueOrElse(getBoolean(this, shutDownKey), true)
184182 if (if (if (if ((endBlock > height))
185183 then (totalPayment > hardCap)
186184 else false)
187185 then (walletPayment > 0)
188186 else false)
189187 then shutDown
190188 else false)
191189 then [IntegerEntry((((refundKey + currentKey) + "_") + toString(eventId)), walletPayment), ScriptTransfer(i.caller, walletPayment, paymentAsset)]
192190 else throw("can not refund. campaign success")
193191 }
194192
195193
196194 @Verifier(tx)
197195 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
198196

github/deemru/w8io/026f985 
57.36 ms