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