tx · 2Ug24VpLW4RAn4wLDfMQhArHcu1ypWWA6UWH4T58eoBx

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.02000000 Waves

2023.08.13 15:29 [2708801] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "2Ug24VpLW4RAn4wLDfMQhArHcu1ypWWA6UWH4T58eoBx", "fee": 2000000, "feeAssetId": null, "timestamp": 1691929765947, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "38QgPqfghwpxHvx6dDLAapgwA3nbSZQHD2PJXpQv8kA99EM9RXMTjGFPUj9D1acpGbGdMX52Wm2db6EEcpKAzeDb" ], "script": "base64:AAIFAAAAAAAAABYIAhIICgYBAQEBAQQSAwoBARIDCgEBAAAAEAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAA5leHBpcmVkdHNlcnJvcgIAAAA4U3RhcnQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBsYXN0IGJsb2NrIFRpbWVzdGFtcC4AAAAAB3RzZXJyb3ICAAAAPEVuZCBUaW1lc3RhbXAgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIGVxdWFsIHRvIFN0YXJ0IFRpbWVzdGFtcAAAAAAKcHJpY2VlcnJvcgIAAAAmVG9rZW4gUHJpY2UgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIFplcm8AAAAACGNhcGVycm9yAgAAADNTb2Z0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cHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5LaneJg==", "height": 2708801, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2NZJ5a8aN69ict6SsC24YpLUn5VXkghw5EQxosjDdxju Next: 7xMxAjGrY6gfW3FE55GDCmpMBRXTBsLPB4phHz9J4Fmv Diff:
OldNewDifferences
114114 else if (if ((0 >= pending_softcap_status))
115115 then (pending_hardcap_status > 0)
116116 else false)
117- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
117+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), ScriptTransfer(controller_address, assetBalance(this, base58''), unit), StringEntry("message", ordermsg)]
118118 else if (if ((0 >= pending_softcap_status))
119119 then (0 >= pending_hardcap_status)
120120 else false)
121- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "Yes"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
121+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "Yes"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), ScriptTransfer(controller_address, assetBalance(this, base58''), unit), StringEntry("message", ordermsg)]
122122 else throw("Error.")
123123 }
124124
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
55
66 let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey)
77
88 let expiredtserror = "Start Timestamp can't be less than last block Timestamp."
99
1010 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
1111
1212 let priceerror = "Token Price can't be less than or Zero"
1313
1414 let caperror = "Soft Cap Amount can't be more than Hard Cap Amount."
1515
1616 let ordermsg = "<h1>Order Submitted Successfully!</h1><br>"
1717
1818 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
1919
2020 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
2121
2222 let orderpymterror = "Attached payment[1] is less than token price "
2323
2424 let launch_error = "Dapp will start Pre-Sale at Timestamp "
2525
2626 let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2727
2828 let presale_end_err = "Pre-Sale is over for this Round."
2929
3030 let presale_not_end_err = "Pre-Sale is not over for this Round."
3131
3232 let refund_err = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round."
3333
3434 let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
3535
3636 @Callable(i)
3737 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = {
3838 let StartTS = Presale_Start_TimeStamp
3939 let EndTS = Presale_End_TimeStamp
4040 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
4141 case a: Int =>
4242 a
4343 case _ =>
4444 0
4545 }
4646 let current_round = (read_funding_round + 1)
4747 if ((i.caller != controller_address))
4848 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
4949 else if ((lastBlock.timestamp > Presale_Start_TimeStamp))
5050 then throw(expiredtserror)
5151 else if ((size(toString(Presale_Start_TimeStamp)) != 13))
5252 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5353 else if ((size(toString(Presale_End_TimeStamp)) != 13))
5454 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5555 else if ((1 > Token_Price))
5656 then throw(priceerror)
5757 else if ((StartTS >= EndTS))
5858 then throw(tserror)
5959 else if ((Soft_Cap_Amount > Hard_Cap_Amount))
6060 then throw(caperror)
6161 else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), IntegerEntry((toString(current_round) + "_Initiated_Height"), height), BooleanEntry((toString(current_round) + "_Allow_Refund"), Allow_Refund), StringEntry("message", presale_init_msg)]
6262 }
6363
6464
6565
6666 @Callable(i)
6767 func PlacePresaleOrder (Enter_Presale_Round) = {
6868 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
6969 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
7070 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
7171 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
7272 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
7373 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
7474 let WAVES = unit
7575 let currentKey = toBase58String(i.caller.bytes)
7676 let pmt = if ((size(i.payments) == 1))
7777 then i.payments[0]
7878 else throw(pymterror)
7979 let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) {
8080 case a: Int =>
8181 a
8282 case _ =>
8383 0
8484 }
8585 let total_funds_collection = (read_funds_collection + pmt.amount)
8686 let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) {
8787 case a: Int =>
8888 a
8989 case _ =>
9090 0
9191 }
9292 let total_txns = (read_total_txns + 1)
9393 let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) {
9494 case a: Int =>
9595 a
9696 case _ =>
9797 0
9898 }
9999 let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount)
100100 let pending_softcap_status = (read_Soft_Cap_Amount - total_funds_collection)
101101 let pending_hardcap_status = (read_Hard_Cap_Amount - total_funds_collection)
102102 if (isDefined(pmt.assetId))
103103 then throw(pymterror)
104104 else if ((read_round_token_price > pmt.amount))
105105 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
106106 else if ((read_round_start_ts > lastBlock.timestamp))
107107 then throw((launch_error + toString(read_round_start_ts)))
108108 else if ((lastBlock.timestamp > read_round_end_ts))
109109 then throw(presale_end_err)
110110 else if (if ((pending_softcap_status > 0))
111111 then (pending_hardcap_status > 0)
112112 else false)
113113 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "No"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), read_Allow_Refund), StringEntry("message", ordermsg)]
114114 else if (if ((0 >= pending_softcap_status))
115115 then (pending_hardcap_status > 0)
116116 else false)
117- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
117+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "No"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), ScriptTransfer(controller_address, assetBalance(this, base58''), unit), StringEntry("message", ordermsg)]
118118 else if (if ((0 >= pending_softcap_status))
119119 then (0 >= pending_hardcap_status)
120120 else false)
121- then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "Yes"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), StringEntry("message", ordermsg)]
121+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), IntegerEntry((toString(Enter_Presale_Round) + "_pending_softcap_status"), pending_softcap_status), IntegerEntry((toString(Enter_Presale_Round) + "_pending_hardcap_status"), pending_hardcap_status), StringEntry((toString(Enter_Presale_Round) + "_softcap_status"), "Yes"), StringEntry((toString(Enter_Presale_Round) + "_hardcap_status"), "Yes"), BooleanEntry((toString(Enter_Presale_Round) + "_Allow_Refund"), false), ScriptTransfer(controller_address, assetBalance(this, base58''), unit), StringEntry("message", ordermsg)]
122122 else throw("Error.")
123123 }
124124
125125
126126
127127 @Callable(i)
128128 func Refund (Enter_Presale_Round) = {
129129 let WAVES = unit
130130 let currentKey = toBase58String(i.caller.bytes)
131131 let read_Initiated_Height = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.")
132132 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
133133 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
134134 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
135135 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
136136 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
137137 let read_total_funds_collection = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.")
138138 let read_user_total_funds_deposited = valueOrErrorMessage(getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)), "No Deposit was made by this Address for this Presale Round.")
139139 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.")
140140 let pending_softcap_status = (read_Soft_Cap_Amount - read_total_funds_collection)
141141 let pending_hardcap_status = (read_Hard_Cap_Amount - read_total_funds_collection)
142142 let milliseconds = 1000
143143 let minute = (60 * milliseconds)
144144 let round_time_difference = (read_round_end_ts - read_round_start_ts)
145145 let additional_safe_blocks = 10
146146 let blockstimetomature = ((read_Initiated_Height + fraction(round_time_difference, 1, minute)) + additional_safe_blocks)
147147 let pending_refunds = (read_total_funds_collection - read_user_total_funds_deposited)
148148 if ((blockstimetomature > lastBlock.height))
149149 then throw((((presale_not_end_err + " Please Wait Until ~") + toString(blockstimetomature)) + " Height is reached."))
150150 else if ((read_Allow_Refund == false))
151151 then throw(refund_err)
152152 else if ((read_user_total_funds_deposited == 0))
153153 then throw("Refund has been Already Claimed by this Address.")
154154 else if (if ((pending_softcap_status > 0))
155155 then (pending_hardcap_status > 0)
156156 else false)
157157 then [ScriptTransfer(addressFromStringValue(currentKey), read_user_total_funds_deposited, WAVES), IntegerEntry(((toString(Enter_Presale_Round) + "_") + "Pending_Refund"), pending_refunds), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), 0), StringEntry("message", refund_init_msg)]
158158 else if (if ((0 >= pending_softcap_status))
159159 then (pending_hardcap_status > 0)
160160 else false)
161161 then throw("SoftCap Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
162162 else if (if ((0 >= pending_softcap_status))
163163 then (0 >= pending_hardcap_status)
164164 else false)
165165 then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
166166 else throw("Wrong Entry Found.")
167167 }
168168
169169
170170 @Verifier(tx)
171171 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
172172

github/deemru/w8io/026f985 
61.51 ms