tx · 7db3EagPT5AMAaWX5Dy3d2ZZZuQr8JsggwNYQDaWGhGq

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.02500000 Waves

2023.08.14 18:01 [2710385] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
63.37 ms