tx · 3taCAJ78erHombrzPNYjUPvXdHwsr5LR8dG9HQdyTnCJ 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.03000000 Waves 2023.08.14 19:09 [2710451] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "3taCAJ78erHombrzPNYjUPvXdHwsr5LR8dG9HQdyTnCJ", "fee": 3000000, "feeAssetId": null, "timestamp": 1692029439514, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "2qEbLhoKp1xYDECQKY312LLeDPGa7bhvp1GeMCAYuWjVMwJCqUN58XXqWs5D7BLbP35fspsKdeb1VSwtbDiEiBbU" ], "script": "base64:AAIFAAAAAAAAACEIAhIICgYBAQEBAQQSAwoBARIDCgEBEgMKAQESBAoCCAgAAAATAAAAABR0b2tlbl9pc3N1ZV9pbml0X21zZwIAAAAfQk1MIFRva2VuIENyZWF0ZWQgU3VjY2Vzc2Z1bGx5LgAAAAARdG9rZW5faXNzdWVfZXJyb3ICAAAAWlRoZSBCTUwgdG9rZW4gY291bGQgbm90IGJlIGZvdW5kLiBQbGVhc2UgdXNlIHRoZSBDcmVhdGVfQk1MIGZ1bmN0aW9uIHRvIGlzc3VlIGEgQk1MIHRva2VuLgAAAAALQk1MX1Rva2VuSUQJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAtCTUxfVG9rZW5JRAUAAAARdG9rZW5faXNzdWVfZXJyb3IAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzC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AAB2Fzc2V0SWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE0Fzc2V0X0lzc3VlX0NvdW50ZXIFAAAAEnJlYWRfdG90YWxfY291bnRlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlBQAAABR0b2tlbl9pc3N1ZV9pbml0X21zZwkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5G3H26g==", "height": 2710451, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B43og6SiTYHqbisNZEPafihSV5cr3sQ9EJK58g237eiV Next: 9oaRmRm5M7ZuL47Z31MwyMuxq8ZWpy6MABWxedxe97Ld Diff:
Old | New | Differences | |
---|---|---|---|
222 | 222 | 0 | |
223 | 223 | } | |
224 | 224 | let total_tokens_claimed = (read_total_tokens_claimed + user_tokens_claim_amount) | |
225 | - | let read_token_claim_counter = match getInteger(this, ((toString(Enter_Presale_Round) + "_Tokens_Claimed_") + currentKey)) { | |
225 | + | let read_token_claim_counter = match getInteger(this, ((toString(Enter_Presale_Round) + "_Tokens_Claimed_Counter_") + currentKey)) { | |
226 | 226 | case a: Int => | |
227 | 227 | a | |
228 | 228 | case _ => |
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_Initiated_Height = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.") | |
205 | 205 | let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
206 | 206 | let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
207 | 207 | let read_soft_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_softcap_status")), "SoftCap Status not Found for this Presale Round.") | |
208 | 208 | let read_hard_cap_status = valueOrErrorMessage(getString(this, (toString(Enter_Presale_Round) + "_hardcap_status")), "HardCap Status not Found for this Presale Round.") | |
209 | 209 | let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
210 | 210 | 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.") | |
211 | 211 | let calculate_total_tokens = fraction(read_user_total_funds_deposited, scale, read_round_token_price) | |
212 | 212 | let user_tokens_claim_amount = fraction(read_user_total_funds_deposited, scale, read_round_token_price) | |
213 | 213 | let milliseconds = 1000 | |
214 | 214 | let minute = (60 * milliseconds) | |
215 | 215 | let round_time_difference = (read_round_end_ts - read_round_start_ts) | |
216 | 216 | let additional_safe_blocks = 10 | |
217 | 217 | let blockstimetomature = ((read_Initiated_Height + fraction(round_time_difference, 1, minute)) + additional_safe_blocks) | |
218 | 218 | let read_total_tokens_claimed = match getInteger(this, (toString(Enter_Presale_Round) + "_Tokens_Claimed")) { | |
219 | 219 | case a: Int => | |
220 | 220 | a | |
221 | 221 | case _ => | |
222 | 222 | 0 | |
223 | 223 | } | |
224 | 224 | let total_tokens_claimed = (read_total_tokens_claimed + user_tokens_claim_amount) | |
225 | - | let read_token_claim_counter = match getInteger(this, ((toString(Enter_Presale_Round) + "_Tokens_Claimed_") + currentKey)) { | |
225 | + | let read_token_claim_counter = match getInteger(this, ((toString(Enter_Presale_Round) + "_Tokens_Claimed_Counter_") + currentKey)) { | |
226 | 226 | case a: Int => | |
227 | 227 | a | |
228 | 228 | case _ => | |
229 | 229 | 0 | |
230 | 230 | } | |
231 | 231 | let total_claim_counter = (read_token_claim_counter + 1) | |
232 | 232 | let pending_tokens_claimed = (calculate_total_tokens - user_tokens_claim_amount) | |
233 | 233 | if ((blockstimetomature > lastBlock.height)) | |
234 | 234 | then throw((((presale_not_end_err + " Please Wait Until ~") + toString(blockstimetomature)) + " Height is reached.")) | |
235 | 235 | else if ((read_soft_cap_status == "No")) | |
236 | 236 | then throw("No Tokens Claim,as SoftCap Amount didn't reach numbers for this Round.") | |
237 | 237 | else if ((total_claim_counter > 1)) | |
238 | 238 | then throw((currentKey + " Address has Already Claimed their Token for this round.")) | |
239 | 239 | else if (if ((read_soft_cap_status == "Yes")) | |
240 | 240 | then true | |
241 | 241 | else (read_hard_cap_status == "Yes")) | |
242 | 242 | then [IntegerEntry((toString(Enter_Presale_Round) + "_Tokens_Claimed"), total_tokens_claimed), IntegerEntry((toString(Enter_Presale_Round) + "_Pending_Tokens_To_Claim"), pending_tokens_claimed), IntegerEntry(((toString(Enter_Presale_Round) + "_Tokens_Claimed_") + currentKey), total_claim_counter), Reissue(BML_TokenID, user_tokens_claim_amount, true), ScriptTransfer(addressFromStringValue(currentKey), user_tokens_claim_amount, BML_TokenID)] | |
243 | 243 | else throw("Wrong Entry Found.") | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(i) | |
249 | 249 | func Mint_BML (TokenName,TokenDescription) = { | |
250 | 250 | let asset = Issue(TokenName, TokenDescription, 1, 8, true) | |
251 | 251 | let assetId = calculateAssetId(asset) | |
252 | 252 | let read_counter = match getInteger(this, "Asset_Issue_Counter") { | |
253 | 253 | case a: Int => | |
254 | 254 | a | |
255 | 255 | case _ => | |
256 | 256 | 0 | |
257 | 257 | } | |
258 | 258 | let read_total_counter = (read_counter + 1) | |
259 | 259 | if ((i.caller != controller_address)) | |
260 | 260 | then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it.")) | |
261 | 261 | else if ((read_total_counter > 1)) | |
262 | 262 | then throw("BML Token Already Issued.") | |
263 | 263 | else [asset, StringEntry("BML_TokenID", toBase58String(assetId)), IntegerEntry("Asset_Issue_Counter", read_total_counter), StringEntry("message", token_issue_init_msg), Burn(assetId, 1)] | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | @Verifier(tx) | |
268 | 268 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
269 | 269 |
github/deemru/w8io/026f985 69.01 ms ◑