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