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:AAIFAAAAAAAAABYIAhIICgYBAQEBAQQSAwoBARIDCgEBAAAAEAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAA5leHBpcmVkdHNlcnJvcgIAAAA4U3RhcnQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBsYXN0IGJsb2NrIFRpbWVzdGFtcC4AAAAAB3RzZXJyb3ICAAAAPEVuZCBUaW1lc3RhbXAgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIGVxdWFsIHRvIFN0YXJ0IFRpbWVzdGFtcAAAAAAKcHJpY2VlcnJvcgIAAAAmVG9rZW4gUHJpY2UgY2FuJ3QgYmUgbGVzcyB0aGFuIG9yIFplcm8AAAAACGNhcGVycm9yAgAAADN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AAIJAAEsAAAAAgkAAaQAAAABBQAAABNFbnRlcl9QcmVzYWxlX1JvdW5kAgAAAAFfBQAAAApjdXJyZW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UFAAAAD3JlZnVuZF9pbml0X21zZwUAAAADbmlsAwMJAABnAAAAAgAAAAAAAAAAAAUAAAAWcGVuZGluZ19zb2Z0Y2FwX3N0YXR1cwkAAGYAAAACBQAAABZwZW5kaW5nX2hhcmRjYXBfc3RhdHVzAAAAAAAAAAAABwkAAAIAAAABAgAAAFVTb2Z0Q2FwIEFscmVhZHkgUmVhY2hlZCBmb3IgdGhpcyBSb3VuZC4gUGxlYXNlIENsaWNrIG9uIENsYWltIHRvIFJlY2VpdmUgWW91ciBUb2tlbnMuAwMJAABnAAAAAgAAAAAAAAAAAAUAAAAWcGVuZGluZ19zb2Z0Y2FwX3N0YXR1cwkAAGcAAAACAAAAAAAAAAAABQAAABZwZW5kaW5nX2hhcmRjYXBfc3RhdHVzBwkAAAIAAAABAgAAAF5Tb2Z0Q2FwIGFuZCBIYXJkIEFscmVhZHkgUmVhY2hlZCBmb3IgdGhpcyBSb3VuZC4gUGxlYXNlIENsaWNrIG9uIENsYWltIHRvIFJlY2VpdmUgWW91ciBUb2tlbnMuCQAAAgAAAAECAAAAEldyb25nIEVudHJ5IEZvdW5kLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5bKYUBA==", "height": 2708907, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2pcobS7GfsnHeUx15h8MXn6CqasPd4xcLNvbHvwerrgD Next: 2qJX5uYMv25BMznFcFJc8fJ8eaCycTG3pzpcYUevAckx Diff:
OldNewDifferences
136136 else if (if (if ((0 >= V))
137137 then (W > 0)
138138 else false)
139- then (Q == 0)
139+ then (Q >= 0)
140140 else false)
141141 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)]
142142 else if (if ((0 >= V))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
55
66 let b = addressFromPublicKey(a)
77
88 let c = "Start Timestamp can't be less than last block Timestamp."
99
1010 let d = "End Timestamp can't be less than or equal to Start Timestamp"
1111
1212 let e = "Token Price can't be less than or Zero"
1313
1414 let f = "Soft Cap Amount can't be more than Hard Cap Amount."
1515
1616 let g = "<h1>Presale Order Submitted Successfully!</h1><br>"
1717
1818 let h = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
1919
2020 let i = "DApp Need WAVES Token as Attach payment[1]."
2121
2222 let j = "Attached payment[1] is less than token price "
2323
2424 let k = "Dapp will start Pre-Sale at Timestamp "
2525
2626 let l = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2727
2828 let m = "Pre-Sale is over for this Round."
2929
3030 let n = "Pre-Sale is not over for this Round."
3131
3232 let o = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round."
3333
3434 let p = "<h1>Refund Received Successfully!.</h1><br>"
3535
3636 @Callable(q)
3737 func SetPreSaleParameters (r,s,t,u,v,w) = {
3838 let x = r
3939 let y = s
4040 let z = {
4141 let A = getInteger(this, "Current_Funding_Round")
4242 if ($isInstanceOf(A, "Int"))
4343 then {
4444 let B = A
4545 B
4646 }
4747 else 0
4848 }
4949 let C = (z + 1)
5050 if ((q.caller != b))
5151 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
5252 else if ((lastBlock.timestamp > r))
5353 then throw(c)
5454 else if ((size(toString(r)) != 13))
5555 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5656 else if ((size(toString(s)) != 13))
5757 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
5858 else if ((1 > t))
5959 then throw(e)
6060 else if ((x >= y))
6161 then throw(d)
6262 else if ((u > v))
6363 then throw(f)
6464 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)]
6565 }
6666
6767
6868
6969 @Callable(q)
7070 func PlacePresaleOrder (D) = {
7171 let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.")
7272 let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
7373 let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
7474 let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
7575 let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
7676 let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Refund is not set for this Presale Round.")
7777 let K = unit
7878 let L = toBase58String(q.caller.bytes)
7979 let M = if ((size(q.payments) == 1))
8080 then q.payments[0]
8181 else throw(i)
8282 let N = {
8383 let A = getInteger(this, (toString(D) + "_Funds_Collection"))
8484 if ($isInstanceOf(A, "Int"))
8585 then {
8686 let B = A
8787 B
8888 }
8989 else 0
9090 }
9191 let O = (N + M.amount)
9292 let P = {
9393 let A = getInteger(this, (toString(D) + "_total_auto_withdraw_txns"))
9494 if ($isInstanceOf(A, "Int"))
9595 then {
9696 let B = A
9797 B
9898 }
9999 else 0
100100 }
101101 let Q = (P + 1)
102102 let R = {
103103 let A = getInteger(this, (toString(D) + "_total_txns"))
104104 if ($isInstanceOf(A, "Int"))
105105 then {
106106 let B = A
107107 B
108108 }
109109 else 0
110110 }
111111 let S = (R + 1)
112112 let T = {
113113 let A = getInteger(this, ((toString(D) + "_") + L))
114114 if ($isInstanceOf(A, "Int"))
115115 then {
116116 let B = A
117117 B
118118 }
119119 else 0
120120 }
121121 let U = (T + M.amount)
122122 let V = (H - O)
123123 let W = (I - O)
124124 if (isDefined(M.assetId))
125125 then throw(i)
126126 else if ((E > M.amount))
127127 then throw((((j + "[") + toString(E)) + "/10^8.]"))
128128 else if ((F > lastBlock.timestamp))
129129 then throw((k + toString(F)))
130130 else if ((lastBlock.timestamp > G))
131131 then throw(m)
132132 else if (if ((V > 0))
133133 then (W > 0)
134134 else false)
135135 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)]
136136 else if (if (if ((0 >= V))
137137 then (W > 0)
138138 else false)
139- then (Q == 0)
139+ then (Q >= 0)
140140 else false)
141141 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)]
142142 else if (if ((0 >= V))
143143 then (0 >= W)
144144 else false)
145145 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)]
146146 else throw("Error.")
147147 }
148148
149149
150150
151151 @Callable(q)
152152 func Refund (D) = {
153153 let K = unit
154154 let L = toBase58String(q.caller.bytes)
155155 let X = valueOrErrorMessage(getInteger(this, (toString(D) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.")
156156 let E = valueOrErrorMessage(getInteger(this, (toString(D) + "_Token_Price")), "Token Price not Found for this Presale Round.")
157157 let F = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
158158 let G = valueOrErrorMessage(getInteger(this, (toString(D) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
159159 let H = valueOrErrorMessage(getInteger(this, (toString(D) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
160160 let I = valueOrErrorMessage(getInteger(this, (toString(D) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
161161 let Y = valueOrErrorMessage(getInteger(this, (toString(D) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.")
162162 let T = valueOrErrorMessage(getInteger(this, ((toString(D) + "_") + L)), "No Deposit was made by this Address for this Presale Round.")
163163 let J = valueOrErrorMessage(getBoolean(this, (toString(D) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.")
164164 let V = (H - Y)
165165 let W = (I - Y)
166166 let Z = 1000
167167 let aa = (60 * Z)
168168 let ab = (G - F)
169169 let ac = 10
170170 let ad = ((X + fraction(ab, 1, aa)) + ac)
171171 let ae = (Y - T)
172172 if ((ad > lastBlock.height))
173173 then throw((((n + " Please Wait Until ~") + toString(ad)) + " Height is reached."))
174174 else if ((J == false))
175175 then throw(o)
176176 else if ((T == 0))
177177 then throw("Refund has been Already Claimed by this Address.")
178178 else if (if ((V > 0))
179179 then (W > 0)
180180 else false)
181181 then [ScriptTransfer(addressFromStringValue(L), T, K), IntegerEntry(((toString(D) + "_") + "Pending_Refund"), ae), IntegerEntry(((toString(D) + "_") + L), 0), StringEntry("message", p)]
182182 else if (if ((0 >= V))
183183 then (W > 0)
184184 else false)
185185 then throw("SoftCap Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
186186 else if (if ((0 >= V))
187187 then (0 >= W)
188188 else false)
189189 then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.")
190190 else throw("Wrong Entry Found.")
191191 }
192192
193193
194194 @Verifier(af)
195195 func ag () = sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey)
196196

github/deemru/w8io/026f985 
35.58 ms