tx · HCNGDGyGfzRhMqLDS4WXtoEfiFqhQkHfRe9kBw74TiTS 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.02000000 Waves 2023.08.10 12:13 [2704291] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "HCNGDGyGfzRhMqLDS4WXtoEfiFqhQkHfRe9kBw74TiTS", "fee": 2000000, "feeAssetId": null, "timestamp": 1691658802523, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "2jKMKmT2GjtMatnzNeHQ2KUBsC4a1qnKZqhgRxStG8vUPDSwhLKHAoPr2YFxGGfi5dcuB5J4DU9TPRE7wnnd3Seu" ], "script": "base64:AAIFAAAAAAAAABYIAhIICgYBAQEBAQQSAwoBARIDCgEBAAAAEAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAA5leHBpcmVkdHNlcnJvcgIAAAA4U3RhcnQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBsYXN0IGJsb2NrIFRpbWVzdGFtcC4AAAAAB3RzZXJyb3ICAAAAPEVuZCBUaW1lc3RhbXAgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIGVxdWFsIHRvIFN0YXJ0IFRpbWVzdGFtcAAAAAAKcHJpY2VlcnJvcgIAAAAmVG9rZW4gUHJpY2UgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIFplcm8AAAAACGNhcGVycm9yAgAAADNT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AAAEFAAAAE0VudGVyX1ByZXNhbGVfUm91bmQCAAAAAV8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAPcmVmdW5kX2luaXRfbXNnBQAAAANuaWwDAwkAAGcAAAACAAAAAAAAAAAABQAAABZwZW5kaW5nX3NvZnRjYXBfc3RhdHVzCQAAZgAAAAIFAAAAFnBlbmRpbmdfaGFyZGNhcF9zdGF0dXMAAAAAAAAAAAAHCQAAAgAAAAECAAAAVVNvZnRDYXAgQWxyZWFkeSBSZWFjaGVkIGZvciB0aGlzIFJvdW5kLiBQbGVhc2UgQ2xpY2sgb24gQ2xhaW0gdG8gUmVjZWl2ZSBZb3VyIFRva2Vucy4DAwkAAGcAAAACAAAAAAAAAAAABQAAABZwZW5kaW5nX3NvZnRjYXBfc3RhdHVzCQAAZwAAAAIAAAAAAAAAAAAFAAAAFnBlbmRpbmdfaGFyZGNhcF9zdGF0dXMHCQAAAgAAAAECAAAAXlNvZnRDYXAgYW5kIEhhcmQgQWxyZWFkeSBSZWFjaGVkIGZvciB0aGlzIFJvdW5kLiBQbGVhc2UgQ2xpY2sgb24gQ2xhaW0gdG8gUmVjZWl2ZSBZb3VyIFRva2Vucy4JAAACAAAAAQIAAAASV3JvbmcgRW50cnkgRm91bmQuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnskupz", "height": 2704291, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GKfLFVDhVSuAa8bw2jwUviJ7exK4uDRZKx6JaBJjikg4 Next: 2NZJ5a8aN69ict6SsC24YpLUn5VXkghw5EQxosjDdxju Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "Start Timestamp can't be less than last block Timestamp." | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "End Timestamp can't be less than or equal to Start Timestamp" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "Token Price can't be less than or Zero" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Soft Cap Amount can't be more than Hard Cap Amount." | |
15 | 15 | ||
16 | - | let g = "<h1> | |
16 | + | let g = "<h1>Order Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "<h1> | |
18 | + | let h = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
19 | 19 | ||
20 | 20 | let i = "DApp Need WAVES Token as Attach payment[1]." | |
21 | 21 | ||
31 | 31 | ||
32 | 32 | let o = "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 | - | @Callable(p) | |
35 | - | func SetPreSaleParameters (q,r,s,t,u,v) = { | |
36 | - | let w = q | |
34 | + | let p = "<h1>Refund Received Successfully!.</h1><br>" | |
35 | + | ||
36 | + | @Callable(q) | |
37 | + | func SetPreSaleParameters (r,s,t,u,v,w) = { | |
37 | 38 | let x = r | |
38 | - | let y = { | |
39 | - | let z = getInteger(this, "Current_Funding_Round") | |
40 | - | if ($isInstanceOf(z, "Int")) | |
39 | + | let y = s | |
40 | + | let z = { | |
41 | + | let A = getInteger(this, "Current_Funding_Round") | |
42 | + | if ($isInstanceOf(A, "Int")) | |
41 | 43 | then { | |
42 | - | let | |
43 | - | | |
44 | + | let B = A | |
45 | + | B | |
44 | 46 | } | |
45 | 47 | else 0 | |
46 | 48 | } | |
47 | - | let | |
48 | - | if (( | |
49 | + | let C = (z + 1) | |
50 | + | if ((q.caller != b)) | |
49 | 51 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
50 | - | else if (( | |
51 | - | then throw( | |
52 | + | else if ((r > lastBlock.timestamp)) | |
53 | + | then throw(c) | |
52 | 54 | else if ((size(toString(r)) != 13)) | |
53 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
54 | - | else if ((1 > s)) | |
55 | - | then throw(d) | |
56 | - | else if ((w >= x)) | |
57 | - | then throw(c) | |
58 | - | else if ((t > u)) | |
59 | - | then throw(e) | |
60 | - | else [IntegerEntry("Current_Funding_Round", B), IntegerEntry((toString(B) + "_Presale_Start_TimeStamp"), w), IntegerEntry((toString(B) + "_Presale_End_TimeStamp"), x), IntegerEntry((toString(B) + "_Token_Price"), s), IntegerEntry((toString(B) + "_Soft_Cap_Amount"), t), IntegerEntry((toString(B) + "_Hard_Cap_Amount"), u), IntegerEntry((toString(B) + "_Initiated_Height"), height), BooleanEntry((toString(B) + "_Allow_Refund"), v), StringEntry("message", g)] | |
55 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
56 | + | else if ((size(toString(s)) != 13)) | |
57 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
58 | + | else if ((1 > t)) | |
59 | + | then throw(e) | |
60 | + | else if ((x >= y)) | |
61 | + | then throw(d) | |
62 | + | else if ((u > v)) | |
63 | + | then throw(f) | |
64 | + | else [IntegerEntry("Current_Funding_Round", C), IntegerEntry((toString(C) + "_Presale_Start_TimeStamp"), x), IntegerEntry((toString(C) + "_Presale_End_TimeStamp"), y), IntegerEntry((toString(C) + "_Token_Price"), t), IntegerEntry((toString(C) + "_Soft_Cap_Amount"), u), IntegerEntry((toString(C) + "_Hard_Cap_Amount"), v), IntegerEntry((toString(C) + "_Initiated_Height"), height), BooleanEntry((toString(C) + "_Allow_Refund"), w), StringEntry("message", h)] | |
61 | 65 | } | |
62 | 66 | ||
63 | 67 | ||
64 | 68 | ||
65 | - | @Callable( | |
66 | - | func PlacePresaleOrder ( | |
67 | - | let | |
68 | - | let | |
69 | - | let | |
70 | - | let | |
71 | - | let | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | let | |
76 | - | then | |
69 | + | @Callable(q) | |
70 | + | func PlacePresaleOrder (D) = { | |
71 | + | let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
72 | + | let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
73 | + | let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
74 | + | let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
75 | + | let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
76 | + | let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Refund is not set for this Presale Round.") | |
77 | + | let K = unit | |
78 | + | let L = toBase58String(q.caller.bytes) | |
79 | + | let M = if ((size(q.payments) == 1)) | |
80 | + | then q.payments[0] | |
77 | 81 | else throw(i) | |
78 | - | let | |
79 | - | let | |
80 | - | if ($isInstanceOf( | |
82 | + | let N = { | |
83 | + | let A = getInteger(this, (toString(D) + "_Funds_Collection")) | |
84 | + | if ($isInstanceOf(A, "Int")) | |
81 | 85 | then { | |
82 | - | let | |
83 | - | | |
86 | + | let B = A | |
87 | + | B | |
84 | 88 | } | |
85 | 89 | else 0 | |
86 | 90 | } | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
91 | + | let O = (N + M.amount) | |
92 | + | let P = { | |
93 | + | let A = getInteger(this, (toString(D) + "_total_txns")) | |
94 | + | if ($isInstanceOf(A, "Int")) | |
91 | 95 | then { | |
92 | - | let | |
93 | - | | |
96 | + | let B = A | |
97 | + | B | |
94 | 98 | } | |
95 | 99 | else 0 | |
96 | 100 | } | |
97 | - | let | |
98 | - | let | |
99 | - | let | |
100 | - | if ($isInstanceOf( | |
101 | + | let Q = (P + 1) | |
102 | + | let R = { | |
103 | + | let A = getInteger(this, ((toString(D) + "_") + L)) | |
104 | + | if ($isInstanceOf(A, "Int")) | |
101 | 105 | then { | |
102 | - | let | |
103 | - | | |
106 | + | let B = A | |
107 | + | B | |
104 | 108 | } | |
105 | 109 | else 0 | |
106 | 110 | } | |
107 | - | let | |
108 | - | let | |
109 | - | let | |
110 | - | if (isDefined( | |
111 | + | let S = (R + M.amount) | |
112 | + | let T = (H - O) | |
113 | + | let U = (I - O) | |
114 | + | if (isDefined(M.assetId)) | |
111 | 115 | then throw(i) | |
112 | - | else if (( | |
113 | - | then throw((((j + "[") + toString( | |
114 | - | else if (( | |
115 | - | then throw((k + toString( | |
116 | - | else if ((lastBlock.timestamp > | |
116 | + | else if ((E > M.amount)) | |
117 | + | then throw((((j + "[") + toString(E)) + "/10^8.]")) | |
118 | + | else if ((F > lastBlock.timestamp)) | |
119 | + | then throw((k + toString(F))) | |
120 | + | else if ((lastBlock.timestamp > G)) | |
117 | 121 | then throw(m) | |
118 | - | else if (if (( | |
119 | - | then ( | |
122 | + | else if (if ((T > 0)) | |
123 | + | then (U > 0) | |
120 | 124 | else false) | |
121 | - | then [IntegerEntry((toString( | |
122 | - | else if (if ((0 >= | |
123 | - | then ( | |
125 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "No"), StringEntry((toString(D) + "_hardcap_status"), "No"), BooleanEntry((toString(D) + "_Allow_Refund"), J), StringEntry("message", g)] | |
126 | + | else if (if ((0 >= T)) | |
127 | + | then (U > 0) | |
124 | 128 | else false) | |
125 | - | then [IntegerEntry((toString( | |
126 | - | else if (if ((0 >= | |
127 | - | then (0 >= | |
129 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "Yes"), StringEntry((toString(D) + "_hardcap_status"), "No"), BooleanEntry((toString(D) + "_Allow_Refund"), false), StringEntry("message", g)] | |
130 | + | else if (if ((0 >= T)) | |
131 | + | then (0 >= U) | |
128 | 132 | else false) | |
129 | - | then [IntegerEntry((toString( | |
133 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "Yes"), StringEntry((toString(D) + "_hardcap_status"), "Yes"), BooleanEntry((toString(D) + "_Allow_Refund"), false), StringEntry("message", g)] | |
130 | 134 | else throw("Error.") | |
131 | 135 | } | |
132 | 136 | ||
133 | 137 | ||
134 | 138 | ||
135 | - | @Callable( | |
136 | - | func Refund ( | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | if (( | |
157 | - | then throw((((n + " Please Wait Until ~") + toString( | |
158 | - | else if (( | |
139 | + | @Callable(q) | |
140 | + | func Refund (D) = { | |
141 | + | let K = unit | |
142 | + | let L = toBase58String(q.caller.bytes) | |
143 | + | let V = valueOrErrorMessage(getInteger(this, (toString(D) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.") | |
144 | + | let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
145 | + | let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
146 | + | let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
147 | + | let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
148 | + | let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
149 | + | let W = valueOrErrorMessage(getInteger(this, (toString(D) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.") | |
150 | + | let R = valueOrErrorMessage(getInteger(this, ((toString(D) + "_") + L)), "No Deposit was made by this Address for this Presale Round.") | |
151 | + | let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.") | |
152 | + | let T = (H - W) | |
153 | + | let U = (I - W) | |
154 | + | let X = 1000 | |
155 | + | let Y = (60 * X) | |
156 | + | let Z = (G - F) | |
157 | + | let aa = 10 | |
158 | + | let ab = ((V + fraction(Z, 1, Y)) + aa) | |
159 | + | let ac = (W - R) | |
160 | + | if ((ab > lastBlock.height)) | |
161 | + | then throw((((n + " Please Wait Until ~") + toString(ab)) + " Height is reached.")) | |
162 | + | else if ((J == false)) | |
159 | 163 | then throw(o) | |
160 | - | else if (( | |
164 | + | else if ((R == 0)) | |
161 | 165 | then throw("Refund has been Already Claimed by this Address.") | |
162 | - | else if (if (( | |
163 | - | then ( | |
166 | + | else if (if ((T > 0)) | |
167 | + | then (U > 0) | |
164 | 168 | else false) | |
165 | - | then [ScriptTransfer(addressFromStringValue( | |
166 | - | else if (if ((0 >= | |
167 | - | then ( | |
169 | + | then [ScriptTransfer(addressFromStringValue(L), R, K), IntegerEntry(((toString(D) + "_") + "Pending_Refund"), ac), IntegerEntry(((toString(D) + "_") + L), 0), StringEntry("message", p)] | |
170 | + | else if (if ((0 >= T)) | |
171 | + | then (U > 0) | |
168 | 172 | else false) | |
169 | 173 | then throw("SoftCap Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
170 | - | else if (if ((0 >= | |
171 | - | then (0 >= | |
174 | + | else if (if ((0 >= T)) | |
175 | + | then (0 >= U) | |
172 | 176 | else false) | |
173 | 177 | then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
174 | 178 | else throw("Wrong Entry Found.") | |
175 | 179 | } | |
176 | 180 | ||
177 | 181 | ||
178 | - | @Verifier( | |
179 | - | func | |
182 | + | @Verifier(ad) | |
183 | + | func ae () = sigVerify(ad.bodyBytes, ad.proofs[0], ad.senderPublicKey) | |
180 | 184 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | 6 | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "Start Timestamp can't be less than last block Timestamp." | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "End Timestamp can't be less than or equal to Start Timestamp" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "Token Price can't be less than or Zero" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Soft Cap Amount can't be more than Hard Cap Amount." | |
15 | 15 | ||
16 | - | let g = "<h1> | |
16 | + | let g = "<h1>Order Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "<h1> | |
18 | + | let h = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
19 | 19 | ||
20 | 20 | let i = "DApp Need WAVES Token as Attach payment[1]." | |
21 | 21 | ||
22 | 22 | let j = "Attached payment[1] is less than token price " | |
23 | 23 | ||
24 | 24 | let k = "Dapp will start Pre-Sale at Timestamp " | |
25 | 25 | ||
26 | 26 | let l = "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 m = "Pre-Sale is over for this Round." | |
29 | 29 | ||
30 | 30 | let n = "Pre-Sale is not over for this Round." | |
31 | 31 | ||
32 | 32 | let o = "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 | - | @Callable(p) | |
35 | - | func SetPreSaleParameters (q,r,s,t,u,v) = { | |
36 | - | let w = q | |
34 | + | let p = "<h1>Refund Received Successfully!.</h1><br>" | |
35 | + | ||
36 | + | @Callable(q) | |
37 | + | func SetPreSaleParameters (r,s,t,u,v,w) = { | |
37 | 38 | let x = r | |
38 | - | let y = { | |
39 | - | let z = getInteger(this, "Current_Funding_Round") | |
40 | - | if ($isInstanceOf(z, "Int")) | |
39 | + | let y = s | |
40 | + | let z = { | |
41 | + | let A = getInteger(this, "Current_Funding_Round") | |
42 | + | if ($isInstanceOf(A, "Int")) | |
41 | 43 | then { | |
42 | - | let | |
43 | - | | |
44 | + | let B = A | |
45 | + | B | |
44 | 46 | } | |
45 | 47 | else 0 | |
46 | 48 | } | |
47 | - | let | |
48 | - | if (( | |
49 | + | let C = (z + 1) | |
50 | + | if ((q.caller != b)) | |
49 | 51 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
50 | - | else if (( | |
51 | - | then throw( | |
52 | + | else if ((r > lastBlock.timestamp)) | |
53 | + | then throw(c) | |
52 | 54 | else if ((size(toString(r)) != 13)) | |
53 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
54 | - | else if ((1 > s)) | |
55 | - | then throw(d) | |
56 | - | else if ((w >= x)) | |
57 | - | then throw(c) | |
58 | - | else if ((t > u)) | |
59 | - | then throw(e) | |
60 | - | else [IntegerEntry("Current_Funding_Round", B), IntegerEntry((toString(B) + "_Presale_Start_TimeStamp"), w), IntegerEntry((toString(B) + "_Presale_End_TimeStamp"), x), IntegerEntry((toString(B) + "_Token_Price"), s), IntegerEntry((toString(B) + "_Soft_Cap_Amount"), t), IntegerEntry((toString(B) + "_Hard_Cap_Amount"), u), IntegerEntry((toString(B) + "_Initiated_Height"), height), BooleanEntry((toString(B) + "_Allow_Refund"), v), StringEntry("message", g)] | |
55 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
56 | + | else if ((size(toString(s)) != 13)) | |
57 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
58 | + | else if ((1 > t)) | |
59 | + | then throw(e) | |
60 | + | else if ((x >= y)) | |
61 | + | then throw(d) | |
62 | + | else if ((u > v)) | |
63 | + | then throw(f) | |
64 | + | else [IntegerEntry("Current_Funding_Round", C), IntegerEntry((toString(C) + "_Presale_Start_TimeStamp"), x), IntegerEntry((toString(C) + "_Presale_End_TimeStamp"), y), IntegerEntry((toString(C) + "_Token_Price"), t), IntegerEntry((toString(C) + "_Soft_Cap_Amount"), u), IntegerEntry((toString(C) + "_Hard_Cap_Amount"), v), IntegerEntry((toString(C) + "_Initiated_Height"), height), BooleanEntry((toString(C) + "_Allow_Refund"), w), StringEntry("message", h)] | |
61 | 65 | } | |
62 | 66 | ||
63 | 67 | ||
64 | 68 | ||
65 | - | @Callable( | |
66 | - | func PlacePresaleOrder ( | |
67 | - | let | |
68 | - | let | |
69 | - | let | |
70 | - | let | |
71 | - | let | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | let | |
76 | - | then | |
69 | + | @Callable(q) | |
70 | + | func PlacePresaleOrder (D) = { | |
71 | + | let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
72 | + | let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
73 | + | let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
74 | + | let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
75 | + | let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
76 | + | let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Refund is not set for this Presale Round.") | |
77 | + | let K = unit | |
78 | + | let L = toBase58String(q.caller.bytes) | |
79 | + | let M = if ((size(q.payments) == 1)) | |
80 | + | then q.payments[0] | |
77 | 81 | else throw(i) | |
78 | - | let | |
79 | - | let | |
80 | - | if ($isInstanceOf( | |
82 | + | let N = { | |
83 | + | let A = getInteger(this, (toString(D) + "_Funds_Collection")) | |
84 | + | if ($isInstanceOf(A, "Int")) | |
81 | 85 | then { | |
82 | - | let | |
83 | - | | |
86 | + | let B = A | |
87 | + | B | |
84 | 88 | } | |
85 | 89 | else 0 | |
86 | 90 | } | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
91 | + | let O = (N + M.amount) | |
92 | + | let P = { | |
93 | + | let A = getInteger(this, (toString(D) + "_total_txns")) | |
94 | + | if ($isInstanceOf(A, "Int")) | |
91 | 95 | then { | |
92 | - | let | |
93 | - | | |
96 | + | let B = A | |
97 | + | B | |
94 | 98 | } | |
95 | 99 | else 0 | |
96 | 100 | } | |
97 | - | let | |
98 | - | let | |
99 | - | let | |
100 | - | if ($isInstanceOf( | |
101 | + | let Q = (P + 1) | |
102 | + | let R = { | |
103 | + | let A = getInteger(this, ((toString(D) + "_") + L)) | |
104 | + | if ($isInstanceOf(A, "Int")) | |
101 | 105 | then { | |
102 | - | let | |
103 | - | | |
106 | + | let B = A | |
107 | + | B | |
104 | 108 | } | |
105 | 109 | else 0 | |
106 | 110 | } | |
107 | - | let | |
108 | - | let | |
109 | - | let | |
110 | - | if (isDefined( | |
111 | + | let S = (R + M.amount) | |
112 | + | let T = (H - O) | |
113 | + | let U = (I - O) | |
114 | + | if (isDefined(M.assetId)) | |
111 | 115 | then throw(i) | |
112 | - | else if (( | |
113 | - | then throw((((j + "[") + toString( | |
114 | - | else if (( | |
115 | - | then throw((k + toString( | |
116 | - | else if ((lastBlock.timestamp > | |
116 | + | else if ((E > M.amount)) | |
117 | + | then throw((((j + "[") + toString(E)) + "/10^8.]")) | |
118 | + | else if ((F > lastBlock.timestamp)) | |
119 | + | then throw((k + toString(F))) | |
120 | + | else if ((lastBlock.timestamp > G)) | |
117 | 121 | then throw(m) | |
118 | - | else if (if (( | |
119 | - | then ( | |
122 | + | else if (if ((T > 0)) | |
123 | + | then (U > 0) | |
120 | 124 | else false) | |
121 | - | then [IntegerEntry((toString( | |
122 | - | else if (if ((0 >= | |
123 | - | then ( | |
125 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "No"), StringEntry((toString(D) + "_hardcap_status"), "No"), BooleanEntry((toString(D) + "_Allow_Refund"), J), StringEntry("message", g)] | |
126 | + | else if (if ((0 >= T)) | |
127 | + | then (U > 0) | |
124 | 128 | else false) | |
125 | - | then [IntegerEntry((toString( | |
126 | - | else if (if ((0 >= | |
127 | - | then (0 >= | |
129 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "Yes"), StringEntry((toString(D) + "_hardcap_status"), "No"), BooleanEntry((toString(D) + "_Allow_Refund"), false), StringEntry("message", g)] | |
130 | + | else if (if ((0 >= T)) | |
131 | + | then (0 >= U) | |
128 | 132 | else false) | |
129 | - | then [IntegerEntry((toString( | |
133 | + | then [IntegerEntry((toString(D) + "_Funds_Collection"), O), IntegerEntry(((toString(D) + "_") + L), S), IntegerEntry((toString(D) + "_total_txns"), Q), IntegerEntry((toString(D) + "_pending_softcap_status"), T), IntegerEntry((toString(D) + "_pending_hardcap_status"), U), StringEntry((toString(D) + "_softcap_status"), "Yes"), StringEntry((toString(D) + "_hardcap_status"), "Yes"), BooleanEntry((toString(D) + "_Allow_Refund"), false), StringEntry("message", g)] | |
130 | 134 | else throw("Error.") | |
131 | 135 | } | |
132 | 136 | ||
133 | 137 | ||
134 | 138 | ||
135 | - | @Callable( | |
136 | - | func Refund ( | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | if (( | |
157 | - | then throw((((n + " Please Wait Until ~") + toString( | |
158 | - | else if (( | |
139 | + | @Callable(q) | |
140 | + | func Refund (D) = { | |
141 | + | let K = unit | |
142 | + | let L = toBase58String(q.caller.bytes) | |
143 | + | let V = valueOrErrorMessage(getInteger(this, (toString(D) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.") | |
144 | + | let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
145 | + | let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
146 | + | let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
147 | + | let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
148 | + | let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
149 | + | let W = valueOrErrorMessage(getInteger(this, (toString(D) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.") | |
150 | + | let R = valueOrErrorMessage(getInteger(this, ((toString(D) + "_") + L)), "No Deposit was made by this Address for this Presale Round.") | |
151 | + | let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.") | |
152 | + | let T = (H - W) | |
153 | + | let U = (I - W) | |
154 | + | let X = 1000 | |
155 | + | let Y = (60 * X) | |
156 | + | let Z = (G - F) | |
157 | + | let aa = 10 | |
158 | + | let ab = ((V + fraction(Z, 1, Y)) + aa) | |
159 | + | let ac = (W - R) | |
160 | + | if ((ab > lastBlock.height)) | |
161 | + | then throw((((n + " Please Wait Until ~") + toString(ab)) + " Height is reached.")) | |
162 | + | else if ((J == false)) | |
159 | 163 | then throw(o) | |
160 | - | else if (( | |
164 | + | else if ((R == 0)) | |
161 | 165 | then throw("Refund has been Already Claimed by this Address.") | |
162 | - | else if (if (( | |
163 | - | then ( | |
166 | + | else if (if ((T > 0)) | |
167 | + | then (U > 0) | |
164 | 168 | else false) | |
165 | - | then [ScriptTransfer(addressFromStringValue( | |
166 | - | else if (if ((0 >= | |
167 | - | then ( | |
169 | + | then [ScriptTransfer(addressFromStringValue(L), R, K), IntegerEntry(((toString(D) + "_") + "Pending_Refund"), ac), IntegerEntry(((toString(D) + "_") + L), 0), StringEntry("message", p)] | |
170 | + | else if (if ((0 >= T)) | |
171 | + | then (U > 0) | |
168 | 172 | else false) | |
169 | 173 | then throw("SoftCap Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
170 | - | else if (if ((0 >= | |
171 | - | then (0 >= | |
174 | + | else if (if ((0 >= T)) | |
175 | + | then (0 >= U) | |
172 | 176 | else false) | |
173 | 177 | then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
174 | 178 | else throw("Wrong Entry Found.") | |
175 | 179 | } | |
176 | 180 | ||
177 | 181 | ||
178 | - | @Verifier( | |
179 | - | func | |
182 | + | @Verifier(ad) | |
183 | + | func ae () = sigVerify(ad.bodyBytes, ad.proofs[0], ad.senderPublicKey) | |
180 | 184 |
github/deemru/w8io/169f3d6 92.72 ms ◑