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