tx · HS7LnNX3FHTVYyACXtEmVfeiDTcYTdrzrhy3ByNG2p1t

3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2:  -0.02600000 Waves

2023.11.28 15:28 [2863249] smart account 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2 > SELF 0.00000000 Waves

{ "type": 13, "id": "HS7LnNX3FHTVYyACXtEmVfeiDTcYTdrzrhy3ByNG2p1t", "fee": 2600000, "feeAssetId": null, "timestamp": 1701174475823, "version": 2, "chainId": 84, "sender": "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2", "senderPublicKey": "DNKNL32sAVUYg4iGA3tW8Z6VXrENmGCmKfG6DLar82aP", "proofs": [ "5UVEy3toq5Cip7XPRZ9x1jztBfdHvA1gNpuNxaAjScxZUDb83sukNurKxkoGBEKpg6dVgcNM8pVVEQFpcBcdVpeG" ], "script": "base64:AAIFAAAAAAAAADcIAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESBQoDAQgIEgASBAoCCAESAwoBCBIDCgEIAAAADQAAAAAWcG9vbF9saXF1aWRpdHlfYWRkcmVzcwIAAAAjM040d0JnWXRXZ0pXMkxUUmVmMmVrV1FUckVYQ1JmWG1HTGgAAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AQAAACDI7Zjahu5VNVhgxzyW6CpbYvUiMMUf5OyBUQlo584acwAAAAAYcHJvZHVjdF9sYXVuY2hfdGltZXN0YW1wAAAAAYq/YBYgAAAAAAtDdXJyZW5jeV9JRAIAAAAFV0FWRVMAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yAgAAADFP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hY2tsaXN0LgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZJvos4=", "height": 2863249, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G3DSR7NU7XF51inS23QYzuDvgSHcpDJYRT4NCUZkKjC5 Next: FrPmnEQuz2mU8gmY4Tf2LZxHLET5kGGYLziAk2JFPNma Diff:
OldNewDifferences
2525
2626 let l = 10000000000
2727
28-@Callable(m)
29-func placeoptionCall (n,o,p,q,r,s,t,u,v,w) = {
30- let x = toBase58String(m.caller.bytes)
31- let y = getString(this, ("addr_BLACKLISTED_" + q))
32- let z = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
33- let A = valueOrElse(getIntegerValue(((d + "_") + q)), 0)
34- let B = ((A - n) - j)
35- let C = v
28+let m = 100000000
29+
30+@Callable(n)
31+func placeoptionCall (o,p,q,r,s,t,u,v,w,x) = {
32+ let y = toBase58String(n.caller.bytes)
33+ let z = getString(this, ("addr_BLACKLISTED_" + r))
34+ let A = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
35+ let B = valueOrElse(getInteger(((d + "_") + r)), 0)
36+ let C = ((B - o) - j)
3637 let D = w
37- let E = o
38- let F = 1
39- let G = (E + F)
40- let H = {
41- let I = getInteger(this, "Total_Option_Orders")
42- if ($isInstanceOf(I, "Int"))
38+ let E = x
39+ let F = p
40+ let G = 1
41+ let H = (F + G)
42+ let I = {
43+ let J = getInteger(this, "Total_Option_Orders")
44+ if ($isInstanceOf(J, "Int"))
4345 then {
44- let J = I
45- J
46+ let K = J
47+ K
4648 }
4749 else 0
4850 }
49- let K = (H + 1)
50- let L = {
51- let I = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(E)))
52- if ($isInstanceOf(I, "Int"))
51+ let L = (I + 1)
52+ let M = {
53+ let J = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(F)))
54+ if ($isInstanceOf(J, "Int"))
5355 then {
54- let J = I
55- J
56+ let K = J
57+ K
5658 }
5759 else 0
5860 }
59- let M = (L + n)
60- let N = {
61- let I = getInteger(this, ("Total_Option_Orders_" + toString(E)))
62- if ($isInstanceOf(I, "Int"))
61+ let N = (M + o)
62+ let O = {
63+ let J = getInteger(this, ("Total_Option_Orders_" + toString(F)))
64+ if ($isInstanceOf(J, "Int"))
6365 then {
64- let J = I
65- J
66+ let K = J
67+ K
6668 }
6769 else 0
6870 }
69- let O = (N + 1)
70- let P = {
71- let I = getInteger(this, "Total_Calls")
72- if ($isInstanceOf(I, "Int"))
71+ let P = (O + 1)
72+ let Q = {
73+ let J = getInteger(this, "Total_Calls")
74+ if ($isInstanceOf(J, "Int"))
7375 then {
74- let J = I
75- J
76+ let K = J
77+ K
7678 }
7779 else 0
7880 }
79- let Q = (P + 1)
80- let R = {
81- let I = getInteger(this, ("Total_Calls_" + toString(E)))
82- if ($isInstanceOf(I, "Int"))
81+ let R = (Q + 1)
82+ let S = {
83+ let J = getInteger(this, ("Total_Calls_" + toString(F)))
84+ if ($isInstanceOf(J, "Int"))
8385 then {
84- let J = I
85- J
86+ let K = J
87+ K
8688 }
8789 else 0
8890 }
89- let S = (R + 1)
90- let T = {
91- let I = getInteger(this, (q + "_Total_Calls"))
92- if ($isInstanceOf(I, "Int"))
91+ let T = (S + 1)
92+ let U = {
93+ let J = getInteger(this, (r + "_Total_Calls"))
94+ if ($isInstanceOf(J, "Int"))
9395 then {
94- let J = I
95- J
96+ let K = J
97+ K
9698 }
9799 else 0
98100 }
99- let U = (T + 1)
100- let V = {
101- let I = getInteger(this, ((q + "_Total_Calls_") + toString(E)))
102- if ($isInstanceOf(I, "Int"))
101+ let V = (U + 1)
102+ let W = {
103+ let J = getInteger(this, ((r + "_Total_Calls_") + toString(F)))
104+ if ($isInstanceOf(J, "Int"))
103105 then {
104- let J = I
105- J
106+ let K = J
107+ K
106108 }
107109 else 0
108110 }
109- let W = (V + 1)
110- let X = fraction(z, 5, 100)
111- if (if ((m.caller != h))
112- then (m.caller != i)
111+ let X = (W + 1)
112+ let Y = fraction(A, 5, 100)
113+ if (if ((n.caller != h))
114+ then (n.caller != i)
113115 else false)
114116 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
115117 else if ((c > lastBlock.timestamp))
116118 then throw((e + toString(c)))
117- else if ((u == "CLOSE"))
119+ else if ((v == "CLOSE"))
118120 then throw(g)
119- else if ((y == "Yes"))
120- then throw((q + " Address is Blacklisted. Please contact Admin to Whitelist it."))
121- else if ((lastBlock.timestamp >= D))
121+ else if ((z == "Yes"))
122+ then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it."))
123+ else if ((lastBlock.timestamp >= E))
122124 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
123- else if ((M > X))
124- then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(X)) + ", Pending House Risk is ") + toString((X - L))) + ". Join in next Cycle."))
125- else if ((k > n))
125+ else if ((N > Y))
126+ then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Y)) + ", Pending House Risk is ") + toString((Y - M))) + ". Join in next Cycle."))
127+ else if ((k > o))
126128 then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES."))
127- else if ((n > l))
129+ else if ((o > l))
128130 then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES."))
129- else if ((0 > B))
130- then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(B)))
131- else if ((size(toString(v)) != 13))
131+ else if ((0 > C))
132+ then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(C)))
133+ else if ((size(toString(w)) != 13))
132134 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
133- else if ((size(toString(w)) != 13))
135+ else if ((size(toString(x)) != 13))
134136 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
135- else [StringEntry(("User_ID_" + q), p), IntegerEntry(((d + "_") + q), B), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + q) + "_") + toString(U)), toString(r)), IntegerEntry(((("Call_Amount_" + q) + "_") + toString(U)), n), StringEntry(((("Call_Start_End_" + q) + "_") + toString(U)), ((toString(E) + "_") + toString(G))), IntegerEntry("Total_Option_Orders", K), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(E)), M), IntegerEntry("Total_Pool_Liquidity", z), IntegerEntry(("Funds_At_Risk_" + toString(E)), X), IntegerEntry("Call_Limits", s), IntegerEntry("Put_Limits", t), IntegerEntry(("Total_Option_Orders_" + toString(E)), O), IntegerEntry("Total_Calls", Q), IntegerEntry(("Total_Calls_" + toString(E)), S), IntegerEntry((q + "_Total_Calls"), U), IntegerEntry(((q + "_Total_Calls_") + toString(E)), W), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), n, unit)]
137+ else [StringEntry(("User_ID_" + r), q), IntegerEntry(((d + "_") + r), C), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + r) + "_") + toString(V)), toString(s)), IntegerEntry(((("Call_Amount_" + r) + "_") + toString(V)), o), StringEntry(((("Call_Start_End_" + r) + "_") + toString(V)), ((toString(F) + "_") + toString(H))), IntegerEntry("Total_Option_Orders", L), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(F)), N), IntegerEntry("Total_Pool_Liquidity", A), IntegerEntry(("Funds_At_Risk_" + toString(F)), Y), IntegerEntry("Call_Limits", t), IntegerEntry("Put_Limits", u), IntegerEntry(("Total_Option_Orders_" + toString(F)), P), IntegerEntry("Total_Calls", R), IntegerEntry(("Total_Calls_" + toString(F)), T), IntegerEntry((r + "_Total_Calls"), V), IntegerEntry(((r + "_Total_Calls_") + toString(F)), X), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), o, unit)]
136138 }
137139
138140
139141
140-@Callable(m)
141-func placeoptionPut (n,o,p,q,r,s,t,u,v,w) = {
142- let x = toBase58String(m.caller.bytes)
143- let y = getString(this, ("addr_BLACKLISTED_" + q))
144- let z = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
145- let A = getIntegerValue(((d + "_") + q))
146- let B = ((A - n) - j)
147- let C = v
142+@Callable(n)
143+func placeoptionPut (o,p,q,r,s,t,u,v,w,x) = {
144+ let y = toBase58String(n.caller.bytes)
145+ let z = getString(this, ("addr_BLACKLISTED_" + r))
146+ let A = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
147+ let B = valueOrElse(getInteger(((d + "_") + r)), 0)
148+ let C = ((B - o) - j)
148149 let D = w
149- let E = o
150- let F = 1
151- let G = (E + F)
152- let H = {
153- let I = getInteger(this, "Total_Option_Orders")
154- if ($isInstanceOf(I, "Int"))
150+ let E = x
151+ let F = p
152+ let G = 1
153+ let H = (F + G)
154+ let I = {
155+ let J = getInteger(this, "Total_Option_Orders")
156+ if ($isInstanceOf(J, "Int"))
155157 then {
156- let J = I
157- J
158+ let K = J
159+ K
158160 }
159161 else 0
160162 }
161- let K = (H + 1)
162- let L = {
163- let I = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(E)))
164- if ($isInstanceOf(I, "Int"))
163+ let L = (I + 1)
164+ let M = {
165+ let J = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(F)))
166+ if ($isInstanceOf(J, "Int"))
165167 then {
166- let J = I
167- J
168+ let K = J
169+ K
168170 }
169171 else 0
170172 }
171- let M = (L + n)
172- let N = {
173- let I = getInteger(this, ("Total_Option_Orders_" + toString(E)))
174- if ($isInstanceOf(I, "Int"))
173+ let N = (M + o)
174+ let O = {
175+ let J = getInteger(this, ("Total_Option_Orders_" + toString(F)))
176+ if ($isInstanceOf(J, "Int"))
175177 then {
176- let J = I
177- J
178+ let K = J
179+ K
178180 }
179181 else 0
180182 }
181- let O = (N + 1)
182- let Y = {
183- let I = getInteger(this, "Total_Puts")
184- if ($isInstanceOf(I, "Int"))
183+ let P = (O + 1)
184+ let Z = {
185+ let J = getInteger(this, "Total_Puts")
186+ if ($isInstanceOf(J, "Int"))
185187 then {
186- let J = I
187- J
188+ let K = J
189+ K
188190 }
189191 else 0
190192 }
191- let Z = (Y + 1)
192- let aa = {
193- let I = getInteger(this, ("Total_Puts_" + toString(E)))
194- if ($isInstanceOf(I, "Int"))
193+ let aa = (Z + 1)
194+ let ab = {
195+ let J = getInteger(this, ("Total_Puts_" + toString(F)))
196+ if ($isInstanceOf(J, "Int"))
195197 then {
196- let J = I
197- J
198+ let K = J
199+ K
198200 }
199201 else 0
200202 }
201- let ab = (aa + 1)
202- let ac = {
203- let I = getInteger(this, (q + "_Total_Puts"))
204- if ($isInstanceOf(I, "Int"))
203+ let ac = (ab + 1)
204+ let ad = {
205+ let J = getInteger(this, (r + "_Total_Puts"))
206+ if ($isInstanceOf(J, "Int"))
205207 then {
206- let J = I
207- J
208+ let K = J
209+ K
208210 }
209211 else 0
210212 }
211- let ad = (ac + 1)
212- let ae = {
213- let I = getInteger(this, ((q + "_Total_Puts_") + toString(E)))
214- if ($isInstanceOf(I, "Int"))
213+ let ae = (ad + 1)
214+ let af = {
215+ let J = getInteger(this, ((r + "_Total_Puts_") + toString(F)))
216+ if ($isInstanceOf(J, "Int"))
215217 then {
216- let J = I
217- J
218+ let K = J
219+ K
218220 }
219221 else 0
220222 }
221- let af = (ae + 1)
222- let X = fraction(z, 5, 100)
223- if (if ((m.caller != h))
224- then (m.caller != i)
223+ let ag = (af + 1)
224+ let Y = fraction(A, 5, 100)
225+ if (if ((n.caller != h))
226+ then (n.caller != i)
225227 else false)
226228 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
227229 else if ((c > lastBlock.timestamp))
228230 then throw((e + toString(c)))
229- else if ((u == "CLOSE"))
231+ else if ((v == "CLOSE"))
230232 then throw(g)
231- else if ((y == "Yes"))
232- then throw((q + " Address is Blacklisted. Please contact Admin to Whitelist it."))
233- else if ((lastBlock.timestamp >= D))
233+ else if ((z == "Yes"))
234+ then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it."))
235+ else if ((lastBlock.timestamp >= E))
234236 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
235- else if ((M > X))
236- then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(X)) + ", Pending House Risk is ") + toString((X - L))) + ". Join in next Cycle."))
237- else if ((k > n))
237+ else if ((N > Y))
238+ then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Y)) + ", Pending House Risk is ") + toString((Y - M))) + ". Join in next Cycle."))
239+ else if ((k > o))
238240 then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES."))
239- else if ((n > l))
241+ else if ((o > l))
240242 then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES."))
241- else if ((0 > B))
242- then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(B)))
243- else if ((size(toString(v)) != 13))
243+ else if ((0 > C))
244+ then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(C)))
245+ else if ((size(toString(w)) != 13))
244246 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
245- else if ((size(toString(w)) != 13))
247+ else if ((size(toString(x)) != 13))
246248 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
247- else [StringEntry(("User_ID_" + q), p), IntegerEntry(((d + "_") + q), B), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + q) + "_") + toString(ad)), toString(r)), IntegerEntry(((("Put_Amount_" + q) + "_") + toString(ad)), n), StringEntry(((("Put_Start_End_" + q) + "_") + toString(ad)), ((toString(E) + "_") + toString(G))), IntegerEntry("Total_Option_Orders", K), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(E)), M), IntegerEntry("Total_Pool_Liquidity", z), IntegerEntry(("Funds_At_Risk_" + toString(E)), X), IntegerEntry("Call_Limits", s), IntegerEntry("Put_Limits", t), IntegerEntry(("Total_Option_Orders_" + toString(E)), O), IntegerEntry("Total_Puts", Z), IntegerEntry(("Total_Puts_" + toString(E)), ab), IntegerEntry((q + "_Total_Puts"), ad), IntegerEntry(((q + "_Total_Puts_") + toString(E)), af), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), n, unit)]
249+ else [StringEntry(("User_ID_" + r), q), IntegerEntry(((d + "_") + r), C), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + r) + "_") + toString(ae)), toString(s)), IntegerEntry(((("Put_Amount_" + r) + "_") + toString(ae)), o), StringEntry(((("Put_Start_End_" + r) + "_") + toString(ae)), ((toString(F) + "_") + toString(H))), IntegerEntry("Total_Option_Orders", L), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(F)), N), IntegerEntry("Total_Pool_Liquidity", A), IntegerEntry(("Funds_At_Risk_" + toString(F)), Y), IntegerEntry("Call_Limits", t), IntegerEntry("Put_Limits", u), IntegerEntry(("Total_Option_Orders_" + toString(F)), P), IntegerEntry("Total_Puts", aa), IntegerEntry(("Total_Puts_" + toString(F)), ac), IntegerEntry((r + "_Total_Puts"), ae), IntegerEntry(((r + "_Total_Puts_") + toString(F)), ag), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), o, unit)]
248250 }
249251
250252
251253
252-@Callable(m)
253-func DepositUserFunds () = {
254- let x = toBase58String(m.caller.bytes)
255- let ag = if ((size(m.payments) == 1))
256- then m.payments[0]
257- else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
258- let y = getString(this, ("addr_BLACKLISTED_" + x))
259- let ah = {
260- let I = getInteger(this, ((d + "_") + x))
261- if ($isInstanceOf(I, "Int"))
254+@Callable(n)
255+func Issue_Vouchers (ah,q,r) = {
256+ let ai = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
257+ let aj = (ai - ah)
258+ let ak = {
259+ let J = getInteger(this, ("Total_Vouchers_Issued_To_" + r))
260+ if ($isInstanceOf(J, "Int"))
262261 then {
263- let J = I
264- J
262+ let K = J
263+ K
265264 }
266265 else 0
267266 }
268- let ai = (ah + ag.amount)
269- let aj = {
270- let I = getInteger(this, "Deposit_Counter_ID")
271- if ($isInstanceOf(I, "Int"))
267+ let al = (ak + 1)
268+ let am = {
269+ let J = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + r))
270+ if ($isInstanceOf(J, "Int"))
272271 then {
273- let J = I
274- J
272+ let K = J
273+ K
275274 }
276275 else 0
277276 }
278- let ak = (aj + 1)
279- if ((c > lastBlock.timestamp))
280- then throw((e + toString(c)))
281- else if ((y == "Yes"))
282- then throw((x + " Address is Blacklisted. Please contact Admin to Whitelist it."))
283- else if (isDefined(ag.assetId))
284- then throw("Only WAVES is allowed to deposit at the moment")
285- else [IntegerEntry(((d + "_") + x), ai), IntegerEntry(((((toString(ak) + "_") + d) + "_") + x), ag.amount), IntegerEntry("Deposit_Counter_ID", ak)]
277+ let an = (am + ah)
278+ let ao = {
279+ let J = getInteger(this, (r + "_Voucher_Balance"))
280+ if ($isInstanceOf(J, "Int"))
281+ then {
282+ let K = J
283+ K
284+ }
285+ else 0
286+ }
287+ let ap = (ao + ah)
288+ if (if ((n.caller != h))
289+ then (n.caller != i)
290+ else false)
291+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
292+ else if ((0 >= ah))
293+ then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.")
294+ else if ((0 >= aj))
295+ then throw((("Updated Voucher Balance can't go in negative State of " + toString(aj)) + " /10^8 WAVES. Reduce the Voucher Amount."))
296+ else if ((ah > m))
297+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(m)) + "/10^8 Waves."))
298+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + r), al), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + r), an), IntegerEntry((r + "_Voucher_Balance"), ap), IntegerEntry("Available_Vouchers_Balance", aj)]
286299 }
287300
288301
289302
290-@Callable(m)
291-func WithdrawUserFunds (q,n) = {
292- let x = toBase58String(m.caller.bytes)
293- let al = getIntegerValue(((d + "_") + q))
294- let B = ((al - n) - j)
295- let am = 10000000
296- if ((m.caller != h))
297- then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
298- else if ((am > n))
299- then throw((("Minimum Withdraw Amount is " + toString(am)) + "/10^8] WAVES."))
300- else if ((0 > B))
301- then throw((("Placed Withdraw Amount is going in negative State of " + toString(B)) + "/10^8] WAVES."))
302- else [IntegerEntry("Previous_Balance", al), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + q), B), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(q), n, unit)]
303+@Callable(n)
304+func DepositUserFunds () = {
305+ let y = toBase58String(n.caller.bytes)
306+ let aq = if ((size(n.payments) == 1))
307+ then n.payments[0]
308+ else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
309+ let z = getString(this, ("addr_BLACKLISTED_" + y))
310+ let ar = {
311+ let J = getInteger(this, ((d + "_") + y))
312+ if ($isInstanceOf(J, "Int"))
313+ then {
314+ let K = J
315+ K
316+ }
317+ else 0
318+ }
319+ let as = (ar + aq.amount)
320+ let at = {
321+ let J = getInteger(this, "Deposit_Counter_ID")
322+ if ($isInstanceOf(J, "Int"))
323+ then {
324+ let K = J
325+ K
326+ }
327+ else 0
328+ }
329+ let au = (at + 1)
330+ if ((c > lastBlock.timestamp))
331+ then throw((e + toString(c)))
332+ else if ((z == "Yes"))
333+ then throw((y + " Address is Blacklisted. Please contact Admin to Whitelist it."))
334+ else if (isDefined(aq.assetId))
335+ then throw("Only WAVES is allowed to deposit at the moment")
336+ else [IntegerEntry(((d + "_") + y), as), IntegerEntry(((((toString(au) + "_") + d) + "_") + y), aq.amount), IntegerEntry("Deposit_Counter_ID", au)]
303337 }
304338
305339
306340
307-@Callable(m)
308-func BlackListAddress (an) = {
309- let y = getString(this, ("addr_BLACKLISTED_" + an))
310- let ao = {
311- let I = getInteger(this, "Total_Black_Listed_Address")
312- if ($isInstanceOf(I, "Int"))
313- then {
314- let J = I
315- J
316- }
317- else 0
318- }
319- let ap = (ao + 1)
320- if ((c > lastBlock.timestamp))
321- then throw((e + toString(c)))
322- else if ((m.caller != h))
323- then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
324- else if ((y == "Yes"))
325- then throw("Address is already available in Blacklist.")
326- else [StringEntry(("addr_BLACKLISTED_" + an), "Yes"), IntegerEntry("Total_Black_Listed_Address", ap)]
341+@Callable(n)
342+func WithdrawUserFunds (r,o) = {
343+ let y = toBase58String(n.caller.bytes)
344+ let av = getIntegerValue(((d + "_") + r))
345+ let C = ((av - o) - j)
346+ let aw = 10000000
347+ if ((n.caller != h))
348+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
349+ else if ((aw > o))
350+ then throw((("Minimum Withdraw Amount is " + toString(aw)) + "/10^8] WAVES."))
351+ else if ((0 > C))
352+ then throw((("Placed Withdraw Amount is going in negative State of " + toString(C)) + "/10^8] WAVES."))
353+ else [IntegerEntry("Previous_Balance", av), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + r), C), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(r), o, unit)]
327354 }
328355
329356
330357
331-@Callable(m)
332-func DeleteBlackListAddress (an) = {
333- let y = getString(this, ("addr_BLACKLISTED_" + an))
334- let ao = {
335- let I = getInteger(this, "Total_Black_Listed_Address")
336- if ($isInstanceOf(I, "Int"))
358+@Callable(n)
359+func BlackListAddress (ax) = {
360+ let z = getString(this, ("addr_BLACKLISTED_" + ax))
361+ let ay = {
362+ let J = getInteger(this, "Total_Black_Listed_Address")
363+ if ($isInstanceOf(J, "Int"))
337364 then {
338- let J = I
339- J
365+ let K = J
366+ K
340367 }
341368 else 0
342369 }
343- let ap = (ao - 1)
370+ let az = (ay + 1)
371+ if ((c > lastBlock.timestamp))
372+ then throw((e + toString(c)))
373+ else if ((n.caller != h))
374+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
375+ else if ((z == "Yes"))
376+ then throw("Address is already available in Blacklist.")
377+ else [StringEntry(("addr_BLACKLISTED_" + ax), "Yes"), IntegerEntry("Total_Black_Listed_Address", az)]
378+ }
379+
380+
381+
382+@Callable(n)
383+func DeleteBlackListAddress (ax) = {
384+ let z = getString(this, ("addr_BLACKLISTED_" + ax))
385+ let ay = {
386+ let J = getInteger(this, "Total_Black_Listed_Address")
387+ if ($isInstanceOf(J, "Int"))
388+ then {
389+ let K = J
390+ K
391+ }
392+ else 0
393+ }
394+ let az = (ay - 1)
344395 if ((c > lastBlock.timestamp))
345396 then throw(("Product Launch Timestamp is set at " + toString(c)))
346- else if ((m.caller != h))
397+ else if ((n.caller != h))
347398 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
348- else if ((y == "Yes"))
349- then [DeleteEntry(("addr_BLACKLISTED_" + an)), IntegerEntry("Total_Black_Listed_Address", ap)]
399+ else if ((z == "Yes"))
400+ then [DeleteEntry(("addr_BLACKLISTED_" + ax)), IntegerEntry("Total_Black_Listed_Address", az)]
350401 else throw("Address is not available in Blacklist.")
351402 }
352403
353404
354-@Verifier(aq)
355-func ar () = {
356- let I = aq
357- if (if ($isInstanceOf(I, "Order"))
405+@Verifier(aA)
406+func aB () = {
407+ let J = aA
408+ if (if ($isInstanceOf(J, "Order"))
358409 then true
359- else if ($isInstanceOf(I, "ExchangeTransaction"))
410+ else if ($isInstanceOf(J, "ExchangeTransaction"))
360411 then true
361- else if ($isInstanceOf(I, "MassTransferTransaction"))
412+ else if ($isInstanceOf(J, "MassTransferTransaction"))
362413 then true
363- else $isInstanceOf(I, "TransferTransaction"))
414+ else $isInstanceOf(J, "TransferTransaction"))
364415 then {
365- let as = I
416+ let aC = J
366417 false
367418 }
368- else sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey)
419+ else sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey)
369420 }
370421
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh"
55
66 let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt'
77
88 let c = 1695427860000
99
1010 let d = "WAVES"
1111
1212 let e = "Product Launch Timestamp is set at "
1313
1414 let f = "No payment attached, Please Attach Token in payment[1]."
1515
1616 let g = "Oracle is closed. Wait Until Oracle is Turned On."
1717
1818 let h = addressFromPublicKey(b)
1919
2020 let i = addressFromPublicKey(base58'6oay51Q6zPcFP9bSwUC4Potx2KGyD4AUjpL5uLR4QeRN')
2121
2222 let j = 900000
2323
2424 let k = 10000000
2525
2626 let l = 10000000000
2727
28-@Callable(m)
29-func placeoptionCall (n,o,p,q,r,s,t,u,v,w) = {
30- let x = toBase58String(m.caller.bytes)
31- let y = getString(this, ("addr_BLACKLISTED_" + q))
32- let z = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
33- let A = valueOrElse(getIntegerValue(((d + "_") + q)), 0)
34- let B = ((A - n) - j)
35- let C = v
28+let m = 100000000
29+
30+@Callable(n)
31+func placeoptionCall (o,p,q,r,s,t,u,v,w,x) = {
32+ let y = toBase58String(n.caller.bytes)
33+ let z = getString(this, ("addr_BLACKLISTED_" + r))
34+ let A = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
35+ let B = valueOrElse(getInteger(((d + "_") + r)), 0)
36+ let C = ((B - o) - j)
3637 let D = w
37- let E = o
38- let F = 1
39- let G = (E + F)
40- let H = {
41- let I = getInteger(this, "Total_Option_Orders")
42- if ($isInstanceOf(I, "Int"))
38+ let E = x
39+ let F = p
40+ let G = 1
41+ let H = (F + G)
42+ let I = {
43+ let J = getInteger(this, "Total_Option_Orders")
44+ if ($isInstanceOf(J, "Int"))
4345 then {
44- let J = I
45- J
46+ let K = J
47+ K
4648 }
4749 else 0
4850 }
49- let K = (H + 1)
50- let L = {
51- let I = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(E)))
52- if ($isInstanceOf(I, "Int"))
51+ let L = (I + 1)
52+ let M = {
53+ let J = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(F)))
54+ if ($isInstanceOf(J, "Int"))
5355 then {
54- let J = I
55- J
56+ let K = J
57+ K
5658 }
5759 else 0
5860 }
59- let M = (L + n)
60- let N = {
61- let I = getInteger(this, ("Total_Option_Orders_" + toString(E)))
62- if ($isInstanceOf(I, "Int"))
61+ let N = (M + o)
62+ let O = {
63+ let J = getInteger(this, ("Total_Option_Orders_" + toString(F)))
64+ if ($isInstanceOf(J, "Int"))
6365 then {
64- let J = I
65- J
66+ let K = J
67+ K
6668 }
6769 else 0
6870 }
69- let O = (N + 1)
70- let P = {
71- let I = getInteger(this, "Total_Calls")
72- if ($isInstanceOf(I, "Int"))
71+ let P = (O + 1)
72+ let Q = {
73+ let J = getInteger(this, "Total_Calls")
74+ if ($isInstanceOf(J, "Int"))
7375 then {
74- let J = I
75- J
76+ let K = J
77+ K
7678 }
7779 else 0
7880 }
79- let Q = (P + 1)
80- let R = {
81- let I = getInteger(this, ("Total_Calls_" + toString(E)))
82- if ($isInstanceOf(I, "Int"))
81+ let R = (Q + 1)
82+ let S = {
83+ let J = getInteger(this, ("Total_Calls_" + toString(F)))
84+ if ($isInstanceOf(J, "Int"))
8385 then {
84- let J = I
85- J
86+ let K = J
87+ K
8688 }
8789 else 0
8890 }
89- let S = (R + 1)
90- let T = {
91- let I = getInteger(this, (q + "_Total_Calls"))
92- if ($isInstanceOf(I, "Int"))
91+ let T = (S + 1)
92+ let U = {
93+ let J = getInteger(this, (r + "_Total_Calls"))
94+ if ($isInstanceOf(J, "Int"))
9395 then {
94- let J = I
95- J
96+ let K = J
97+ K
9698 }
9799 else 0
98100 }
99- let U = (T + 1)
100- let V = {
101- let I = getInteger(this, ((q + "_Total_Calls_") + toString(E)))
102- if ($isInstanceOf(I, "Int"))
101+ let V = (U + 1)
102+ let W = {
103+ let J = getInteger(this, ((r + "_Total_Calls_") + toString(F)))
104+ if ($isInstanceOf(J, "Int"))
103105 then {
104- let J = I
105- J
106+ let K = J
107+ K
106108 }
107109 else 0
108110 }
109- let W = (V + 1)
110- let X = fraction(z, 5, 100)
111- if (if ((m.caller != h))
112- then (m.caller != i)
111+ let X = (W + 1)
112+ let Y = fraction(A, 5, 100)
113+ if (if ((n.caller != h))
114+ then (n.caller != i)
113115 else false)
114116 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
115117 else if ((c > lastBlock.timestamp))
116118 then throw((e + toString(c)))
117- else if ((u == "CLOSE"))
119+ else if ((v == "CLOSE"))
118120 then throw(g)
119- else if ((y == "Yes"))
120- then throw((q + " Address is Blacklisted. Please contact Admin to Whitelist it."))
121- else if ((lastBlock.timestamp >= D))
121+ else if ((z == "Yes"))
122+ then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it."))
123+ else if ((lastBlock.timestamp >= E))
122124 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
123- else if ((M > X))
124- then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(X)) + ", Pending House Risk is ") + toString((X - L))) + ". Join in next Cycle."))
125- else if ((k > n))
125+ else if ((N > Y))
126+ then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Y)) + ", Pending House Risk is ") + toString((Y - M))) + ". Join in next Cycle."))
127+ else if ((k > o))
126128 then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES."))
127- else if ((n > l))
129+ else if ((o > l))
128130 then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES."))
129- else if ((0 > B))
130- then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(B)))
131- else if ((size(toString(v)) != 13))
131+ else if ((0 > C))
132+ then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(C)))
133+ else if ((size(toString(w)) != 13))
132134 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
133- else if ((size(toString(w)) != 13))
135+ else if ((size(toString(x)) != 13))
134136 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
135- else [StringEntry(("User_ID_" + q), p), IntegerEntry(((d + "_") + q), B), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + q) + "_") + toString(U)), toString(r)), IntegerEntry(((("Call_Amount_" + q) + "_") + toString(U)), n), StringEntry(((("Call_Start_End_" + q) + "_") + toString(U)), ((toString(E) + "_") + toString(G))), IntegerEntry("Total_Option_Orders", K), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(E)), M), IntegerEntry("Total_Pool_Liquidity", z), IntegerEntry(("Funds_At_Risk_" + toString(E)), X), IntegerEntry("Call_Limits", s), IntegerEntry("Put_Limits", t), IntegerEntry(("Total_Option_Orders_" + toString(E)), O), IntegerEntry("Total_Calls", Q), IntegerEntry(("Total_Calls_" + toString(E)), S), IntegerEntry((q + "_Total_Calls"), U), IntegerEntry(((q + "_Total_Calls_") + toString(E)), W), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), n, unit)]
137+ else [StringEntry(("User_ID_" + r), q), IntegerEntry(((d + "_") + r), C), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + r) + "_") + toString(V)), toString(s)), IntegerEntry(((("Call_Amount_" + r) + "_") + toString(V)), o), StringEntry(((("Call_Start_End_" + r) + "_") + toString(V)), ((toString(F) + "_") + toString(H))), IntegerEntry("Total_Option_Orders", L), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(F)), N), IntegerEntry("Total_Pool_Liquidity", A), IntegerEntry(("Funds_At_Risk_" + toString(F)), Y), IntegerEntry("Call_Limits", t), IntegerEntry("Put_Limits", u), IntegerEntry(("Total_Option_Orders_" + toString(F)), P), IntegerEntry("Total_Calls", R), IntegerEntry(("Total_Calls_" + toString(F)), T), IntegerEntry((r + "_Total_Calls"), V), IntegerEntry(((r + "_Total_Calls_") + toString(F)), X), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), o, unit)]
136138 }
137139
138140
139141
140-@Callable(m)
141-func placeoptionPut (n,o,p,q,r,s,t,u,v,w) = {
142- let x = toBase58String(m.caller.bytes)
143- let y = getString(this, ("addr_BLACKLISTED_" + q))
144- let z = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
145- let A = getIntegerValue(((d + "_") + q))
146- let B = ((A - n) - j)
147- let C = v
142+@Callable(n)
143+func placeoptionPut (o,p,q,r,s,t,u,v,w,x) = {
144+ let y = toBase58String(n.caller.bytes)
145+ let z = getString(this, ("addr_BLACKLISTED_" + r))
146+ let A = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
147+ let B = valueOrElse(getInteger(((d + "_") + r)), 0)
148+ let C = ((B - o) - j)
148149 let D = w
149- let E = o
150- let F = 1
151- let G = (E + F)
152- let H = {
153- let I = getInteger(this, "Total_Option_Orders")
154- if ($isInstanceOf(I, "Int"))
150+ let E = x
151+ let F = p
152+ let G = 1
153+ let H = (F + G)
154+ let I = {
155+ let J = getInteger(this, "Total_Option_Orders")
156+ if ($isInstanceOf(J, "Int"))
155157 then {
156- let J = I
157- J
158+ let K = J
159+ K
158160 }
159161 else 0
160162 }
161- let K = (H + 1)
162- let L = {
163- let I = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(E)))
164- if ($isInstanceOf(I, "Int"))
163+ let L = (I + 1)
164+ let M = {
165+ let J = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(F)))
166+ if ($isInstanceOf(J, "Int"))
165167 then {
166- let J = I
167- J
168+ let K = J
169+ K
168170 }
169171 else 0
170172 }
171- let M = (L + n)
172- let N = {
173- let I = getInteger(this, ("Total_Option_Orders_" + toString(E)))
174- if ($isInstanceOf(I, "Int"))
173+ let N = (M + o)
174+ let O = {
175+ let J = getInteger(this, ("Total_Option_Orders_" + toString(F)))
176+ if ($isInstanceOf(J, "Int"))
175177 then {
176- let J = I
177- J
178+ let K = J
179+ K
178180 }
179181 else 0
180182 }
181- let O = (N + 1)
182- let Y = {
183- let I = getInteger(this, "Total_Puts")
184- if ($isInstanceOf(I, "Int"))
183+ let P = (O + 1)
184+ let Z = {
185+ let J = getInteger(this, "Total_Puts")
186+ if ($isInstanceOf(J, "Int"))
185187 then {
186- let J = I
187- J
188+ let K = J
189+ K
188190 }
189191 else 0
190192 }
191- let Z = (Y + 1)
192- let aa = {
193- let I = getInteger(this, ("Total_Puts_" + toString(E)))
194- if ($isInstanceOf(I, "Int"))
193+ let aa = (Z + 1)
194+ let ab = {
195+ let J = getInteger(this, ("Total_Puts_" + toString(F)))
196+ if ($isInstanceOf(J, "Int"))
195197 then {
196- let J = I
197- J
198+ let K = J
199+ K
198200 }
199201 else 0
200202 }
201- let ab = (aa + 1)
202- let ac = {
203- let I = getInteger(this, (q + "_Total_Puts"))
204- if ($isInstanceOf(I, "Int"))
203+ let ac = (ab + 1)
204+ let ad = {
205+ let J = getInteger(this, (r + "_Total_Puts"))
206+ if ($isInstanceOf(J, "Int"))
205207 then {
206- let J = I
207- J
208+ let K = J
209+ K
208210 }
209211 else 0
210212 }
211- let ad = (ac + 1)
212- let ae = {
213- let I = getInteger(this, ((q + "_Total_Puts_") + toString(E)))
214- if ($isInstanceOf(I, "Int"))
213+ let ae = (ad + 1)
214+ let af = {
215+ let J = getInteger(this, ((r + "_Total_Puts_") + toString(F)))
216+ if ($isInstanceOf(J, "Int"))
215217 then {
216- let J = I
217- J
218+ let K = J
219+ K
218220 }
219221 else 0
220222 }
221- let af = (ae + 1)
222- let X = fraction(z, 5, 100)
223- if (if ((m.caller != h))
224- then (m.caller != i)
223+ let ag = (af + 1)
224+ let Y = fraction(A, 5, 100)
225+ if (if ((n.caller != h))
226+ then (n.caller != i)
225227 else false)
226228 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
227229 else if ((c > lastBlock.timestamp))
228230 then throw((e + toString(c)))
229- else if ((u == "CLOSE"))
231+ else if ((v == "CLOSE"))
230232 then throw(g)
231- else if ((y == "Yes"))
232- then throw((q + " Address is Blacklisted. Please contact Admin to Whitelist it."))
233- else if ((lastBlock.timestamp >= D))
233+ else if ((z == "Yes"))
234+ then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it."))
235+ else if ((lastBlock.timestamp >= E))
234236 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
235- else if ((M > X))
236- then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(X)) + ", Pending House Risk is ") + toString((X - L))) + ". Join in next Cycle."))
237- else if ((k > n))
237+ else if ((N > Y))
238+ then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Y)) + ", Pending House Risk is ") + toString((Y - M))) + ". Join in next Cycle."))
239+ else if ((k > o))
238240 then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES."))
239- else if ((n > l))
241+ else if ((o > l))
240242 then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES."))
241- else if ((0 > B))
242- then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(B)))
243- else if ((size(toString(v)) != 13))
243+ else if ((0 > C))
244+ then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(C)))
245+ else if ((size(toString(w)) != 13))
244246 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
245- else if ((size(toString(w)) != 13))
247+ else if ((size(toString(x)) != 13))
246248 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
247- else [StringEntry(("User_ID_" + q), p), IntegerEntry(((d + "_") + q), B), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + q) + "_") + toString(ad)), toString(r)), IntegerEntry(((("Put_Amount_" + q) + "_") + toString(ad)), n), StringEntry(((("Put_Start_End_" + q) + "_") + toString(ad)), ((toString(E) + "_") + toString(G))), IntegerEntry("Total_Option_Orders", K), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(E)), M), IntegerEntry("Total_Pool_Liquidity", z), IntegerEntry(("Funds_At_Risk_" + toString(E)), X), IntegerEntry("Call_Limits", s), IntegerEntry("Put_Limits", t), IntegerEntry(("Total_Option_Orders_" + toString(E)), O), IntegerEntry("Total_Puts", Z), IntegerEntry(("Total_Puts_" + toString(E)), ab), IntegerEntry((q + "_Total_Puts"), ad), IntegerEntry(((q + "_Total_Puts_") + toString(E)), af), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), n, unit)]
249+ else [StringEntry(("User_ID_" + r), q), IntegerEntry(((d + "_") + r), C), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + r) + "_") + toString(ae)), toString(s)), IntegerEntry(((("Put_Amount_" + r) + "_") + toString(ae)), o), StringEntry(((("Put_Start_End_" + r) + "_") + toString(ae)), ((toString(F) + "_") + toString(H))), IntegerEntry("Total_Option_Orders", L), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(F)), N), IntegerEntry("Total_Pool_Liquidity", A), IntegerEntry(("Funds_At_Risk_" + toString(F)), Y), IntegerEntry("Call_Limits", t), IntegerEntry("Put_Limits", u), IntegerEntry(("Total_Option_Orders_" + toString(F)), P), IntegerEntry("Total_Puts", aa), IntegerEntry(("Total_Puts_" + toString(F)), ac), IntegerEntry((r + "_Total_Puts"), ae), IntegerEntry(((r + "_Total_Puts_") + toString(F)), ag), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), o, unit)]
248250 }
249251
250252
251253
252-@Callable(m)
253-func DepositUserFunds () = {
254- let x = toBase58String(m.caller.bytes)
255- let ag = if ((size(m.payments) == 1))
256- then m.payments[0]
257- else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
258- let y = getString(this, ("addr_BLACKLISTED_" + x))
259- let ah = {
260- let I = getInteger(this, ((d + "_") + x))
261- if ($isInstanceOf(I, "Int"))
254+@Callable(n)
255+func Issue_Vouchers (ah,q,r) = {
256+ let ai = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
257+ let aj = (ai - ah)
258+ let ak = {
259+ let J = getInteger(this, ("Total_Vouchers_Issued_To_" + r))
260+ if ($isInstanceOf(J, "Int"))
262261 then {
263- let J = I
264- J
262+ let K = J
263+ K
265264 }
266265 else 0
267266 }
268- let ai = (ah + ag.amount)
269- let aj = {
270- let I = getInteger(this, "Deposit_Counter_ID")
271- if ($isInstanceOf(I, "Int"))
267+ let al = (ak + 1)
268+ let am = {
269+ let J = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + r))
270+ if ($isInstanceOf(J, "Int"))
272271 then {
273- let J = I
274- J
272+ let K = J
273+ K
275274 }
276275 else 0
277276 }
278- let ak = (aj + 1)
279- if ((c > lastBlock.timestamp))
280- then throw((e + toString(c)))
281- else if ((y == "Yes"))
282- then throw((x + " Address is Blacklisted. Please contact Admin to Whitelist it."))
283- else if (isDefined(ag.assetId))
284- then throw("Only WAVES is allowed to deposit at the moment")
285- else [IntegerEntry(((d + "_") + x), ai), IntegerEntry(((((toString(ak) + "_") + d) + "_") + x), ag.amount), IntegerEntry("Deposit_Counter_ID", ak)]
277+ let an = (am + ah)
278+ let ao = {
279+ let J = getInteger(this, (r + "_Voucher_Balance"))
280+ if ($isInstanceOf(J, "Int"))
281+ then {
282+ let K = J
283+ K
284+ }
285+ else 0
286+ }
287+ let ap = (ao + ah)
288+ if (if ((n.caller != h))
289+ then (n.caller != i)
290+ else false)
291+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
292+ else if ((0 >= ah))
293+ then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.")
294+ else if ((0 >= aj))
295+ then throw((("Updated Voucher Balance can't go in negative State of " + toString(aj)) + " /10^8 WAVES. Reduce the Voucher Amount."))
296+ else if ((ah > m))
297+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(m)) + "/10^8 Waves."))
298+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + r), al), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + r), an), IntegerEntry((r + "_Voucher_Balance"), ap), IntegerEntry("Available_Vouchers_Balance", aj)]
286299 }
287300
288301
289302
290-@Callable(m)
291-func WithdrawUserFunds (q,n) = {
292- let x = toBase58String(m.caller.bytes)
293- let al = getIntegerValue(((d + "_") + q))
294- let B = ((al - n) - j)
295- let am = 10000000
296- if ((m.caller != h))
297- then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
298- else if ((am > n))
299- then throw((("Minimum Withdraw Amount is " + toString(am)) + "/10^8] WAVES."))
300- else if ((0 > B))
301- then throw((("Placed Withdraw Amount is going in negative State of " + toString(B)) + "/10^8] WAVES."))
302- else [IntegerEntry("Previous_Balance", al), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + q), B), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(q), n, unit)]
303+@Callable(n)
304+func DepositUserFunds () = {
305+ let y = toBase58String(n.caller.bytes)
306+ let aq = if ((size(n.payments) == 1))
307+ then n.payments[0]
308+ else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
309+ let z = getString(this, ("addr_BLACKLISTED_" + y))
310+ let ar = {
311+ let J = getInteger(this, ((d + "_") + y))
312+ if ($isInstanceOf(J, "Int"))
313+ then {
314+ let K = J
315+ K
316+ }
317+ else 0
318+ }
319+ let as = (ar + aq.amount)
320+ let at = {
321+ let J = getInteger(this, "Deposit_Counter_ID")
322+ if ($isInstanceOf(J, "Int"))
323+ then {
324+ let K = J
325+ K
326+ }
327+ else 0
328+ }
329+ let au = (at + 1)
330+ if ((c > lastBlock.timestamp))
331+ then throw((e + toString(c)))
332+ else if ((z == "Yes"))
333+ then throw((y + " Address is Blacklisted. Please contact Admin to Whitelist it."))
334+ else if (isDefined(aq.assetId))
335+ then throw("Only WAVES is allowed to deposit at the moment")
336+ else [IntegerEntry(((d + "_") + y), as), IntegerEntry(((((toString(au) + "_") + d) + "_") + y), aq.amount), IntegerEntry("Deposit_Counter_ID", au)]
303337 }
304338
305339
306340
307-@Callable(m)
308-func BlackListAddress (an) = {
309- let y = getString(this, ("addr_BLACKLISTED_" + an))
310- let ao = {
311- let I = getInteger(this, "Total_Black_Listed_Address")
312- if ($isInstanceOf(I, "Int"))
313- then {
314- let J = I
315- J
316- }
317- else 0
318- }
319- let ap = (ao + 1)
320- if ((c > lastBlock.timestamp))
321- then throw((e + toString(c)))
322- else if ((m.caller != h))
323- then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
324- else if ((y == "Yes"))
325- then throw("Address is already available in Blacklist.")
326- else [StringEntry(("addr_BLACKLISTED_" + an), "Yes"), IntegerEntry("Total_Black_Listed_Address", ap)]
341+@Callable(n)
342+func WithdrawUserFunds (r,o) = {
343+ let y = toBase58String(n.caller.bytes)
344+ let av = getIntegerValue(((d + "_") + r))
345+ let C = ((av - o) - j)
346+ let aw = 10000000
347+ if ((n.caller != h))
348+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
349+ else if ((aw > o))
350+ then throw((("Minimum Withdraw Amount is " + toString(aw)) + "/10^8] WAVES."))
351+ else if ((0 > C))
352+ then throw((("Placed Withdraw Amount is going in negative State of " + toString(C)) + "/10^8] WAVES."))
353+ else [IntegerEntry("Previous_Balance", av), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + r), C), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(r), o, unit)]
327354 }
328355
329356
330357
331-@Callable(m)
332-func DeleteBlackListAddress (an) = {
333- let y = getString(this, ("addr_BLACKLISTED_" + an))
334- let ao = {
335- let I = getInteger(this, "Total_Black_Listed_Address")
336- if ($isInstanceOf(I, "Int"))
358+@Callable(n)
359+func BlackListAddress (ax) = {
360+ let z = getString(this, ("addr_BLACKLISTED_" + ax))
361+ let ay = {
362+ let J = getInteger(this, "Total_Black_Listed_Address")
363+ if ($isInstanceOf(J, "Int"))
337364 then {
338- let J = I
339- J
365+ let K = J
366+ K
340367 }
341368 else 0
342369 }
343- let ap = (ao - 1)
370+ let az = (ay + 1)
371+ if ((c > lastBlock.timestamp))
372+ then throw((e + toString(c)))
373+ else if ((n.caller != h))
374+ then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
375+ else if ((z == "Yes"))
376+ then throw("Address is already available in Blacklist.")
377+ else [StringEntry(("addr_BLACKLISTED_" + ax), "Yes"), IntegerEntry("Total_Black_Listed_Address", az)]
378+ }
379+
380+
381+
382+@Callable(n)
383+func DeleteBlackListAddress (ax) = {
384+ let z = getString(this, ("addr_BLACKLISTED_" + ax))
385+ let ay = {
386+ let J = getInteger(this, "Total_Black_Listed_Address")
387+ if ($isInstanceOf(J, "Int"))
388+ then {
389+ let K = J
390+ K
391+ }
392+ else 0
393+ }
394+ let az = (ay - 1)
344395 if ((c > lastBlock.timestamp))
345396 then throw(("Product Launch Timestamp is set at " + toString(c)))
346- else if ((m.caller != h))
397+ else if ((n.caller != h))
347398 then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it."))
348- else if ((y == "Yes"))
349- then [DeleteEntry(("addr_BLACKLISTED_" + an)), IntegerEntry("Total_Black_Listed_Address", ap)]
399+ else if ((z == "Yes"))
400+ then [DeleteEntry(("addr_BLACKLISTED_" + ax)), IntegerEntry("Total_Black_Listed_Address", az)]
350401 else throw("Address is not available in Blacklist.")
351402 }
352403
353404
354-@Verifier(aq)
355-func ar () = {
356- let I = aq
357- if (if ($isInstanceOf(I, "Order"))
405+@Verifier(aA)
406+func aB () = {
407+ let J = aA
408+ if (if ($isInstanceOf(J, "Order"))
358409 then true
359- else if ($isInstanceOf(I, "ExchangeTransaction"))
410+ else if ($isInstanceOf(J, "ExchangeTransaction"))
360411 then true
361- else if ($isInstanceOf(I, "MassTransferTransaction"))
412+ else if ($isInstanceOf(J, "MassTransferTransaction"))
362413 then true
363- else $isInstanceOf(I, "TransferTransaction"))
414+ else $isInstanceOf(J, "TransferTransaction"))
364415 then {
365- let as = I
416+ let aC = J
366417 false
367418 }
368- else sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey)
419+ else sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey)
369420 }
370421

github/deemru/w8io/026f985 
155.50 ms