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/YBYgAAAAAAtDdXJyZW5jeV9JRAIAAAAFV0FWRVMAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yAgAAADFPc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Y2tsaXN0LgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZJvos4=", "height": 2863249, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G3DSR7NU7XF51inS23QYzuDvgSHcpDJYRT4NCUZkKjC5 Next: FrPmnEQuz2mU8gmY4Tf2LZxHLET5kGGYLziAk2JFPNma Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | ||
26 | 26 | let l = 10000000000 | |
27 | 27 | ||
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) | |
36 | 37 | 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")) | |
43 | 45 | then { | |
44 | - | let | |
45 | - | | |
46 | + | let K = J | |
47 | + | K | |
46 | 48 | } | |
47 | 49 | else 0 | |
48 | 50 | } | |
49 | - | let | |
50 | - | let | |
51 | - | let | |
52 | - | if ($isInstanceOf( | |
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")) | |
53 | 55 | then { | |
54 | - | let | |
55 | - | | |
56 | + | let K = J | |
57 | + | K | |
56 | 58 | } | |
57 | 59 | else 0 | |
58 | 60 | } | |
59 | - | let | |
60 | - | let | |
61 | - | let | |
62 | - | if ($isInstanceOf( | |
61 | + | let N = (M + o) | |
62 | + | let O = { | |
63 | + | let J = getInteger(this, ("Total_Option_Orders_" + toString(F))) | |
64 | + | if ($isInstanceOf(J, "Int")) | |
63 | 65 | then { | |
64 | - | let | |
65 | - | | |
66 | + | let K = J | |
67 | + | K | |
66 | 68 | } | |
67 | 69 | else 0 | |
68 | 70 | } | |
69 | - | let | |
70 | - | let | |
71 | - | let | |
72 | - | if ($isInstanceOf( | |
71 | + | let P = (O + 1) | |
72 | + | let Q = { | |
73 | + | let J = getInteger(this, "Total_Calls") | |
74 | + | if ($isInstanceOf(J, "Int")) | |
73 | 75 | then { | |
74 | - | let | |
75 | - | | |
76 | + | let K = J | |
77 | + | K | |
76 | 78 | } | |
77 | 79 | else 0 | |
78 | 80 | } | |
79 | - | let | |
80 | - | let | |
81 | - | let | |
82 | - | if ($isInstanceOf( | |
81 | + | let R = (Q + 1) | |
82 | + | let S = { | |
83 | + | let J = getInteger(this, ("Total_Calls_" + toString(F))) | |
84 | + | if ($isInstanceOf(J, "Int")) | |
83 | 85 | then { | |
84 | - | let | |
85 | - | | |
86 | + | let K = J | |
87 | + | K | |
86 | 88 | } | |
87 | 89 | else 0 | |
88 | 90 | } | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | if ($isInstanceOf( | |
91 | + | let T = (S + 1) | |
92 | + | let U = { | |
93 | + | let J = getInteger(this, (r + "_Total_Calls")) | |
94 | + | if ($isInstanceOf(J, "Int")) | |
93 | 95 | then { | |
94 | - | let | |
95 | - | | |
96 | + | let K = J | |
97 | + | K | |
96 | 98 | } | |
97 | 99 | else 0 | |
98 | 100 | } | |
99 | - | let | |
100 | - | let | |
101 | - | let | |
102 | - | if ($isInstanceOf( | |
101 | + | let V = (U + 1) | |
102 | + | let W = { | |
103 | + | let J = getInteger(this, ((r + "_Total_Calls_") + toString(F))) | |
104 | + | if ($isInstanceOf(J, "Int")) | |
103 | 105 | then { | |
104 | - | let | |
105 | - | | |
106 | + | let K = J | |
107 | + | K | |
106 | 108 | } | |
107 | 109 | else 0 | |
108 | 110 | } | |
109 | - | let | |
110 | - | let | |
111 | - | if (if (( | |
112 | - | then ( | |
111 | + | let X = (W + 1) | |
112 | + | let Y = fraction(A, 5, 100) | |
113 | + | if (if ((n.caller != h)) | |
114 | + | then (n.caller != i) | |
113 | 115 | else false) | |
114 | 116 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
115 | 117 | else if ((c > lastBlock.timestamp)) | |
116 | 118 | then throw((e + toString(c))) | |
117 | - | else if (( | |
119 | + | else if ((v == "CLOSE")) | |
118 | 120 | then throw(g) | |
119 | - | else if (( | |
120 | - | then throw(( | |
121 | - | else if ((lastBlock.timestamp >= | |
121 | + | else if ((z == "Yes")) | |
122 | + | then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
123 | + | else if ((lastBlock.timestamp >= E)) | |
122 | 124 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
123 | - | else if (( | |
124 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
125 | - | else if ((k > | |
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)) | |
126 | 128 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
127 | - | else if (( | |
129 | + | else if ((o > l)) | |
128 | 130 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
129 | - | else if ((0 > | |
130 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString( | |
131 | - | else if ((size(toString( | |
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)) | |
132 | 134 | 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( | |
135 | + | else if ((size(toString(x)) != 13)) | |
134 | 136 | 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_" + | |
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)] | |
136 | 138 | } | |
137 | 139 | ||
138 | 140 | ||
139 | 141 | ||
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) | |
148 | 149 | 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")) | |
155 | 157 | then { | |
156 | - | let | |
157 | - | | |
158 | + | let K = J | |
159 | + | K | |
158 | 160 | } | |
159 | 161 | else 0 | |
160 | 162 | } | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | if ($isInstanceOf( | |
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")) | |
165 | 167 | then { | |
166 | - | let | |
167 | - | | |
168 | + | let K = J | |
169 | + | K | |
168 | 170 | } | |
169 | 171 | else 0 | |
170 | 172 | } | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | if ($isInstanceOf( | |
173 | + | let N = (M + o) | |
174 | + | let O = { | |
175 | + | let J = getInteger(this, ("Total_Option_Orders_" + toString(F))) | |
176 | + | if ($isInstanceOf(J, "Int")) | |
175 | 177 | then { | |
176 | - | let | |
177 | - | | |
178 | + | let K = J | |
179 | + | K | |
178 | 180 | } | |
179 | 181 | else 0 | |
180 | 182 | } | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
183 | + | let P = (O + 1) | |
184 | + | let Z = { | |
185 | + | let J = getInteger(this, "Total_Puts") | |
186 | + | if ($isInstanceOf(J, "Int")) | |
185 | 187 | then { | |
186 | - | let | |
187 | - | | |
188 | + | let K = J | |
189 | + | K | |
188 | 190 | } | |
189 | 191 | else 0 | |
190 | 192 | } | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
193 | + | let aa = (Z + 1) | |
194 | + | let ab = { | |
195 | + | let J = getInteger(this, ("Total_Puts_" + toString(F))) | |
196 | + | if ($isInstanceOf(J, "Int")) | |
195 | 197 | then { | |
196 | - | let | |
197 | - | | |
198 | + | let K = J | |
199 | + | K | |
198 | 200 | } | |
199 | 201 | else 0 | |
200 | 202 | } | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if ($isInstanceOf( | |
203 | + | let ac = (ab + 1) | |
204 | + | let ad = { | |
205 | + | let J = getInteger(this, (r + "_Total_Puts")) | |
206 | + | if ($isInstanceOf(J, "Int")) | |
205 | 207 | then { | |
206 | - | let | |
207 | - | | |
208 | + | let K = J | |
209 | + | K | |
208 | 210 | } | |
209 | 211 | else 0 | |
210 | 212 | } | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | if ($isInstanceOf( | |
213 | + | let ae = (ad + 1) | |
214 | + | let af = { | |
215 | + | let J = getInteger(this, ((r + "_Total_Puts_") + toString(F))) | |
216 | + | if ($isInstanceOf(J, "Int")) | |
215 | 217 | then { | |
216 | - | let | |
217 | - | | |
218 | + | let K = J | |
219 | + | K | |
218 | 220 | } | |
219 | 221 | else 0 | |
220 | 222 | } | |
221 | - | let | |
222 | - | let | |
223 | - | if (if (( | |
224 | - | then ( | |
223 | + | let ag = (af + 1) | |
224 | + | let Y = fraction(A, 5, 100) | |
225 | + | if (if ((n.caller != h)) | |
226 | + | then (n.caller != i) | |
225 | 227 | else false) | |
226 | 228 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
227 | 229 | else if ((c > lastBlock.timestamp)) | |
228 | 230 | then throw((e + toString(c))) | |
229 | - | else if (( | |
231 | + | else if ((v == "CLOSE")) | |
230 | 232 | then throw(g) | |
231 | - | else if (( | |
232 | - | then throw(( | |
233 | - | else if ((lastBlock.timestamp >= | |
233 | + | else if ((z == "Yes")) | |
234 | + | then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
235 | + | else if ((lastBlock.timestamp >= E)) | |
234 | 236 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
235 | - | else if (( | |
236 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
237 | - | else if ((k > | |
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)) | |
238 | 240 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
239 | - | else if (( | |
241 | + | else if ((o > l)) | |
240 | 242 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
241 | - | else if ((0 > | |
242 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString( | |
243 | - | else if ((size(toString( | |
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)) | |
244 | 246 | 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( | |
247 | + | else if ((size(toString(x)) != 13)) | |
246 | 248 | 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_" + | |
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)] | |
248 | 250 | } | |
249 | 251 | ||
250 | 252 | ||
251 | 253 | ||
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")) | |
262 | 261 | then { | |
263 | - | let | |
264 | - | | |
262 | + | let K = J | |
263 | + | K | |
265 | 264 | } | |
266 | 265 | else 0 | |
267 | 266 | } | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | if ($isInstanceOf( | |
267 | + | let al = (ak + 1) | |
268 | + | let am = { | |
269 | + | let J = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + r)) | |
270 | + | if ($isInstanceOf(J, "Int")) | |
272 | 271 | then { | |
273 | - | let | |
274 | - | | |
272 | + | let K = J | |
273 | + | K | |
275 | 274 | } | |
276 | 275 | else 0 | |
277 | 276 | } | |
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)] | |
286 | 299 | } | |
287 | 300 | ||
288 | 301 | ||
289 | 302 | ||
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)] | |
303 | 337 | } | |
304 | 338 | ||
305 | 339 | ||
306 | 340 | ||
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)] | |
327 | 354 | } | |
328 | 355 | ||
329 | 356 | ||
330 | 357 | ||
331 | - | @Callable( | |
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
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")) | |
337 | 364 | then { | |
338 | - | let | |
339 | - | | |
365 | + | let K = J | |
366 | + | K | |
340 | 367 | } | |
341 | 368 | else 0 | |
342 | 369 | } | |
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) | |
344 | 395 | if ((c > lastBlock.timestamp)) | |
345 | 396 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
346 | - | else if (( | |
397 | + | else if ((n.caller != h)) | |
347 | 398 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
348 | - | else if (( | |
349 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
399 | + | else if ((z == "Yes")) | |
400 | + | then [DeleteEntry(("addr_BLACKLISTED_" + ax)), IntegerEntry("Total_Black_Listed_Address", az)] | |
350 | 401 | else throw("Address is not available in Blacklist.") | |
351 | 402 | } | |
352 | 403 | ||
353 | 404 | ||
354 | - | @Verifier( | |
355 | - | func | |
356 | - | let | |
357 | - | if (if ($isInstanceOf( | |
405 | + | @Verifier(aA) | |
406 | + | func aB () = { | |
407 | + | let J = aA | |
408 | + | if (if ($isInstanceOf(J, "Order")) | |
358 | 409 | then true | |
359 | - | else if ($isInstanceOf( | |
410 | + | else if ($isInstanceOf(J, "ExchangeTransaction")) | |
360 | 411 | then true | |
361 | - | else if ($isInstanceOf( | |
412 | + | else if ($isInstanceOf(J, "MassTransferTransaction")) | |
362 | 413 | then true | |
363 | - | else $isInstanceOf( | |
414 | + | else $isInstanceOf(J, "TransferTransaction")) | |
364 | 415 | then { | |
365 | - | let | |
416 | + | let aC = J | |
366 | 417 | false | |
367 | 418 | } | |
368 | - | else sigVerify( | |
419 | + | else sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey) | |
369 | 420 | } | |
370 | 421 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh" | |
5 | 5 | ||
6 | 6 | let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt' | |
7 | 7 | ||
8 | 8 | let c = 1695427860000 | |
9 | 9 | ||
10 | 10 | let d = "WAVES" | |
11 | 11 | ||
12 | 12 | let e = "Product Launch Timestamp is set at " | |
13 | 13 | ||
14 | 14 | let f = "No payment attached, Please Attach Token in payment[1]." | |
15 | 15 | ||
16 | 16 | let g = "Oracle is closed. Wait Until Oracle is Turned On." | |
17 | 17 | ||
18 | 18 | let h = addressFromPublicKey(b) | |
19 | 19 | ||
20 | 20 | let i = addressFromPublicKey(base58'6oay51Q6zPcFP9bSwUC4Potx2KGyD4AUjpL5uLR4QeRN') | |
21 | 21 | ||
22 | 22 | let j = 900000 | |
23 | 23 | ||
24 | 24 | let k = 10000000 | |
25 | 25 | ||
26 | 26 | let l = 10000000000 | |
27 | 27 | ||
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) | |
36 | 37 | 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")) | |
43 | 45 | then { | |
44 | - | let | |
45 | - | | |
46 | + | let K = J | |
47 | + | K | |
46 | 48 | } | |
47 | 49 | else 0 | |
48 | 50 | } | |
49 | - | let | |
50 | - | let | |
51 | - | let | |
52 | - | if ($isInstanceOf( | |
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")) | |
53 | 55 | then { | |
54 | - | let | |
55 | - | | |
56 | + | let K = J | |
57 | + | K | |
56 | 58 | } | |
57 | 59 | else 0 | |
58 | 60 | } | |
59 | - | let | |
60 | - | let | |
61 | - | let | |
62 | - | if ($isInstanceOf( | |
61 | + | let N = (M + o) | |
62 | + | let O = { | |
63 | + | let J = getInteger(this, ("Total_Option_Orders_" + toString(F))) | |
64 | + | if ($isInstanceOf(J, "Int")) | |
63 | 65 | then { | |
64 | - | let | |
65 | - | | |
66 | + | let K = J | |
67 | + | K | |
66 | 68 | } | |
67 | 69 | else 0 | |
68 | 70 | } | |
69 | - | let | |
70 | - | let | |
71 | - | let | |
72 | - | if ($isInstanceOf( | |
71 | + | let P = (O + 1) | |
72 | + | let Q = { | |
73 | + | let J = getInteger(this, "Total_Calls") | |
74 | + | if ($isInstanceOf(J, "Int")) | |
73 | 75 | then { | |
74 | - | let | |
75 | - | | |
76 | + | let K = J | |
77 | + | K | |
76 | 78 | } | |
77 | 79 | else 0 | |
78 | 80 | } | |
79 | - | let | |
80 | - | let | |
81 | - | let | |
82 | - | if ($isInstanceOf( | |
81 | + | let R = (Q + 1) | |
82 | + | let S = { | |
83 | + | let J = getInteger(this, ("Total_Calls_" + toString(F))) | |
84 | + | if ($isInstanceOf(J, "Int")) | |
83 | 85 | then { | |
84 | - | let | |
85 | - | | |
86 | + | let K = J | |
87 | + | K | |
86 | 88 | } | |
87 | 89 | else 0 | |
88 | 90 | } | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | if ($isInstanceOf( | |
91 | + | let T = (S + 1) | |
92 | + | let U = { | |
93 | + | let J = getInteger(this, (r + "_Total_Calls")) | |
94 | + | if ($isInstanceOf(J, "Int")) | |
93 | 95 | then { | |
94 | - | let | |
95 | - | | |
96 | + | let K = J | |
97 | + | K | |
96 | 98 | } | |
97 | 99 | else 0 | |
98 | 100 | } | |
99 | - | let | |
100 | - | let | |
101 | - | let | |
102 | - | if ($isInstanceOf( | |
101 | + | let V = (U + 1) | |
102 | + | let W = { | |
103 | + | let J = getInteger(this, ((r + "_Total_Calls_") + toString(F))) | |
104 | + | if ($isInstanceOf(J, "Int")) | |
103 | 105 | then { | |
104 | - | let | |
105 | - | | |
106 | + | let K = J | |
107 | + | K | |
106 | 108 | } | |
107 | 109 | else 0 | |
108 | 110 | } | |
109 | - | let | |
110 | - | let | |
111 | - | if (if (( | |
112 | - | then ( | |
111 | + | let X = (W + 1) | |
112 | + | let Y = fraction(A, 5, 100) | |
113 | + | if (if ((n.caller != h)) | |
114 | + | then (n.caller != i) | |
113 | 115 | else false) | |
114 | 116 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
115 | 117 | else if ((c > lastBlock.timestamp)) | |
116 | 118 | then throw((e + toString(c))) | |
117 | - | else if (( | |
119 | + | else if ((v == "CLOSE")) | |
118 | 120 | then throw(g) | |
119 | - | else if (( | |
120 | - | then throw(( | |
121 | - | else if ((lastBlock.timestamp >= | |
121 | + | else if ((z == "Yes")) | |
122 | + | then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
123 | + | else if ((lastBlock.timestamp >= E)) | |
122 | 124 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
123 | - | else if (( | |
124 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
125 | - | else if ((k > | |
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)) | |
126 | 128 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
127 | - | else if (( | |
129 | + | else if ((o > l)) | |
128 | 130 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
129 | - | else if ((0 > | |
130 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString( | |
131 | - | else if ((size(toString( | |
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)) | |
132 | 134 | 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( | |
135 | + | else if ((size(toString(x)) != 13)) | |
134 | 136 | 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_" + | |
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)] | |
136 | 138 | } | |
137 | 139 | ||
138 | 140 | ||
139 | 141 | ||
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) | |
148 | 149 | 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")) | |
155 | 157 | then { | |
156 | - | let | |
157 | - | | |
158 | + | let K = J | |
159 | + | K | |
158 | 160 | } | |
159 | 161 | else 0 | |
160 | 162 | } | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | if ($isInstanceOf( | |
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")) | |
165 | 167 | then { | |
166 | - | let | |
167 | - | | |
168 | + | let K = J | |
169 | + | K | |
168 | 170 | } | |
169 | 171 | else 0 | |
170 | 172 | } | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | if ($isInstanceOf( | |
173 | + | let N = (M + o) | |
174 | + | let O = { | |
175 | + | let J = getInteger(this, ("Total_Option_Orders_" + toString(F))) | |
176 | + | if ($isInstanceOf(J, "Int")) | |
175 | 177 | then { | |
176 | - | let | |
177 | - | | |
178 | + | let K = J | |
179 | + | K | |
178 | 180 | } | |
179 | 181 | else 0 | |
180 | 182 | } | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
183 | + | let P = (O + 1) | |
184 | + | let Z = { | |
185 | + | let J = getInteger(this, "Total_Puts") | |
186 | + | if ($isInstanceOf(J, "Int")) | |
185 | 187 | then { | |
186 | - | let | |
187 | - | | |
188 | + | let K = J | |
189 | + | K | |
188 | 190 | } | |
189 | 191 | else 0 | |
190 | 192 | } | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
193 | + | let aa = (Z + 1) | |
194 | + | let ab = { | |
195 | + | let J = getInteger(this, ("Total_Puts_" + toString(F))) | |
196 | + | if ($isInstanceOf(J, "Int")) | |
195 | 197 | then { | |
196 | - | let | |
197 | - | | |
198 | + | let K = J | |
199 | + | K | |
198 | 200 | } | |
199 | 201 | else 0 | |
200 | 202 | } | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if ($isInstanceOf( | |
203 | + | let ac = (ab + 1) | |
204 | + | let ad = { | |
205 | + | let J = getInteger(this, (r + "_Total_Puts")) | |
206 | + | if ($isInstanceOf(J, "Int")) | |
205 | 207 | then { | |
206 | - | let | |
207 | - | | |
208 | + | let K = J | |
209 | + | K | |
208 | 210 | } | |
209 | 211 | else 0 | |
210 | 212 | } | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | if ($isInstanceOf( | |
213 | + | let ae = (ad + 1) | |
214 | + | let af = { | |
215 | + | let J = getInteger(this, ((r + "_Total_Puts_") + toString(F))) | |
216 | + | if ($isInstanceOf(J, "Int")) | |
215 | 217 | then { | |
216 | - | let | |
217 | - | | |
218 | + | let K = J | |
219 | + | K | |
218 | 220 | } | |
219 | 221 | else 0 | |
220 | 222 | } | |
221 | - | let | |
222 | - | let | |
223 | - | if (if (( | |
224 | - | then ( | |
223 | + | let ag = (af + 1) | |
224 | + | let Y = fraction(A, 5, 100) | |
225 | + | if (if ((n.caller != h)) | |
226 | + | then (n.caller != i) | |
225 | 227 | else false) | |
226 | 228 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
227 | 229 | else if ((c > lastBlock.timestamp)) | |
228 | 230 | then throw((e + toString(c))) | |
229 | - | else if (( | |
231 | + | else if ((v == "CLOSE")) | |
230 | 232 | then throw(g) | |
231 | - | else if (( | |
232 | - | then throw(( | |
233 | - | else if ((lastBlock.timestamp >= | |
233 | + | else if ((z == "Yes")) | |
234 | + | then throw((r + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
235 | + | else if ((lastBlock.timestamp >= E)) | |
234 | 236 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
235 | - | else if (( | |
236 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
237 | - | else if ((k > | |
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)) | |
238 | 240 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
239 | - | else if (( | |
241 | + | else if ((o > l)) | |
240 | 242 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
241 | - | else if ((0 > | |
242 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString( | |
243 | - | else if ((size(toString( | |
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)) | |
244 | 246 | 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( | |
247 | + | else if ((size(toString(x)) != 13)) | |
246 | 248 | 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_" + | |
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)] | |
248 | 250 | } | |
249 | 251 | ||
250 | 252 | ||
251 | 253 | ||
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")) | |
262 | 261 | then { | |
263 | - | let | |
264 | - | | |
262 | + | let K = J | |
263 | + | K | |
265 | 264 | } | |
266 | 265 | else 0 | |
267 | 266 | } | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | if ($isInstanceOf( | |
267 | + | let al = (ak + 1) | |
268 | + | let am = { | |
269 | + | let J = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + r)) | |
270 | + | if ($isInstanceOf(J, "Int")) | |
272 | 271 | then { | |
273 | - | let | |
274 | - | | |
272 | + | let K = J | |
273 | + | K | |
275 | 274 | } | |
276 | 275 | else 0 | |
277 | 276 | } | |
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)] | |
286 | 299 | } | |
287 | 300 | ||
288 | 301 | ||
289 | 302 | ||
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)] | |
303 | 337 | } | |
304 | 338 | ||
305 | 339 | ||
306 | 340 | ||
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)] | |
327 | 354 | } | |
328 | 355 | ||
329 | 356 | ||
330 | 357 | ||
331 | - | @Callable( | |
332 | - | func | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
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")) | |
337 | 364 | then { | |
338 | - | let | |
339 | - | | |
365 | + | let K = J | |
366 | + | K | |
340 | 367 | } | |
341 | 368 | else 0 | |
342 | 369 | } | |
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) | |
344 | 395 | if ((c > lastBlock.timestamp)) | |
345 | 396 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
346 | - | else if (( | |
397 | + | else if ((n.caller != h)) | |
347 | 398 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
348 | - | else if (( | |
349 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
399 | + | else if ((z == "Yes")) | |
400 | + | then [DeleteEntry(("addr_BLACKLISTED_" + ax)), IntegerEntry("Total_Black_Listed_Address", az)] | |
350 | 401 | else throw("Address is not available in Blacklist.") | |
351 | 402 | } | |
352 | 403 | ||
353 | 404 | ||
354 | - | @Verifier( | |
355 | - | func | |
356 | - | let | |
357 | - | if (if ($isInstanceOf( | |
405 | + | @Verifier(aA) | |
406 | + | func aB () = { | |
407 | + | let J = aA | |
408 | + | if (if ($isInstanceOf(J, "Order")) | |
358 | 409 | then true | |
359 | - | else if ($isInstanceOf( | |
410 | + | else if ($isInstanceOf(J, "ExchangeTransaction")) | |
360 | 411 | then true | |
361 | - | else if ($isInstanceOf( | |
412 | + | else if ($isInstanceOf(J, "MassTransferTransaction")) | |
362 | 413 | then true | |
363 | - | else $isInstanceOf( | |
414 | + | else $isInstanceOf(J, "TransferTransaction")) | |
364 | 415 | then { | |
365 | - | let | |
416 | + | let aC = J | |
366 | 417 | false | |
367 | 418 | } | |
368 | - | else sigVerify( | |
419 | + | else sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey) | |
369 | 420 | } | |
370 | 421 |
github/deemru/w8io/026f985 155.50 ms ◑