tx · HW5i1hecWEjyQCr4AYGMgTXJt4T1Y3pt1rJR3MNVQW4a

3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm:  -0.01400000 Waves

2023.04.13 23:23 [2533258] smart account 3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm > SELF 0.00000000 Waves

{ "type": 13, "id": "HW5i1hecWEjyQCr4AYGMgTXJt4T1Y3pt1rJR3MNVQW4a", "fee": 1400000, "feeAssetId": null, "timestamp": 1681417432227, "version": 2, "chainId": 84, "sender": "3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "senderPublicKey": "EKmhAeU9yA52DSvBnr1WtWQWyyiCrauDYkmgnTns7ZkA", "proofs": [ "5rrHnNk11spbfdSiPCVW5XYLjh7bVR7KUuSkzF5aEgJ76qvrrWFTfgPeXQum5rGpo8f5RgvUq8RijKxTKdHghczA" ], "script": "base64:AAIFAAAAAAAAACIIAhILCgkBAQEBAQEIAQESCwoJAQEBAQEBCAEBEgQKAgEIAAAACAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIDt0RfG+UDnkUrGYjjYAjr/q4kPWHyAQKg1dGLENBEMMAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yAgAAADFPcmFjbGUgaXMgY2xvc2VkLiBXYWl0IFVudGlsIE9yYWNsZSBpcyBUdXJuZWQgT24uAAAAABF3aGl0ZWxpc3RfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAUR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AAAAgUAAAALQ3VycmVuY3lfSUQCAAAAAV8FAAAADWNhbGxlcmFkZHJlc3MFAAAAEFRvdGFsVXNlckRlcG9zaXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAABVUb3RhbERlcG9zaXRDb3VudGVySUQCAAAAAV8FAAAAC0N1cnJlbmN5X0lEAgAAAAFfBQAAAA1jYWxsZXJhZGRyZXNzBQAAABBUb3RhbFVzZXJEZXBvc2l0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABJEZXBvc2l0X0NvdW50ZXJfSUQFAAAAFVRvdGFsRGVwb3NpdENvdW50ZXJJRAUAAAADbmlsAAAAAAembDk=", "height": 2533258, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ARt7ebvjbErdkRLYQhVrH1S9xCpcsXL5UWeWrZ61muE Next: H5Sh86y8jsH9ZopMJbWqTUzyymxWDYo7KasFrso9J72q Diff:
OldNewDifferences
101101 else 0
102102 }
103103 let R = (Q + 1)
104- let S = {
105- let D = getInteger(this, "Pending_Option_Limits")
106- if ($isInstanceOf(D, "Int"))
107- then {
108- let E = D
109- E
110- }
111- else 0
112- }
113- let T = l
104+ let S = l
114105 if ((i.caller != f))
115106 then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it."))
116107 else if ((b > lastBlock.timestamp))
117108 then throw((c + toString(b)))
118- else if ((p == "Close"))
109+ else if ((p == "CLOSE"))
119110 then throw(e)
120111 else if ((u == "Yes"))
121112 then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
127118 then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN."))
128119 else if ((t.amount > h))
129120 then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN."))
130- else [StringEntry(((("Call_" + s) + "_") + toString(P)), toString(m)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(P)), t.amount), StringEntry(((("Call_Start_End_" + s) + "_") + toString(P)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Calls", L), IntegerEntry(("Total_Calls_" + toString(z)), N), IntegerEntry((s + "_Total_Calls"), P), IntegerEntry(((s + "_Total_Calls_") + toString(z)), R)]
121+ else [StringEntry(((("Call_" + s) + "_") + toString(P)), toString(m)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(P)), t.amount), StringEntry(((("Call_Start_End_" + s) + "_") + toString(P)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(z)), S), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Calls", L), IntegerEntry(("Total_Calls_" + toString(z)), N), IntegerEntry((s + "_Total_Calls"), P), IntegerEntry(((s + "_Total_Calls_") + toString(z)), R)]
131122 }
132123
133124
176167 else 0
177168 }
178169 let J = (I + 1)
179- let U = {
170+ let T = {
180171 let D = getInteger(this, "Total_Puts")
181172 if ($isInstanceOf(D, "Int"))
182173 then {
185176 }
186177 else 0
187178 }
188- let V = (U + 1)
189- let W = {
179+ let U = (T + 1)
180+ let V = {
190181 let D = getInteger(this, ("Total_Puts_" + toString(z)))
191182 if ($isInstanceOf(D, "Int"))
192183 then {
195186 }
196187 else 0
197188 }
198- let X = (W + 1)
199- let Y = {
189+ let W = (V + 1)
190+ let X = {
200191 let D = getInteger(this, (s + "_Total_Puts"))
201192 if ($isInstanceOf(D, "Int"))
202193 then {
205196 }
206197 else 0
207198 }
208- let Z = (Y + 1)
209- let aa = {
199+ let Y = (X + 1)
200+ let Z = {
210201 let D = getInteger(this, ((s + "_Total_Puts_") + toString(z)))
211202 if ($isInstanceOf(D, "Int"))
212203 then {
215206 }
216207 else 0
217208 }
218- let ab = (aa + 1)
219- let S = {
220- let D = getInteger(this, "Pending_Option_Limits")
221- if ($isInstanceOf(D, "Int"))
222- then {
223- let E = D
224- E
225- }
226- else 0
227- }
228- let T = l
209+ let aa = (Z + 1)
210+ let S = l
229211 if ((i.caller != f))
230212 then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it."))
231213 else if ((b > lastBlock.timestamp))
232214 then throw((c + toString(b)))
233- else if ((p == "Close"))
215+ else if ((p == "CLOSE"))
234216 then throw(e)
235217 else if ((u == "Yes"))
236218 then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
242224 then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN."))
243225 else if ((t.amount > h))
244226 then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN."))
245- else [StringEntry(((("Put_" + s) + "_") + toString(Z)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Z)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Z)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", V), IntegerEntry(("Total_Puts_" + toString(z)), X), IntegerEntry((s + "_Total_Puts"), Z), IntegerEntry(((s + "_Total_Puts_") + toString(z)), ab)]
227+ else [StringEntry(((("Put_" + s) + "_") + toString(Y)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Y)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Y)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(z)), S), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", U), IntegerEntry(("Total_Puts_" + toString(z)), W), IntegerEntry((s + "_Total_Puts"), Y), IntegerEntry(((s + "_Total_Puts_") + toString(z)), aa)]
228+ }
229+
230+
231+
232+@Callable(i)
233+func AddFundsToPool (k,p) = {
234+ let s = toBase58String(i.caller.bytes)
235+ let ab = "TN"
236+ let t = if ((size(i.payments) == 1))
237+ then i.payments[0]
238+ else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
239+ let u = getString(this, ("addr_BLACKLISTED_" + s))
240+ let ac = {
241+ let D = getInteger(this, ((ab + "_") + s))
242+ if ($isInstanceOf(D, "Int"))
243+ then {
244+ let E = D
245+ E
246+ }
247+ else 0
248+ }
249+ let ad = (ac + t.amount)
250+ let ae = {
251+ let D = getInteger(this, "Deposit_Counter_ID")
252+ if ($isInstanceOf(D, "Int"))
253+ then {
254+ let E = D
255+ E
256+ }
257+ else 0
258+ }
259+ let af = (ae + 1)
260+ if ((b > lastBlock.timestamp))
261+ then throw((c + toString(b)))
262+ else if ((p == "CLOSE"))
263+ then throw(e)
264+ else if ((u == "Yes"))
265+ then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
266+ else if (isDefined(t.assetId))
267+ then throw("Only TN is allowed to deposit at the moment")
268+ else [IntegerEntry(((ab + "_") + s), ad), IntegerEntry(((((toString(af) + "_") + ab) + "_") + s), ad), IntegerEntry("Deposit_Counter_ID", af)]
246269 }
247270
248271
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB'
55
66 let b = 1675209600000
77
88 let c = "Product Launch Timestamp is set at "
99
1010 let d = "No payment attached, Please Attach Token in payment[1]."
1111
1212 let e = "Oracle is closed. Wait Until Oracle is Turned On."
1313
1414 let f = addressFromPublicKey(a)
1515
1616 let g = 10000000
1717
1818 let h = 10000000000
1919
2020 @Callable(i)
2121 func placeoptionCall (j,k,l,m,n,o,p,q,r) = {
2222 let s = toBase58String(i.caller.bytes)
2323 let t = if ((size(i.payments) == 1))
2424 then i.payments[0]
2525 else throw(d)
2626 let u = getString(this, ("addr_BLACKLISTED_" + s))
2727 let v = q
2828 let w = r
2929 let x = j
3030 let y = (x + t.amount)
3131 let z = k
3232 let A = 1
3333 let B = (z + A)
3434 let C = {
3535 let D = getInteger(this, "Total_Option_Orders")
3636 if ($isInstanceOf(D, "Int"))
3737 then {
3838 let E = D
3939 E
4040 }
4141 else 0
4242 }
4343 let F = (C + 1)
4444 let G = {
4545 let D = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(z)))
4646 if ($isInstanceOf(D, "Int"))
4747 then {
4848 let E = D
4949 E
5050 }
5151 else 0
5252 }
5353 let H = (G + t.amount)
5454 let I = {
5555 let D = getInteger(this, ("Total_Option_Orders_" + toString(z)))
5656 if ($isInstanceOf(D, "Int"))
5757 then {
5858 let E = D
5959 E
6060 }
6161 else 0
6262 }
6363 let J = (I + 1)
6464 let K = {
6565 let D = getInteger(this, "Total_Calls")
6666 if ($isInstanceOf(D, "Int"))
6767 then {
6868 let E = D
6969 E
7070 }
7171 else 0
7272 }
7373 let L = (K + 1)
7474 let M = {
7575 let D = getInteger(this, ("Total_Calls_" + toString(z)))
7676 if ($isInstanceOf(D, "Int"))
7777 then {
7878 let E = D
7979 E
8080 }
8181 else 0
8282 }
8383 let N = (M + 1)
8484 let O = {
8585 let D = getInteger(this, (s + "_Total_Calls"))
8686 if ($isInstanceOf(D, "Int"))
8787 then {
8888 let E = D
8989 E
9090 }
9191 else 0
9292 }
9393 let P = (O + 1)
9494 let Q = {
9595 let D = getInteger(this, ((s + "_Total_Calls_") + toString(z)))
9696 if ($isInstanceOf(D, "Int"))
9797 then {
9898 let E = D
9999 E
100100 }
101101 else 0
102102 }
103103 let R = (Q + 1)
104- let S = {
105- let D = getInteger(this, "Pending_Option_Limits")
106- if ($isInstanceOf(D, "Int"))
107- then {
108- let E = D
109- E
110- }
111- else 0
112- }
113- let T = l
104+ let S = l
114105 if ((i.caller != f))
115106 then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it."))
116107 else if ((b > lastBlock.timestamp))
117108 then throw((c + toString(b)))
118- else if ((p == "Close"))
109+ else if ((p == "CLOSE"))
119110 then throw(e)
120111 else if ((u == "Yes"))
121112 then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
122113 else if (isDefined(t.assetId))
123114 then throw("Only TN is allowed to deposit at the moment")
124115 else if ((lastBlock.timestamp >= w))
125116 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
126117 else if ((g > t.amount))
127118 then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN."))
128119 else if ((t.amount > h))
129120 then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN."))
130- else [StringEntry(((("Call_" + s) + "_") + toString(P)), toString(m)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(P)), t.amount), StringEntry(((("Call_Start_End_" + s) + "_") + toString(P)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Calls", L), IntegerEntry(("Total_Calls_" + toString(z)), N), IntegerEntry((s + "_Total_Calls"), P), IntegerEntry(((s + "_Total_Calls_") + toString(z)), R)]
121+ else [StringEntry(((("Call_" + s) + "_") + toString(P)), toString(m)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(P)), t.amount), StringEntry(((("Call_Start_End_" + s) + "_") + toString(P)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(z)), S), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Calls", L), IntegerEntry(("Total_Calls_" + toString(z)), N), IntegerEntry((s + "_Total_Calls"), P), IntegerEntry(((s + "_Total_Calls_") + toString(z)), R)]
131122 }
132123
133124
134125
135126 @Callable(i)
136127 func placeoptionPut (j,k,l,m,n,o,p,q,r) = {
137128 let s = toBase58String(i.caller.bytes)
138129 let t = if ((size(i.payments) == 1))
139130 then i.payments[0]
140131 else throw(d)
141132 let u = getString(this, ("addr_BLACKLISTED_" + s))
142133 let v = q
143134 let w = r
144135 let x = j
145136 let y = (x + t.amount)
146137 let z = k
147138 let A = 1
148139 let B = (z + A)
149140 let C = {
150141 let D = getInteger(this, "Total_Option_Orders")
151142 if ($isInstanceOf(D, "Int"))
152143 then {
153144 let E = D
154145 E
155146 }
156147 else 0
157148 }
158149 let F = (C + 1)
159150 let G = {
160151 let D = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(z)))
161152 if ($isInstanceOf(D, "Int"))
162153 then {
163154 let E = D
164155 E
165156 }
166157 else 0
167158 }
168159 let H = (G + t.amount)
169160 let I = {
170161 let D = getInteger(this, ("Total_Option_Orders_" + toString(z)))
171162 if ($isInstanceOf(D, "Int"))
172163 then {
173164 let E = D
174165 E
175166 }
176167 else 0
177168 }
178169 let J = (I + 1)
179- let U = {
170+ let T = {
180171 let D = getInteger(this, "Total_Puts")
181172 if ($isInstanceOf(D, "Int"))
182173 then {
183174 let E = D
184175 E
185176 }
186177 else 0
187178 }
188- let V = (U + 1)
189- let W = {
179+ let U = (T + 1)
180+ let V = {
190181 let D = getInteger(this, ("Total_Puts_" + toString(z)))
191182 if ($isInstanceOf(D, "Int"))
192183 then {
193184 let E = D
194185 E
195186 }
196187 else 0
197188 }
198- let X = (W + 1)
199- let Y = {
189+ let W = (V + 1)
190+ let X = {
200191 let D = getInteger(this, (s + "_Total_Puts"))
201192 if ($isInstanceOf(D, "Int"))
202193 then {
203194 let E = D
204195 E
205196 }
206197 else 0
207198 }
208- let Z = (Y + 1)
209- let aa = {
199+ let Y = (X + 1)
200+ let Z = {
210201 let D = getInteger(this, ((s + "_Total_Puts_") + toString(z)))
211202 if ($isInstanceOf(D, "Int"))
212203 then {
213204 let E = D
214205 E
215206 }
216207 else 0
217208 }
218- let ab = (aa + 1)
219- let S = {
220- let D = getInteger(this, "Pending_Option_Limits")
221- if ($isInstanceOf(D, "Int"))
222- then {
223- let E = D
224- E
225- }
226- else 0
227- }
228- let T = l
209+ let aa = (Z + 1)
210+ let S = l
229211 if ((i.caller != f))
230212 then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it."))
231213 else if ((b > lastBlock.timestamp))
232214 then throw((c + toString(b)))
233- else if ((p == "Close"))
215+ else if ((p == "CLOSE"))
234216 then throw(e)
235217 else if ((u == "Yes"))
236218 then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
237219 else if (isDefined(t.assetId))
238220 then throw("Only TN is allowed to deposit at the moment")
239221 else if ((lastBlock.timestamp >= w))
240222 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
241223 else if ((g > t.amount))
242224 then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN."))
243225 else if ((t.amount > h))
244226 then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN."))
245- else [StringEntry(((("Put_" + s) + "_") + toString(Z)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Z)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Z)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", V), IntegerEntry(("Total_Puts_" + toString(z)), X), IntegerEntry((s + "_Total_Puts"), Z), IntegerEntry(((s + "_Total_Puts_") + toString(z)), ab)]
227+ else [StringEntry(((("Put_" + s) + "_") + toString(Y)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Y)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Y)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(z)), S), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", U), IntegerEntry(("Total_Puts_" + toString(z)), W), IntegerEntry((s + "_Total_Puts"), Y), IntegerEntry(((s + "_Total_Puts_") + toString(z)), aa)]
228+ }
229+
230+
231+
232+@Callable(i)
233+func AddFundsToPool (k,p) = {
234+ let s = toBase58String(i.caller.bytes)
235+ let ab = "TN"
236+ let t = if ((size(i.payments) == 1))
237+ then i.payments[0]
238+ else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
239+ let u = getString(this, ("addr_BLACKLISTED_" + s))
240+ let ac = {
241+ let D = getInteger(this, ((ab + "_") + s))
242+ if ($isInstanceOf(D, "Int"))
243+ then {
244+ let E = D
245+ E
246+ }
247+ else 0
248+ }
249+ let ad = (ac + t.amount)
250+ let ae = {
251+ let D = getInteger(this, "Deposit_Counter_ID")
252+ if ($isInstanceOf(D, "Int"))
253+ then {
254+ let E = D
255+ E
256+ }
257+ else 0
258+ }
259+ let af = (ae + 1)
260+ if ((b > lastBlock.timestamp))
261+ then throw((c + toString(b)))
262+ else if ((p == "CLOSE"))
263+ then throw(e)
264+ else if ((u == "Yes"))
265+ then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it."))
266+ else if (isDefined(t.assetId))
267+ then throw("Only TN is allowed to deposit at the moment")
268+ else [IntegerEntry(((ab + "_") + s), ad), IntegerEntry(((((toString(af) + "_") + ab) + "_") + s), ad), IntegerEntry("Deposit_Counter_ID", af)]
246269 }
247270
248271

github/deemru/w8io/169f3d6 
58.95 ms