tx · 988F6uYGc3d6HR5mU6gJLC8E7hqtVu5nT2SoNVFqZ4y9

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.02500000 Waves

2023.08.14 15:51 [2710255] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "988F6uYGc3d6HR5mU6gJLC8E7hqtVu5nT2SoNVFqZ4y9", "fee": 2500000, "feeAssetId": null, "timestamp": 1692017492913, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "4ZpXWU7bDixnE5TmKorcKpMMEtQGAoMhSd2X8xkLcN1EDNFfJa6H5u8yqsNyQupb3mzUwYtm1MggE5J1hHnJH58w" ], "script": "base64:AAIFAAAAAAAAABsIAhIICgYBAQEBAQQSAwoBARIDCgEBEgMKAQEAAAARAAAAAAtCTUxfVG9rZW5JRAEAAAAAAAAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQEAAAAg463XstSKNtaiPAMTm2AWTDVjxzAiveOx6Vx7CmnuvCMAAAAAEmNvbnRyb2xsZXJfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkAAAAADmV4cGlyZWR0c2Vycm9yAgAAADhTdGFydCBUaW1lc3RhbXAgY2FuJ3QgYmUgbGVzcyB0aGFuIGxhc3QgYmxvY2sgVGltZXN0YW1wLgAAAAAHdHNlcnJvcgIAAAA8RW5kIFRpbWVzdGFtcCBjYW4ndCBiZSBsZXNzIHRoYW4gb3IgZXF1YWwgdG8gU3RhcnQgVGltZXN0YW1wAAAAAApwcmljZWVycm9yAgAAACZUb2tlbiBQcmljZSBjYW4ndCBiZSBsZXNzIHRoYW4gb3Ig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gZGlkbid0IHJlYWNoIG51bWJlcnMgZm9yIHRoaXMgUm91bmQuAwMJAAAAAAAAAgUAAAAUcmVhZF9zb2Z0X2NhcF9zdGF0dXMCAAAAA1llcwYJAAAAAAAAAgUAAAAUcmVhZF9oYXJkX2NhcF9zdGF0dXMCAAAAA1llcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEFAAAAE0VudGVyX1ByZXNhbGVfUm91bmQCAAAAD19Ub2tlbnNfQ2xhaW1lZAUAAAAUdG90YWxfdG9rZW5zX2NsYWltZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAABNFbnRlcl9QcmVzYWxlX1JvdW5kAgAAABhfUGVuZGluZ19Ub2tlbnNfVG9fQ2xhaW0FAAAAFnBlbmRpbmdfdG9rZW5zX2NsYWltZWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAKY3VycmVudEtleQUAAAAYdXNlcl90b2tlbnNfY2xhaW1fYW1vdW50BQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAASV3JvbmcgRW50cnkgRm91bmQuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkRTibu", "height": 2710255, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J2Wp4UMQzSmPTuoCbDDJNXpNWNdFRVJxcy67cG8GUkqx Next: 1gRVa9LZq3tPY5xwv9q9ocYEZuNSHrKoradf26Fwjoj Diff:
OldNewDifferences
216216 else if (if ((read_soft_cap_status == "Yes"))
217217 then true
218218 else (read_hard_cap_status == "Yes"))
219- then [IntegerEntry((toString(Enter_Presale_Round) + "_Tokens_Claimed"), total_tokens_claimed), IntegerEntry((toString(Enter_Presale_Round) + "_Pending_Tokens_To_Claim"), pending_tokens_claimed), ScriptTransfer(addressFromStringValue(currentKey), user_tokens_claim_amount, BML_TokenID)]
219+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Tokens_Claimed"), total_tokens_claimed), IntegerEntry((toString(Enter_Presale_Round) + "_Pending_Tokens_To_Claim"), pending_tokens_claimed), ScriptTransfer(addressFromStringValue(currentKey), user_tokens_claim_amount, unit)]
220220 else throw("Wrong Entry Found.")
221221 }
222222
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let BML_TokenID = base58''
55
66 let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
77
88 let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey)
99
1010 let expiredtserror = "Start Timestamp can't be less than last block Timestamp."
1111
1212 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
1313
1414 let priceerror = "Token Price can't be less than or Zero"
1515
1616 let caperror = "Soft Cap Amount can't be more than Hard Cap Amount."
1717
1818 let ordermsg = "<h1>Presale Order Submitted Successfully!</h1><br>"
1919
2020 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
2121
2222 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
2323
2424 let orderpymterror = "Attached payment[1] is less than token price "
2525
2626 let launch_error = "Dapp will start Pre-Sale at Timestamp "
2727
2828 let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2929
3030 let presale_end_err = "Pre-Sale is over for this Round."
3131
3232 let presale_not_end_err = "Pre-Sale is not over for this Round."
3333
3434 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."
3535
3636 let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>"
3737
3838 @Callable(i)
3939 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = {
4040 let StartTS = Presale_Start_TimeStamp
4141 let EndTS = Presale_End_TimeStamp
4242 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
4343 case a: Int =>
4444 a
4545 case _ =>
4646 0
4747 }
4848 let current_round = (read_funding_round + 1)
4949 if ((i.caller != controller_address))
5050 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
5151 else if ((lastBlock.timestamp > Presale_Start_TimeStamp))
5252 then throw(expiredtserror)
5353 else if ((size(toString(Presale_Start_TimeStamp)) != 13))
5454 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5555 else if ((size(toString(Presale_End_TimeStamp)) != 13))
5656 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5757 else if ((1 > Token_Price))
5858 then throw(priceerror)
5959 else if ((StartTS >= EndTS))
6060 then throw(tserror)
6161 else if ((Soft_Cap_Amount > Hard_Cap_Amount))
6262 then throw(caperror)
6363 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)]
6464 }
6565
6666
6767
6868 @Callable(i)
6969 func PlacePresaleOrder (Enter_Presale_Round) = {
7070 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
7171 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
7272 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
7373 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
7474 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
7575 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
7676 let WAVES = unit
7777 let currentKey = toBase58String(i.caller.bytes)
7878 let pmt = if ((size(i.payments) == 1))
7979 then i.payments[0]
8080 else throw(pymterror)
8181 let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) {
8282 case a: Int =>
8383 a
8484 case _ =>
8585 0
8686 }
8787 let total_funds_collection = (read_funds_collection + pmt.amount)
8888 let read_auto_withdraw_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_auto_withdraw_txns")) {
8989 case a: Int =>
9090 a
9191 case _ =>
9292 0
9393 }
9494 let total_auto_withdraw_txns = (read_auto_withdraw_txns + 1)
9595 let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) {
9696 case a: Int =>
9797 a
9898 case _ =>
9999 0
100100 }
101101 let total_txns = (read_total_txns + 1)
102102 let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) {
103103 case a: Int =>
104104 a
105105 case _ =>
106106 0
107107 }
108108 let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount)
109109 let pending_softcap_status = (read_Soft_Cap_Amount - total_funds_collection)
110110 let pending_hardcap_status = (read_Hard_Cap_Amount - total_funds_collection)
111111 if (isDefined(pmt.assetId))
112112 then throw(pymterror)
113113 else if ((read_round_token_price > pmt.amount))
114114 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
115115 else if ((read_round_start_ts > lastBlock.timestamp))
116116 then throw((launch_error + toString(read_round_start_ts)))
117117 else if ((lastBlock.timestamp > read_round_end_ts))
118118 then throw(presale_end_err)
119119 else if (if ((pending_softcap_status > 0))
120120 then (pending_hardcap_status > 0)
121121 else false)
122122 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_auto_withdraw_txns"), read_auto_withdraw_txns), 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)]
123123 else if (if (if ((0 >= pending_softcap_status))
124124 then (pending_hardcap_status > 0)
125125 else false)
126126 then (total_auto_withdraw_txns == 1)
127127 else false)
128128 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_auto_withdraw_txns"), total_auto_withdraw_txns), 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, total_funds_collection, unit), StringEntry("message", ordermsg)]
129129 else if (if (if ((0 >= pending_softcap_status))
130130 then (pending_hardcap_status > 0)
131131 else false)
132132 then (total_auto_withdraw_txns > 1)
133133 else false)
134134 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_auto_withdraw_txns"), total_auto_withdraw_txns), 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, pmt.amount, unit), StringEntry("message", ordermsg)]
135135 else if (if (if ((0 >= pending_softcap_status))
136136 then (0 >= pending_hardcap_status)
137137 else false)
138138 then (total_auto_withdraw_txns == 1)
139139 else false)
140140 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_auto_withdraw_txns"), total_auto_withdraw_txns), 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, total_funds_collection, unit), StringEntry("message", ordermsg)]
141141 else if (if (if ((0 >= pending_softcap_status))
142142 then (0 >= pending_hardcap_status)
143143 else false)
144144 then (total_auto_withdraw_txns > 1)
145145 else false)
146146 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_auto_withdraw_txns"), total_auto_withdraw_txns), 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, pmt.amount, unit), StringEntry("message", ordermsg)]
147147 else throw("Error.")
148148 }
149149
150150
151151
152152 @Callable(i)
153153 func Refund (Enter_Presale_Round) = {
154154 let WAVES = unit
155155 let currentKey = toBase58String(i.caller.bytes)
156156 let read_Initiated_Height = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.")
157157 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
158158 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
159159 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
160160 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
161161 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
162162 let read_total_funds_collection = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.")
163163 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.")
164164 let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.")
165165 let pending_softcap_status = (read_Soft_Cap_Amount - read_total_funds_collection)
166166 let pending_hardcap_status = (read_Hard_Cap_Amount - read_total_funds_collection)
167167 let milliseconds = 1000
168168 let minute = (60 * milliseconds)
169169 let round_time_difference = (read_round_end_ts - read_round_start_ts)
170170 let additional_safe_blocks = 10
171171 let blockstimetomature = ((read_Initiated_Height + fraction(round_time_difference, 1, minute)) + additional_safe_blocks)
172172 let pending_refunds = (read_total_funds_collection - read_user_total_funds_deposited)
173173 if ((blockstimetomature > lastBlock.height))
174174 then throw((((presale_not_end_err + " Please Wait Until ~") + toString(blockstimetomature)) + " Height is reached."))
175175 else if ((read_Allow_Refund == false))
176176 then throw(refund_err)
177177 else if ((read_user_total_funds_deposited == 0))
178178 then throw("Refund has been Already Claimed by this Address.")
179179 else if (if ((pending_softcap_status > 0))
180180 then (pending_hardcap_status > 0)
181181 else false)
182182 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)]
183183 else if (if ((0 >= pending_softcap_status))
184184 then (pending_hardcap_status > 0)
185185 else false)
186186 then throw("SoftCap Already Reached for this Round. Please Click on 'Claim Tokens' Function to Receive Your Tokens.")
187187 else if (if ((0 >= pending_softcap_status))
188188 then (0 >= pending_hardcap_status)
189189 else false)
190190 then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
191191 else throw("Wrong Entry Found.")
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func Claim_Tokens (Enter_Presale_Round) = {
198198 let currentKey = toBase58String(i.caller.bytes)
199199 let scale = 100000000
200200 let read_soft_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_softcap_status")), "SoftCap Status not Found for this Presale Round.")
201201 let read_hard_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_hardcap_status")), "HardCap Status not Found for this Presale Round.")
202202 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
203203 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.")
204204 let calculate_total_tokens = fraction(read_user_total_funds_deposited, scale, read_round_token_price)
205205 let user_tokens_claim_amount = fraction(read_user_total_funds_deposited, scale, read_round_token_price)
206206 let read_total_tokens_claimed = match getInteger(this, (toString(Enter_Presale_Round) + "_Tokens_Claimed")) {
207207 case a: Int =>
208208 a
209209 case _ =>
210210 0
211211 }
212212 let total_tokens_claimed = (read_total_tokens_claimed + user_tokens_claim_amount)
213213 let pending_tokens_claimed = (calculate_total_tokens - user_tokens_claim_amount)
214214 if ((read_soft_cap_status == "No"))
215215 then throw("No Tokens CLaim,as SoftCap Amount didn't reach numbers for this Round.")
216216 else if (if ((read_soft_cap_status == "Yes"))
217217 then true
218218 else (read_hard_cap_status == "Yes"))
219- then [IntegerEntry((toString(Enter_Presale_Round) + "_Tokens_Claimed"), total_tokens_claimed), IntegerEntry((toString(Enter_Presale_Round) + "_Pending_Tokens_To_Claim"), pending_tokens_claimed), ScriptTransfer(addressFromStringValue(currentKey), user_tokens_claim_amount, BML_TokenID)]
219+ then [IntegerEntry((toString(Enter_Presale_Round) + "_Tokens_Claimed"), total_tokens_claimed), IntegerEntry((toString(Enter_Presale_Round) + "_Pending_Tokens_To_Claim"), pending_tokens_claimed), ScriptTransfer(addressFromStringValue(currentKey), user_tokens_claim_amount, unit)]
220220 else throw("Wrong Entry Found.")
221221 }
222222
223223
224224 @Verifier(tx)
225225 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
226226

github/deemru/w8io/026f985 
60.06 ms