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:AAIFAAAAAAAAACEIAhIICgYBAQEBAQQSAwoBARIDCgEBEgMKAQESBAoCCAgAAAATAAAAABR0b2tlbl9pc3N1ZV9pbml0X21zZwIAAAAfQk1MIFRva2VuIENyZWF0ZWQgU3VjY2Vzc2Z1bGx5LgAAAAARdG9rZW5faXNzdWVfZXJyb3ICAAAAWlRoZSBCTUwgdG9rZW4gY291bGQgbm90IGJlIGZvdW5kLiBQbGVhc2UgdXNlIHRoZSBDcmVhdGVfQk1MIGZ1bmN0aW9uIHRvIGlzc3VlIGEgQk1MIHRva2VuLgAAAAALQk1MX1Rva2VuSUQJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAtCTUxfVG9rZW5JRAUAAAARdG9rZW5faXNzdWVfZXJyb3IAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRy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AAACAgAAABNBc3NldF9Jc3N1ZV9Db3VudGVyBQAAABJyZWFkX3RvdGFsX2NvdW50ZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAUdG9rZW5faXNzdWVfaW5pdF9tc2cJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAdhc3NldElkAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYYaWCQ=", "height": 2710385, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9bRmPr2Jf4AUW4RWvokUZLd7wmrWx6t8LsGbVMwbHWY2 Next: 3uYyd338tNmD3kVzgbPzsgKXEJZMCAkget1tesmqfrgS Diff:
Old | New | Differences | |
---|---|---|---|
220 | 220 | else if (if ((read_soft_cap_status == "Yes")) | |
221 | 221 | then true | |
222 | 222 | 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)] | |
224 | 224 | else throw("Wrong Entry Found.") | |
225 | 225 | } | |
226 | 226 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let token_issue_init_msg = "BML Token Created Successfully." | |
5 | 5 | ||
6 | 6 | let token_issue_error = "The BML token could not be found. Please use the Create_BML function to issue a BML token." | |
7 | 7 | ||
8 | 8 | let BML_TokenID = valueOrErrorMessage(fromBase58String(getStringValue(this, "BML_TokenID")), token_issue_error) | |
9 | 9 | ||
10 | 10 | let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
11 | 11 | ||
12 | 12 | let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey) | |
13 | 13 | ||
14 | 14 | let expiredtserror = "Start Timestamp can't be less than last block Timestamp." | |
15 | 15 | ||
16 | 16 | let tserror = "End Timestamp can't be less than or equal to Start Timestamp" | |
17 | 17 | ||
18 | 18 | let priceerror = "Token Price can't be less than or Zero" | |
19 | 19 | ||
20 | 20 | let caperror = "Soft Cap Amount can't be more than Hard Cap Amount." | |
21 | 21 | ||
22 | 22 | let ordermsg = "<h1>Presale Order Submitted Successfully!</h1><br>" | |
23 | 23 | ||
24 | 24 | let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
25 | 25 | ||
26 | 26 | let pymterror = "DApp Need WAVES Token as Attach payment[1]." | |
27 | 27 | ||
28 | 28 | let orderpymterror = "Attached payment[1] is less than token price " | |
29 | 29 | ||
30 | 30 | let launch_error = "Dapp will start Pre-Sale at Timestamp " | |
31 | 31 | ||
32 | 32 | let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order." | |
33 | 33 | ||
34 | 34 | let presale_end_err = "Pre-Sale is over for this Round." | |
35 | 35 | ||
36 | 36 | let presale_not_end_err = "Pre-Sale is not over for this Round." | |
37 | 37 | ||
38 | 38 | 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." | |
39 | 39 | ||
40 | 40 | let refund_init_msg = "<h1>Refund Received Successfully!.</h1><br>" | |
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount,Allow_Refund) = { | |
44 | 44 | let StartTS = Presale_Start_TimeStamp | |
45 | 45 | let EndTS = Presale_End_TimeStamp | |
46 | 46 | let read_funding_round = match getInteger(this, "Current_Funding_Round") { | |
47 | 47 | case a: Int => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | 0 | |
51 | 51 | } | |
52 | 52 | let current_round = (read_funding_round + 1) | |
53 | 53 | if ((i.caller != controller_address)) | |
54 | 54 | then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it.")) | |
55 | 55 | else if ((lastBlock.timestamp > Presale_Start_TimeStamp)) | |
56 | 56 | then throw(expiredtserror) | |
57 | 57 | else if ((size(toString(Presale_Start_TimeStamp)) != 13)) | |
58 | 58 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
59 | 59 | else if ((size(toString(Presale_End_TimeStamp)) != 13)) | |
60 | 60 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
61 | 61 | else if ((1 > Token_Price)) | |
62 | 62 | then throw(priceerror) | |
63 | 63 | else if ((StartTS >= EndTS)) | |
64 | 64 | then throw(tserror) | |
65 | 65 | else if ((Soft_Cap_Amount > Hard_Cap_Amount)) | |
66 | 66 | then throw(caperror) | |
67 | 67 | 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)] | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(i) | |
73 | 73 | func PlacePresaleOrder (Enter_Presale_Round) = { | |
74 | 74 | let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
75 | 75 | let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
76 | 76 | let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
77 | 77 | let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
78 | 78 | let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
79 | 79 | let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Refund is not set for this Presale Round.") | |
80 | 80 | let WAVES = unit | |
81 | 81 | let currentKey = toBase58String(i.caller.bytes) | |
82 | 82 | let pmt = if ((size(i.payments) == 1)) | |
83 | 83 | then i.payments[0] | |
84 | 84 | else throw(pymterror) | |
85 | 85 | let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) { | |
86 | 86 | case a: Int => | |
87 | 87 | a | |
88 | 88 | case _ => | |
89 | 89 | 0 | |
90 | 90 | } | |
91 | 91 | let total_funds_collection = (read_funds_collection + pmt.amount) | |
92 | 92 | let read_auto_withdraw_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_auto_withdraw_txns")) { | |
93 | 93 | case a: Int => | |
94 | 94 | a | |
95 | 95 | case _ => | |
96 | 96 | 0 | |
97 | 97 | } | |
98 | 98 | let total_auto_withdraw_txns = (read_auto_withdraw_txns + 1) | |
99 | 99 | let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) { | |
100 | 100 | case a: Int => | |
101 | 101 | a | |
102 | 102 | case _ => | |
103 | 103 | 0 | |
104 | 104 | } | |
105 | 105 | let total_txns = (read_total_txns + 1) | |
106 | 106 | let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) { | |
107 | 107 | case a: Int => | |
108 | 108 | a | |
109 | 109 | case _ => | |
110 | 110 | 0 | |
111 | 111 | } | |
112 | 112 | let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount) | |
113 | 113 | let pending_softcap_status = (read_Soft_Cap_Amount - total_funds_collection) | |
114 | 114 | let pending_hardcap_status = (read_Hard_Cap_Amount - total_funds_collection) | |
115 | 115 | if (isDefined(pmt.assetId)) | |
116 | 116 | then throw(pymterror) | |
117 | 117 | else if ((read_round_token_price > pmt.amount)) | |
118 | 118 | then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]")) | |
119 | 119 | else if ((read_round_start_ts > lastBlock.timestamp)) | |
120 | 120 | then throw((launch_error + toString(read_round_start_ts))) | |
121 | 121 | else if ((lastBlock.timestamp > read_round_end_ts)) | |
122 | 122 | then throw(presale_end_err) | |
123 | 123 | else if (if ((pending_softcap_status > 0)) | |
124 | 124 | then (pending_hardcap_status > 0) | |
125 | 125 | else false) | |
126 | 126 | 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)] | |
127 | 127 | else if (if (if ((0 >= pending_softcap_status)) | |
128 | 128 | then (pending_hardcap_status > 0) | |
129 | 129 | else false) | |
130 | 130 | then (total_auto_withdraw_txns == 1) | |
131 | 131 | else false) | |
132 | 132 | 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)] | |
133 | 133 | else if (if (if ((0 >= pending_softcap_status)) | |
134 | 134 | then (pending_hardcap_status > 0) | |
135 | 135 | else false) | |
136 | 136 | then (total_auto_withdraw_txns > 1) | |
137 | 137 | else false) | |
138 | 138 | 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)] | |
139 | 139 | else if (if (if ((0 >= pending_softcap_status)) | |
140 | 140 | then (0 >= pending_hardcap_status) | |
141 | 141 | else false) | |
142 | 142 | then (total_auto_withdraw_txns == 1) | |
143 | 143 | else false) | |
144 | 144 | 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)] | |
145 | 145 | else if (if (if ((0 >= pending_softcap_status)) | |
146 | 146 | then (0 >= pending_hardcap_status) | |
147 | 147 | else false) | |
148 | 148 | then (total_auto_withdraw_txns > 1) | |
149 | 149 | else false) | |
150 | 150 | 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)] | |
151 | 151 | else throw("Error.") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Callable(i) | |
157 | 157 | func Refund (Enter_Presale_Round) = { | |
158 | 158 | let WAVES = unit | |
159 | 159 | let currentKey = toBase58String(i.caller.bytes) | |
160 | 160 | let read_Initiated_Height = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.") | |
161 | 161 | let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
162 | 162 | let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
163 | 163 | let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
164 | 164 | let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
165 | 165 | let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
166 | 166 | let read_total_funds_collection = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.") | |
167 | 167 | 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.") | |
168 | 168 | let read_Allow_Refund = valueOrErrorMessage(getBoolean(this, (toString(Enter_Presale_Round) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.") | |
169 | 169 | let pending_softcap_status = (read_Soft_Cap_Amount - read_total_funds_collection) | |
170 | 170 | let pending_hardcap_status = (read_Hard_Cap_Amount - read_total_funds_collection) | |
171 | 171 | let milliseconds = 1000 | |
172 | 172 | let minute = (60 * milliseconds) | |
173 | 173 | let round_time_difference = (read_round_end_ts - read_round_start_ts) | |
174 | 174 | let additional_safe_blocks = 10 | |
175 | 175 | let blockstimetomature = ((read_Initiated_Height + fraction(round_time_difference, 1, minute)) + additional_safe_blocks) | |
176 | 176 | let pending_refunds = (read_total_funds_collection - read_user_total_funds_deposited) | |
177 | 177 | if ((blockstimetomature > lastBlock.height)) | |
178 | 178 | then throw((((presale_not_end_err + " Please Wait Until ~") + toString(blockstimetomature)) + " Height is reached.")) | |
179 | 179 | else if ((read_Allow_Refund == false)) | |
180 | 180 | then throw(refund_err) | |
181 | 181 | else if ((read_user_total_funds_deposited == 0)) | |
182 | 182 | then throw("Refund has been Already Claimed by this Address.") | |
183 | 183 | else if (if ((pending_softcap_status > 0)) | |
184 | 184 | then (pending_hardcap_status > 0) | |
185 | 185 | else false) | |
186 | 186 | 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)] | |
187 | 187 | else if (if ((0 >= pending_softcap_status)) | |
188 | 188 | then (pending_hardcap_status > 0) | |
189 | 189 | else false) | |
190 | 190 | then throw("SoftCap Already Reached for this Round. Please Click on 'Claim Tokens' Function to Receive Your Tokens.") | |
191 | 191 | else if (if ((0 >= pending_softcap_status)) | |
192 | 192 | then (0 >= pending_hardcap_status) | |
193 | 193 | else false) | |
194 | 194 | then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
195 | 195 | else throw("Wrong Entry Found.") | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(i) | |
201 | 201 | func Claim_Tokens (Enter_Presale_Round) = { | |
202 | 202 | let currentKey = toBase58String(i.caller.bytes) | |
203 | 203 | let scale = 100000000 | |
204 | 204 | let read_soft_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_softcap_status")), "SoftCap Status not Found for this Presale Round.") | |
205 | 205 | let read_hard_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_hardcap_status")), "HardCap Status not Found for this Presale Round.") | |
206 | 206 | let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
207 | 207 | 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.") | |
208 | 208 | let calculate_total_tokens = fraction(read_user_total_funds_deposited, scale, read_round_token_price) | |
209 | 209 | let user_tokens_claim_amount = fraction(read_user_total_funds_deposited, scale, read_round_token_price) | |
210 | 210 | let read_total_tokens_claimed = match getInteger(this, (toString(Enter_Presale_Round) + "_Tokens_Claimed")) { | |
211 | 211 | case a: Int => | |
212 | 212 | a | |
213 | 213 | case _ => | |
214 | 214 | 0 | |
215 | 215 | } | |
216 | 216 | let total_tokens_claimed = (read_total_tokens_claimed + user_tokens_claim_amount) | |
217 | 217 | let pending_tokens_claimed = (calculate_total_tokens - user_tokens_claim_amount) | |
218 | 218 | if ((read_soft_cap_status == "No")) | |
219 | 219 | then throw("No Tokens Claim,as SoftCap Amount didn't reach numbers for this Round.") | |
220 | 220 | else if (if ((read_soft_cap_status == "Yes")) | |
221 | 221 | then true | |
222 | 222 | 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)] | |
224 | 224 | else throw("Wrong Entry Found.") | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | ||
229 | 229 | @Callable(i) | |
230 | 230 | func Mint_BML (TokenName,TokenDescription) = { | |
231 | 231 | let asset = Issue(TokenName, TokenDescription, 1, 8, true) | |
232 | 232 | let assetId = calculateAssetId(asset) | |
233 | 233 | let read_counter = match getInteger(this, "Asset_Issue_Counter") { | |
234 | 234 | case a: Int => | |
235 | 235 | a | |
236 | 236 | case _ => | |
237 | 237 | 0 | |
238 | 238 | } | |
239 | 239 | let read_total_counter = (read_counter + 1) | |
240 | 240 | if ((i.caller != controller_address)) | |
241 | 241 | then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it.")) | |
242 | 242 | else if ((read_total_counter > 1)) | |
243 | 243 | then throw("BML Token Already Issued.") | |
244 | 244 | else [asset, StringEntry("BML_TokenID", toBase58String(assetId)), IntegerEntry("Asset_Issue_Counter", read_total_counter), StringEntry("message", token_issue_init_msg), Burn(assetId, 1)] | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Verifier(tx) | |
249 | 249 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
250 | 250 |
github/deemru/w8io/026f985 63.37 ms ◑