tx · DPjxpJMPMHjogUCQ7CzuPXyPA8tvA6TJVJTJfneuJ8UN 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2: -0.02300000 Waves 2023.11.26 22:35 [2860799] smart account 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2 > SELF 0.00000000 Waves
{ "type": 13, "id": "DPjxpJMPMHjogUCQ7CzuPXyPA8tvA6TJVJTJfneuJ8UN", "fee": 2300000, "feeAssetId": null, "timestamp": 1701027332338, "version": 2, "chainId": 84, "sender": "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2", "senderPublicKey": "DNKNL32sAVUYg4iGA3tW8Z6VXrENmGCmKfG6DLar82aP", "proofs": [ "e7fDXNSpAxvLNHjbWAzKi2FtfWHrqphbS8zAdkxJzJbYRFemgy3ozFzTmyDcdDcMR7P65g8XfPpq58AxAoghGUY" ], "script": "base64:AAIFAAAAAAAAADAIAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESABIECgIIARIDCgEIEgMKAQgAAAALAAAAABZwb29sX2xpcXVpZGl0eV9hZGRyZXNzAgAAACMzTjR3QmdZdFdnSlcyTFRSZWYyZWtXUVRyRVhDUmZYbUdMaAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIMjtmNqG7lU1WGDHPJboKlti9SIwxR/k7IFRCWjnzhpzAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABir9gFiAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBj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AAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CYkuoQ==", "height": 2860799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EyvaQ5x8v9CzgCoxRK3f42Rwd2YRgxA9WDP8G9whHpbM Next: Dixr8Lx5aBFR5ZDQJffPHATEMpYnoycwm9ESNry3m8PR Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | ||
20 | 20 | let i = 900000 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 10000000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 10000000000 | |
25 | 25 | ||
26 | - | let l = 10000000 | |
27 | - | ||
28 | - | let m = 10000000000 | |
29 | - | ||
30 | - | func n (o,p) = { | |
31 | - | let q = { | |
32 | - | let r = getInteger(this, ((d + "_") + o)) | |
33 | - | if ($isInstanceOf(r, "Int")) | |
26 | + | @Callable(l) | |
27 | + | func placeoptionCall (m,n,o,p,q,r,s,t,u,v) = { | |
28 | + | let w = toBase58String(l.caller.bytes) | |
29 | + | let x = getString(this, ("addr_BLACKLISTED_" + p)) | |
30 | + | let y = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
31 | + | let z = getIntegerValue(((d + "_") + p)) | |
32 | + | let A = ((z - m) - i) | |
33 | + | let B = u | |
34 | + | let C = v | |
35 | + | let D = n | |
36 | + | let E = 1 | |
37 | + | let F = (D + E) | |
38 | + | let G = { | |
39 | + | let H = getInteger(this, "Total_Option_Orders") | |
40 | + | if ($isInstanceOf(H, "Int")) | |
34 | 41 | then { | |
35 | - | let | |
36 | - | | |
42 | + | let I = H | |
43 | + | I | |
37 | 44 | } | |
38 | 45 | else 0 | |
39 | 46 | } | |
40 | - | let t = (q + p) | |
41 | - | t | |
47 | + | let J = (G + 1) | |
48 | + | let K = { | |
49 | + | let H = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(D))) | |
50 | + | if ($isInstanceOf(H, "Int")) | |
51 | + | then { | |
52 | + | let I = H | |
53 | + | I | |
54 | + | } | |
55 | + | else 0 | |
56 | + | } | |
57 | + | let L = (K + m) | |
58 | + | let M = { | |
59 | + | let H = getInteger(this, ("Total_Option_Orders_" + toString(D))) | |
60 | + | if ($isInstanceOf(H, "Int")) | |
61 | + | then { | |
62 | + | let I = H | |
63 | + | I | |
64 | + | } | |
65 | + | else 0 | |
66 | + | } | |
67 | + | let N = (M + 1) | |
68 | + | let O = { | |
69 | + | let H = getInteger(this, "Total_Calls") | |
70 | + | if ($isInstanceOf(H, "Int")) | |
71 | + | then { | |
72 | + | let I = H | |
73 | + | I | |
74 | + | } | |
75 | + | else 0 | |
76 | + | } | |
77 | + | let P = (O + 1) | |
78 | + | let Q = { | |
79 | + | let H = getInteger(this, ("Total_Calls_" + toString(D))) | |
80 | + | if ($isInstanceOf(H, "Int")) | |
81 | + | then { | |
82 | + | let I = H | |
83 | + | I | |
84 | + | } | |
85 | + | else 0 | |
86 | + | } | |
87 | + | let R = (Q + 1) | |
88 | + | let S = { | |
89 | + | let H = getInteger(this, (p + "_Total_Calls")) | |
90 | + | if ($isInstanceOf(H, "Int")) | |
91 | + | then { | |
92 | + | let I = H | |
93 | + | I | |
94 | + | } | |
95 | + | else 0 | |
96 | + | } | |
97 | + | let T = (S + 1) | |
98 | + | let U = { | |
99 | + | let H = getInteger(this, ((p + "_Total_Calls_") + toString(D))) | |
100 | + | if ($isInstanceOf(H, "Int")) | |
101 | + | then { | |
102 | + | let I = H | |
103 | + | I | |
104 | + | } | |
105 | + | else 0 | |
106 | + | } | |
107 | + | let V = (U + 1) | |
108 | + | let W = fraction(y, 5, 100) | |
109 | + | if ((l.caller != h)) | |
110 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
111 | + | else if ((c > lastBlock.timestamp)) | |
112 | + | then throw((e + toString(c))) | |
113 | + | else if ((t == "CLOSE")) | |
114 | + | then throw(g) | |
115 | + | else if ((x == "Yes")) | |
116 | + | then throw((p + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
117 | + | else if ((lastBlock.timestamp >= C)) | |
118 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
119 | + | else if ((L > W)) | |
120 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(W)) + ", Pending House Risk is ") + toString((W - K))) + ". Join in next Cycle.")) | |
121 | + | else if ((j > m)) | |
122 | + | then throw((("Placed Order Size is less than [" + toString(j)) + "/10^8] WAVES.")) | |
123 | + | else if ((m > k)) | |
124 | + | then throw((("Placed Order Size is more than [" + toString(k)) + "/10^8] WAVES.")) | |
125 | + | else if ((0 > A)) | |
126 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(A))) | |
127 | + | else if ((size(toString(u)) != 13)) | |
128 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
129 | + | else if ((size(toString(v)) != 13)) | |
130 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
131 | + | else [StringEntry(("User_ID_" + p), o), IntegerEntry(((d + "_") + p), A), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Call_" + p) + "_") + toString(T)), toString(q)), IntegerEntry(((("Call_Amount_" + p) + "_") + toString(T)), m), StringEntry(((("Call_Start_End_" + p) + "_") + toString(T)), ((toString(D) + "_") + toString(F))), IntegerEntry("Total_Option_Orders", J), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(D)), L), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(D)), W), IntegerEntry("Call_Limits", r), IntegerEntry("Put_Limits", s), IntegerEntry(("Total_Option_Orders_" + toString(D)), N), IntegerEntry("Total_Calls", P), IntegerEntry(("Total_Calls_" + toString(D)), R), IntegerEntry((p + "_Total_Calls"), T), IntegerEntry(((p + "_Total_Calls_") + toString(D)), V), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), m, unit)] | |
42 | 132 | } | |
43 | 133 | ||
44 | 134 | ||
45 | - | @Callable(u) | |
46 | - | func placeoptionCall (p,v,w,o,x,y,z,A,B,C) = { | |
47 | - | let D = toBase58String(u.caller.bytes) | |
48 | - | let E = getString(this, ("addr_BLACKLISTED_" + o)) | |
49 | - | let F = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
50 | - | let G = getIntegerValue(((d + "_") + o)) | |
51 | - | let H = ((G - p) - i) | |
52 | - | let I = B | |
53 | - | let J = C | |
54 | - | let K = v | |
55 | - | let L = 1 | |
56 | - | let M = (K + L) | |
57 | - | let N = { | |
58 | - | let r = getInteger(this, "Total_Option_Orders") | |
59 | - | if ($isInstanceOf(r, "Int")) | |
135 | + | ||
136 | + | @Callable(l) | |
137 | + | func placeoptionPut (m,n,o,p,q,r,s,t,u,v) = { | |
138 | + | let w = toBase58String(l.caller.bytes) | |
139 | + | let x = getString(this, ("addr_BLACKLISTED_" + p)) | |
140 | + | let y = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
141 | + | let z = getIntegerValue(((d + "_") + p)) | |
142 | + | let A = ((z - m) - i) | |
143 | + | let B = u | |
144 | + | let C = v | |
145 | + | let D = n | |
146 | + | let E = 1 | |
147 | + | let F = (D + E) | |
148 | + | let G = { | |
149 | + | let H = getInteger(this, "Total_Option_Orders") | |
150 | + | if ($isInstanceOf(H, "Int")) | |
60 | 151 | then { | |
61 | - | let | |
62 | - | | |
152 | + | let I = H | |
153 | + | I | |
63 | 154 | } | |
64 | 155 | else 0 | |
65 | 156 | } | |
66 | - | let | |
67 | - | let | |
68 | - | let | |
69 | - | if ($isInstanceOf( | |
157 | + | let J = (G + 1) | |
158 | + | let K = { | |
159 | + | let H = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(D))) | |
160 | + | if ($isInstanceOf(H, "Int")) | |
70 | 161 | then { | |
71 | - | let | |
72 | - | | |
162 | + | let I = H | |
163 | + | I | |
73 | 164 | } | |
74 | 165 | else 0 | |
75 | 166 | } | |
76 | - | let | |
77 | - | let | |
78 | - | let | |
79 | - | if ($isInstanceOf( | |
167 | + | let L = (K + m) | |
168 | + | let M = { | |
169 | + | let H = getInteger(this, ("Total_Option_Orders_" + toString(D))) | |
170 | + | if ($isInstanceOf(H, "Int")) | |
80 | 171 | then { | |
81 | - | let | |
82 | - | | |
172 | + | let I = H | |
173 | + | I | |
83 | 174 | } | |
84 | 175 | else 0 | |
85 | 176 | } | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | if ($isInstanceOf( | |
177 | + | let N = (M + 1) | |
178 | + | let X = { | |
179 | + | let H = getInteger(this, "Total_Puts") | |
180 | + | if ($isInstanceOf(H, "Int")) | |
90 | 181 | then { | |
91 | - | let s = r | |
92 | - | s | |
93 | - | } | |
94 | - | else 0 | |
95 | - | } | |
96 | - | let U = (T + 1) | |
97 | - | let V = { | |
98 | - | let r = getInteger(this, ("Total_Calls_" + toString(K))) | |
99 | - | if ($isInstanceOf(r, "Int")) | |
100 | - | then { | |
101 | - | let s = r | |
102 | - | s | |
103 | - | } | |
104 | - | else 0 | |
105 | - | } | |
106 | - | let W = (V + 1) | |
107 | - | let X = { | |
108 | - | let r = getInteger(this, (o + "_Total_Calls")) | |
109 | - | if ($isInstanceOf(r, "Int")) | |
110 | - | then { | |
111 | - | let s = r | |
112 | - | s | |
182 | + | let I = H | |
183 | + | I | |
113 | 184 | } | |
114 | 185 | else 0 | |
115 | 186 | } | |
116 | 187 | let Y = (X + 1) | |
117 | 188 | let Z = { | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
189 | + | let H = getInteger(this, ("Total_Puts_" + toString(D))) | |
190 | + | if ($isInstanceOf(H, "Int")) | |
120 | 191 | then { | |
121 | - | let | |
122 | - | | |
192 | + | let I = H | |
193 | + | I | |
123 | 194 | } | |
124 | 195 | else 0 | |
125 | 196 | } | |
126 | 197 | let aa = (Z + 1) | |
127 | - | let ab = fraction(F, 5, 100) | |
128 | - | if ((c > lastBlock.timestamp)) | |
129 | - | then throw((e + toString(c))) | |
130 | - | else if ((A == "CLOSE")) | |
131 | - | then throw(g) | |
132 | - | else if ((E == "Yes")) | |
133 | - | then throw((o + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
134 | - | else if ((lastBlock.timestamp >= J)) | |
135 | - | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
136 | - | else if ((Q > ab)) | |
137 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
138 | - | else if ((l > p)) | |
139 | - | then throw((("Placed Order Size is less than [" + toString(l)) + "/10^8] WAVES.")) | |
140 | - | else if ((p > m)) | |
141 | - | then throw((("Placed Order Size is more than [" + toString(m)) + "/10^8] WAVES.")) | |
142 | - | else if ((0 > H)) | |
143 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(H))) | |
144 | - | else if ((size(toString(B)) != 13)) | |
145 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
146 | - | else if ((size(toString(C)) != 13)) | |
147 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
148 | - | else [StringEntry(("User_ID_" + o), w), IntegerEntry(((d + "_") + o), H), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Call_" + o) + "_") + toString(Y)), toString(x)), IntegerEntry(((("Call_Amount_" + o) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + o) + "_") + toString(Y)), ((toString(K) + "_") + toString(M))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(K)), Q), IntegerEntry("Total_Pool_Liquidity", F), IntegerEntry(("Funds_At_Risk_" + toString(K)), ab), IntegerEntry("Call_Limits", y), IntegerEntry("Put_Limits", z), IntegerEntry(("Total_Option_Orders_" + toString(K)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(K)), W), IntegerEntry((o + "_Total_Calls"), Y), IntegerEntry(((o + "_Total_Calls_") + toString(K)), aa), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
198 | + | let ab = { | |
199 | + | let H = getInteger(this, (p + "_Total_Puts")) | |
200 | + | if ($isInstanceOf(H, "Int")) | |
201 | + | then { | |
202 | + | let I = H | |
203 | + | I | |
204 | + | } | |
205 | + | else 0 | |
206 | + | } | |
207 | + | let ac = (ab + 1) | |
208 | + | let ad = { | |
209 | + | let H = getInteger(this, ((p + "_Total_Puts_") + toString(D))) | |
210 | + | if ($isInstanceOf(H, "Int")) | |
211 | + | then { | |
212 | + | let I = H | |
213 | + | I | |
214 | + | } | |
215 | + | else 0 | |
216 | + | } | |
217 | + | let ae = (ad + 1) | |
218 | + | let W = fraction(y, 5, 100) | |
219 | + | if ((l.caller != h)) | |
220 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
221 | + | else if ((c > lastBlock.timestamp)) | |
222 | + | then throw((e + toString(c))) | |
223 | + | else if ((t == "CLOSE")) | |
224 | + | then throw(g) | |
225 | + | else if ((x == "Yes")) | |
226 | + | then throw((p + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
227 | + | else if ((lastBlock.timestamp >= C)) | |
228 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
229 | + | else if ((L > W)) | |
230 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(W)) + ", Pending House Risk is ") + toString((W - K))) + ". Join in next Cycle.")) | |
231 | + | else if ((j > m)) | |
232 | + | then throw((("Placed Order Size is less than [" + toString(j)) + "/10^8] WAVES.")) | |
233 | + | else if ((m > k)) | |
234 | + | then throw((("Placed Order Size is more than [" + toString(k)) + "/10^8] WAVES.")) | |
235 | + | else if ((0 > A)) | |
236 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(A))) | |
237 | + | else if ((size(toString(u)) != 13)) | |
238 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
239 | + | else if ((size(toString(v)) != 13)) | |
240 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
241 | + | else [StringEntry(("User_ID_" + p), o), IntegerEntry(((d + "_") + p), A), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Put_" + p) + "_") + toString(ac)), toString(q)), IntegerEntry(((("Put_Amount_" + p) + "_") + toString(ac)), m), StringEntry(((("Put_Start_End_" + p) + "_") + toString(ac)), ((toString(D) + "_") + toString(F))), IntegerEntry("Total_Option_Orders", J), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(D)), L), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(D)), W), IntegerEntry("Call_Limits", r), IntegerEntry("Put_Limits", s), IntegerEntry(("Total_Option_Orders_" + toString(D)), N), IntegerEntry("Total_Puts", Y), IntegerEntry(("Total_Puts_" + toString(D)), aa), IntegerEntry((p + "_Total_Puts"), ac), IntegerEntry(((p + "_Total_Puts_") + toString(D)), ae), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), m, unit)] | |
149 | 242 | } | |
150 | 243 | ||
151 | 244 | ||
152 | 245 | ||
153 | - | @Callable(u) | |
154 | - | func placeoptionPut (p,v,w,o,x,y,z,A,B,C) = { | |
155 | - | let D = toBase58String(u.caller.bytes) | |
156 | - | let E = getString(this, ("addr_BLACKLISTED_" + o)) | |
157 | - | let F = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
158 | - | let G = getIntegerValue(((d + "_") + o)) | |
159 | - | let H = ((G - p) - i) | |
160 | - | let I = B | |
161 | - | let J = C | |
162 | - | let K = v | |
163 | - | let L = 1 | |
164 | - | let M = (K + L) | |
165 | - | let N = { | |
166 | - | let r = getInteger(this, "Total_Option_Orders") | |
167 | - | if ($isInstanceOf(r, "Int")) | |
246 | + | @Callable(l) | |
247 | + | func DepositUserFunds () = { | |
248 | + | let w = toBase58String(l.caller.bytes) | |
249 | + | let af = if ((size(l.payments) == 1)) | |
250 | + | then l.payments[0] | |
251 | + | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
252 | + | let x = getString(this, ("addr_BLACKLISTED_" + w)) | |
253 | + | let ag = { | |
254 | + | let H = getInteger(this, ((d + "_") + w)) | |
255 | + | if ($isInstanceOf(H, "Int")) | |
168 | 256 | then { | |
169 | - | let | |
170 | - | | |
257 | + | let I = H | |
258 | + | I | |
171 | 259 | } | |
172 | 260 | else 0 | |
173 | 261 | } | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | if ($isInstanceOf( | |
262 | + | let ah = (ag + af.amount) | |
263 | + | let ai = { | |
264 | + | let H = getInteger(this, "Deposit_Counter_ID") | |
265 | + | if ($isInstanceOf(H, "Int")) | |
178 | 266 | then { | |
179 | - | let s = r | |
180 | - | s | |
181 | - | } | |
182 | - | else 0 | |
183 | - | } | |
184 | - | let Q = (P + p) | |
185 | - | let R = { | |
186 | - | let r = getInteger(this, ("Total_Option_Orders_" + toString(K))) | |
187 | - | if ($isInstanceOf(r, "Int")) | |
188 | - | then { | |
189 | - | let s = r | |
190 | - | s | |
191 | - | } | |
192 | - | else 0 | |
193 | - | } | |
194 | - | let S = (R + 1) | |
195 | - | let ac = { | |
196 | - | let r = getInteger(this, "Total_Puts") | |
197 | - | if ($isInstanceOf(r, "Int")) | |
198 | - | then { | |
199 | - | let s = r | |
200 | - | s | |
201 | - | } | |
202 | - | else 0 | |
203 | - | } | |
204 | - | let ad = (ac + 1) | |
205 | - | let ae = { | |
206 | - | let r = getInteger(this, ("Total_Puts_" + toString(K))) | |
207 | - | if ($isInstanceOf(r, "Int")) | |
208 | - | then { | |
209 | - | let s = r | |
210 | - | s | |
211 | - | } | |
212 | - | else 0 | |
213 | - | } | |
214 | - | let af = (ae + 1) | |
215 | - | let ag = { | |
216 | - | let r = getInteger(this, (o + "_Total_Puts")) | |
217 | - | if ($isInstanceOf(r, "Int")) | |
218 | - | then { | |
219 | - | let s = r | |
220 | - | s | |
221 | - | } | |
222 | - | else 0 | |
223 | - | } | |
224 | - | let ah = (ag + 1) | |
225 | - | let ai = { | |
226 | - | let r = getInteger(this, ((o + "_Total_Puts_") + toString(K))) | |
227 | - | if ($isInstanceOf(r, "Int")) | |
228 | - | then { | |
229 | - | let s = r | |
230 | - | s | |
267 | + | let I = H | |
268 | + | I | |
231 | 269 | } | |
232 | 270 | else 0 | |
233 | 271 | } | |
234 | 272 | let aj = (ai + 1) | |
235 | - | let ab = fraction(F, 5, 100) | |
236 | - | if ((u.caller != h)) | |
237 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
238 | - | else if ((c > lastBlock.timestamp)) | |
239 | - | then throw((e + toString(c))) | |
240 | - | else if ((A == "CLOSE")) | |
241 | - | then throw(g) | |
242 | - | else if ((E == "Yes")) | |
243 | - | then throw((o + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
244 | - | else if ((lastBlock.timestamp >= J)) | |
245 | - | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
246 | - | else if ((Q > ab)) | |
247 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
248 | - | else if ((l > p)) | |
249 | - | then throw((("Placed Order Size is less than [" + toString(l)) + "/10^8] WAVES.")) | |
250 | - | else if ((p > m)) | |
251 | - | then throw((("Placed Order Size is more than [" + toString(m)) + "/10^8] WAVES.")) | |
252 | - | else if ((0 > H)) | |
253 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(H))) | |
254 | - | else if ((size(toString(B)) != 13)) | |
255 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
256 | - | else if ((size(toString(C)) != 13)) | |
257 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
258 | - | else [StringEntry(("User_ID_" + o), w), IntegerEntry(((d + "_") + o), H), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Put_" + o) + "_") + toString(ah)), toString(x)), IntegerEntry(((("Put_Amount_" + o) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + o) + "_") + toString(ah)), ((toString(K) + "_") + toString(M))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(K)), Q), IntegerEntry("Total_Pool_Liquidity", F), IntegerEntry(("Funds_At_Risk_" + toString(K)), ab), IntegerEntry("Call_Limits", y), IntegerEntry("Put_Limits", z), IntegerEntry(("Total_Option_Orders_" + toString(K)), S), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(K)), af), IntegerEntry((o + "_Total_Puts"), ah), IntegerEntry(((o + "_Total_Puts_") + toString(K)), aj), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
273 | + | if ((c > lastBlock.timestamp)) | |
274 | + | then throw((e + toString(c))) | |
275 | + | else if ((x == "Yes")) | |
276 | + | then throw((w + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
277 | + | else if (isDefined(af.assetId)) | |
278 | + | then throw("Only WAVES is allowed to deposit at the moment") | |
279 | + | else [IntegerEntry(((d + "_") + w), ah), IntegerEntry(((((toString(aj) + "_") + d) + "_") + w), af.amount), IntegerEntry("Deposit_Counter_ID", aj)] | |
259 | 280 | } | |
260 | 281 | ||
261 | 282 | ||
262 | 283 | ||
263 | - | @Callable(u) | |
264 | - | func DepositUserFunds () = { | |
265 | - | let D = toBase58String(u.caller.bytes) | |
266 | - | let ak = if ((size(u.payments) == 1)) | |
267 | - | then u.payments[0] | |
268 | - | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
269 | - | let E = getString(this, ("addr_BLACKLISTED_" + D)) | |
270 | - | let q = { | |
271 | - | let r = getInteger(this, ((d + "_") + D)) | |
272 | - | if ($isInstanceOf(r, "Int")) | |
273 | - | then { | |
274 | - | let s = r | |
275 | - | s | |
276 | - | } | |
277 | - | else 0 | |
278 | - | } | |
279 | - | let t = (q + ak.amount) | |
280 | - | let al = { | |
281 | - | let r = getInteger(this, "Deposit_Counter_ID") | |
282 | - | if ($isInstanceOf(r, "Int")) | |
283 | - | then { | |
284 | - | let s = r | |
285 | - | s | |
286 | - | } | |
287 | - | else 0 | |
288 | - | } | |
289 | - | let am = (al + 1) | |
290 | - | if ((c > lastBlock.timestamp)) | |
291 | - | then throw((e + toString(c))) | |
292 | - | else if ((E == "Yes")) | |
293 | - | then throw((D + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
294 | - | else if (isDefined(ak.assetId)) | |
295 | - | then throw("Only WAVES is allowed to deposit at the moment") | |
296 | - | else [IntegerEntry(((d + "_") + D), t), IntegerEntry(((((toString(am) + "_") + d) + "_") + D), ak.amount), IntegerEntry("Deposit_Counter_ID", am)] | |
284 | + | @Callable(l) | |
285 | + | func WithdrawUserFunds (p,m) = { | |
286 | + | let w = toBase58String(l.caller.bytes) | |
287 | + | let ak = getIntegerValue(((d + "_") + p)) | |
288 | + | let A = ((ak - m) - i) | |
289 | + | let al = 10000000 | |
290 | + | if ((l.caller != h)) | |
291 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
292 | + | else if ((al > m)) | |
293 | + | then throw((("Minimum Withdraw Amount is " + toString(al)) + "/10^8] WAVES.")) | |
294 | + | else if ((0 > A)) | |
295 | + | then throw((("Placed Withdraw Amount is going in negative State of " + toString(A)) + "/10^8] WAVES.")) | |
296 | + | else [IntegerEntry("Previous_Balance", ak), IntegerEntry("Network_Fee_To_Withdraw", i), IntegerEntry(((d + "_") + p), A), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(p), m, unit)] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | - | @Callable(u) | |
302 | - | func Fill_Vouchers_Liquidity () = { | |
303 | - | let D = toBase58String(u.caller.bytes) | |
304 | - | let ak = if ((size(u.payments) == 1)) | |
305 | - | then u.payments[0] | |
306 | - | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
301 | + | @Callable(l) | |
302 | + | func BlackListAddress (am) = { | |
303 | + | let x = getString(this, ("addr_BLACKLISTED_" + am)) | |
307 | 304 | let an = { | |
308 | - | let | |
309 | - | if ($isInstanceOf( | |
305 | + | let H = getInteger(this, "Total_Black_Listed_Address") | |
306 | + | if ($isInstanceOf(H, "Int")) | |
310 | 307 | then { | |
311 | - | let | |
312 | - | | |
308 | + | let I = H | |
309 | + | I | |
313 | 310 | } | |
314 | 311 | else 0 | |
315 | 312 | } | |
316 | - | let ao = (an + ak.amount) | |
317 | - | let ap = { | |
318 | - | let r = getInteger(this, "Vouchers_Counter_ID") | |
319 | - | if ($isInstanceOf(r, "Int")) | |
320 | - | then { | |
321 | - | let s = r | |
322 | - | s | |
323 | - | } | |
324 | - | else 0 | |
325 | - | } | |
326 | - | let aq = (ap + 1) | |
327 | - | if (isDefined(ak.assetId)) | |
328 | - | then throw("Only WAVES is allowed to deposit at the moment") | |
329 | - | else [IntegerEntry("Available_Vouchers_Balance", ao), IntegerEntry((toString(aq) + "_Voucher_Amount"), ak.amount), IntegerEntry("Vouchers_Counter_ID", aq)] | |
313 | + | let ao = (an + 1) | |
314 | + | if ((c > lastBlock.timestamp)) | |
315 | + | then throw((e + toString(c))) | |
316 | + | else if ((l.caller != h)) | |
317 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
318 | + | else if ((x == "Yes")) | |
319 | + | then throw("Address is already available in Blacklist.") | |
320 | + | else [StringEntry(("addr_BLACKLISTED_" + am), "Yes"), IntegerEntry("Total_Black_Listed_Address", ao)] | |
330 | 321 | } | |
331 | 322 | ||
332 | 323 | ||
333 | 324 | ||
334 | - | @Callable(u) | |
335 | - | func Play_With_Vouchers (p,v,w,o,x,y,z,A,B,C) = { | |
336 | - | let ar = valueOrErrorMessage(getInteger("Available_Vouchers_Balance"), "No Voucher Balance was found.") | |
337 | - | let as = n(o, p) | |
338 | - | let at = (ar - p) | |
339 | - | let au = invoke(this, "placeoptionCall", [p, v, w, o, x, y, z, A, B, C], nil) | |
340 | - | if ((u.caller != h)) | |
341 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
342 | - | else if ((0 > at)) | |
343 | - | then throw((("Requested Voucher Amount is going in negative State of " + toString(at)) + "/10^8] WAVES.")) | |
344 | - | else if ((au == au)) | |
345 | - | then [IntegerEntry("Available_Vouchers_Balance", at)] | |
346 | - | else throw("Strict value is not equal to itself.") | |
347 | - | } | |
348 | - | ||
349 | - | ||
350 | - | ||
351 | - | @Callable(u) | |
352 | - | func WithdrawUserFunds (o,p) = { | |
353 | - | let D = toBase58String(u.caller.bytes) | |
354 | - | let av = getIntegerValue(((d + "_") + o)) | |
355 | - | let H = ((av - p) - i) | |
356 | - | let aw = 10000000 | |
357 | - | if ((u.caller != h)) | |
358 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
359 | - | else if ((aw > p)) | |
360 | - | then throw((("Minimum Withdraw Amount is " + toString(aw)) + "/10^8] WAVES.")) | |
361 | - | else if ((0 > H)) | |
362 | - | then throw((("Placed Withdraw Amount is going in negative State of " + toString(H)) + "/10^8] WAVES.")) | |
363 | - | else [IntegerEntry("Previous_Balance", av), IntegerEntry("Network_Fee_To_Withdraw", i), IntegerEntry(((d + "_") + o), H), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(o), p, unit)] | |
364 | - | } | |
365 | - | ||
366 | - | ||
367 | - | ||
368 | - | @Callable(u) | |
369 | - | func BlackListAddress (ax) = { | |
370 | - | let E = getString(this, ("addr_BLACKLISTED_" + ax)) | |
371 | - | let ay = { | |
372 | - | let r = getInteger(this, "Total_Black_Listed_Address") | |
373 | - | if ($isInstanceOf(r, "Int")) | |
325 | + | @Callable(l) | |
326 | + | func DeleteBlackListAddress (am) = { | |
327 | + | let x = getString(this, ("addr_BLACKLISTED_" + am)) | |
328 | + | let an = { | |
329 | + | let H = getInteger(this, "Total_Black_Listed_Address") | |
330 | + | if ($isInstanceOf(H, "Int")) | |
374 | 331 | then { | |
375 | - | let | |
376 | - | | |
332 | + | let I = H | |
333 | + | I | |
377 | 334 | } | |
378 | 335 | else 0 | |
379 | 336 | } | |
380 | - | let az = (ay + 1) | |
381 | - | if ((c > lastBlock.timestamp)) | |
382 | - | then throw((e + toString(c))) | |
383 | - | else if ((u.caller != h)) | |
384 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
385 | - | else if ((E == "Yes")) | |
386 | - | then throw("Address is already available in Blacklist.") | |
387 | - | else [StringEntry(("addr_BLACKLISTED_" + ax), "Yes"), IntegerEntry("Total_Black_Listed_Address", az)] | |
388 | - | } | |
389 | - | ||
390 | - | ||
391 | - | ||
392 | - | @Callable(u) | |
393 | - | func DeleteBlackListAddress (ax) = { | |
394 | - | let E = getString(this, ("addr_BLACKLISTED_" + ax)) | |
395 | - | let ay = { | |
396 | - | let r = getInteger(this, "Total_Black_Listed_Address") | |
397 | - | if ($isInstanceOf(r, "Int")) | |
398 | - | then { | |
399 | - | let s = r | |
400 | - | s | |
401 | - | } | |
402 | - | else 0 | |
403 | - | } | |
404 | - | let az = (ay - 1) | |
337 | + | let ao = (an - 1) | |
405 | 338 | if ((c > lastBlock.timestamp)) | |
406 | 339 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
407 | - | else if (( | |
340 | + | else if ((l.caller != h)) | |
408 | 341 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
409 | - | else if (( | |
410 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
342 | + | else if ((x == "Yes")) | |
343 | + | then [DeleteEntry(("addr_BLACKLISTED_" + am)), IntegerEntry("Total_Black_Listed_Address", ao)] | |
411 | 344 | else throw("Address is not available in Blacklist.") | |
412 | 345 | } | |
413 | 346 | ||
414 | 347 | ||
415 | - | @Verifier( | |
416 | - | func | |
417 | - | let | |
418 | - | if (if ($isInstanceOf( | |
348 | + | @Verifier(ap) | |
349 | + | func aq () = { | |
350 | + | let H = ap | |
351 | + | if (if ($isInstanceOf(H, "Order")) | |
419 | 352 | then true | |
420 | - | else if ($isInstanceOf( | |
353 | + | else if ($isInstanceOf(H, "ExchangeTransaction")) | |
421 | 354 | then true | |
422 | - | else if ($isInstanceOf( | |
355 | + | else if ($isInstanceOf(H, "MassTransferTransaction")) | |
423 | 356 | then true | |
424 | - | else $isInstanceOf( | |
357 | + | else $isInstanceOf(H, "TransferTransaction")) | |
425 | 358 | then { | |
426 | - | let | |
359 | + | let ar = H | |
427 | 360 | false | |
428 | 361 | } | |
429 | - | else sigVerify( | |
362 | + | else sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
430 | 363 | } | |
431 | 364 |
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 = 900000 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 10000000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 10000000000 | |
25 | 25 | ||
26 | - | let l = 10000000 | |
27 | - | ||
28 | - | let m = 10000000000 | |
29 | - | ||
30 | - | func n (o,p) = { | |
31 | - | let q = { | |
32 | - | let r = getInteger(this, ((d + "_") + o)) | |
33 | - | if ($isInstanceOf(r, "Int")) | |
26 | + | @Callable(l) | |
27 | + | func placeoptionCall (m,n,o,p,q,r,s,t,u,v) = { | |
28 | + | let w = toBase58String(l.caller.bytes) | |
29 | + | let x = getString(this, ("addr_BLACKLISTED_" + p)) | |
30 | + | let y = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
31 | + | let z = getIntegerValue(((d + "_") + p)) | |
32 | + | let A = ((z - m) - i) | |
33 | + | let B = u | |
34 | + | let C = v | |
35 | + | let D = n | |
36 | + | let E = 1 | |
37 | + | let F = (D + E) | |
38 | + | let G = { | |
39 | + | let H = getInteger(this, "Total_Option_Orders") | |
40 | + | if ($isInstanceOf(H, "Int")) | |
34 | 41 | then { | |
35 | - | let | |
36 | - | | |
42 | + | let I = H | |
43 | + | I | |
37 | 44 | } | |
38 | 45 | else 0 | |
39 | 46 | } | |
40 | - | let t = (q + p) | |
41 | - | t | |
47 | + | let J = (G + 1) | |
48 | + | let K = { | |
49 | + | let H = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(D))) | |
50 | + | if ($isInstanceOf(H, "Int")) | |
51 | + | then { | |
52 | + | let I = H | |
53 | + | I | |
54 | + | } | |
55 | + | else 0 | |
56 | + | } | |
57 | + | let L = (K + m) | |
58 | + | let M = { | |
59 | + | let H = getInteger(this, ("Total_Option_Orders_" + toString(D))) | |
60 | + | if ($isInstanceOf(H, "Int")) | |
61 | + | then { | |
62 | + | let I = H | |
63 | + | I | |
64 | + | } | |
65 | + | else 0 | |
66 | + | } | |
67 | + | let N = (M + 1) | |
68 | + | let O = { | |
69 | + | let H = getInteger(this, "Total_Calls") | |
70 | + | if ($isInstanceOf(H, "Int")) | |
71 | + | then { | |
72 | + | let I = H | |
73 | + | I | |
74 | + | } | |
75 | + | else 0 | |
76 | + | } | |
77 | + | let P = (O + 1) | |
78 | + | let Q = { | |
79 | + | let H = getInteger(this, ("Total_Calls_" + toString(D))) | |
80 | + | if ($isInstanceOf(H, "Int")) | |
81 | + | then { | |
82 | + | let I = H | |
83 | + | I | |
84 | + | } | |
85 | + | else 0 | |
86 | + | } | |
87 | + | let R = (Q + 1) | |
88 | + | let S = { | |
89 | + | let H = getInteger(this, (p + "_Total_Calls")) | |
90 | + | if ($isInstanceOf(H, "Int")) | |
91 | + | then { | |
92 | + | let I = H | |
93 | + | I | |
94 | + | } | |
95 | + | else 0 | |
96 | + | } | |
97 | + | let T = (S + 1) | |
98 | + | let U = { | |
99 | + | let H = getInteger(this, ((p + "_Total_Calls_") + toString(D))) | |
100 | + | if ($isInstanceOf(H, "Int")) | |
101 | + | then { | |
102 | + | let I = H | |
103 | + | I | |
104 | + | } | |
105 | + | else 0 | |
106 | + | } | |
107 | + | let V = (U + 1) | |
108 | + | let W = fraction(y, 5, 100) | |
109 | + | if ((l.caller != h)) | |
110 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
111 | + | else if ((c > lastBlock.timestamp)) | |
112 | + | then throw((e + toString(c))) | |
113 | + | else if ((t == "CLOSE")) | |
114 | + | then throw(g) | |
115 | + | else if ((x == "Yes")) | |
116 | + | then throw((p + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
117 | + | else if ((lastBlock.timestamp >= C)) | |
118 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
119 | + | else if ((L > W)) | |
120 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(W)) + ", Pending House Risk is ") + toString((W - K))) + ". Join in next Cycle.")) | |
121 | + | else if ((j > m)) | |
122 | + | then throw((("Placed Order Size is less than [" + toString(j)) + "/10^8] WAVES.")) | |
123 | + | else if ((m > k)) | |
124 | + | then throw((("Placed Order Size is more than [" + toString(k)) + "/10^8] WAVES.")) | |
125 | + | else if ((0 > A)) | |
126 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(A))) | |
127 | + | else if ((size(toString(u)) != 13)) | |
128 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
129 | + | else if ((size(toString(v)) != 13)) | |
130 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
131 | + | else [StringEntry(("User_ID_" + p), o), IntegerEntry(((d + "_") + p), A), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Call_" + p) + "_") + toString(T)), toString(q)), IntegerEntry(((("Call_Amount_" + p) + "_") + toString(T)), m), StringEntry(((("Call_Start_End_" + p) + "_") + toString(T)), ((toString(D) + "_") + toString(F))), IntegerEntry("Total_Option_Orders", J), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(D)), L), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(D)), W), IntegerEntry("Call_Limits", r), IntegerEntry("Put_Limits", s), IntegerEntry(("Total_Option_Orders_" + toString(D)), N), IntegerEntry("Total_Calls", P), IntegerEntry(("Total_Calls_" + toString(D)), R), IntegerEntry((p + "_Total_Calls"), T), IntegerEntry(((p + "_Total_Calls_") + toString(D)), V), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), m, unit)] | |
42 | 132 | } | |
43 | 133 | ||
44 | 134 | ||
45 | - | @Callable(u) | |
46 | - | func placeoptionCall (p,v,w,o,x,y,z,A,B,C) = { | |
47 | - | let D = toBase58String(u.caller.bytes) | |
48 | - | let E = getString(this, ("addr_BLACKLISTED_" + o)) | |
49 | - | let F = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
50 | - | let G = getIntegerValue(((d + "_") + o)) | |
51 | - | let H = ((G - p) - i) | |
52 | - | let I = B | |
53 | - | let J = C | |
54 | - | let K = v | |
55 | - | let L = 1 | |
56 | - | let M = (K + L) | |
57 | - | let N = { | |
58 | - | let r = getInteger(this, "Total_Option_Orders") | |
59 | - | if ($isInstanceOf(r, "Int")) | |
135 | + | ||
136 | + | @Callable(l) | |
137 | + | func placeoptionPut (m,n,o,p,q,r,s,t,u,v) = { | |
138 | + | let w = toBase58String(l.caller.bytes) | |
139 | + | let x = getString(this, ("addr_BLACKLISTED_" + p)) | |
140 | + | let y = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
141 | + | let z = getIntegerValue(((d + "_") + p)) | |
142 | + | let A = ((z - m) - i) | |
143 | + | let B = u | |
144 | + | let C = v | |
145 | + | let D = n | |
146 | + | let E = 1 | |
147 | + | let F = (D + E) | |
148 | + | let G = { | |
149 | + | let H = getInteger(this, "Total_Option_Orders") | |
150 | + | if ($isInstanceOf(H, "Int")) | |
60 | 151 | then { | |
61 | - | let | |
62 | - | | |
152 | + | let I = H | |
153 | + | I | |
63 | 154 | } | |
64 | 155 | else 0 | |
65 | 156 | } | |
66 | - | let | |
67 | - | let | |
68 | - | let | |
69 | - | if ($isInstanceOf( | |
157 | + | let J = (G + 1) | |
158 | + | let K = { | |
159 | + | let H = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(D))) | |
160 | + | if ($isInstanceOf(H, "Int")) | |
70 | 161 | then { | |
71 | - | let | |
72 | - | | |
162 | + | let I = H | |
163 | + | I | |
73 | 164 | } | |
74 | 165 | else 0 | |
75 | 166 | } | |
76 | - | let | |
77 | - | let | |
78 | - | let | |
79 | - | if ($isInstanceOf( | |
167 | + | let L = (K + m) | |
168 | + | let M = { | |
169 | + | let H = getInteger(this, ("Total_Option_Orders_" + toString(D))) | |
170 | + | if ($isInstanceOf(H, "Int")) | |
80 | 171 | then { | |
81 | - | let | |
82 | - | | |
172 | + | let I = H | |
173 | + | I | |
83 | 174 | } | |
84 | 175 | else 0 | |
85 | 176 | } | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | if ($isInstanceOf( | |
177 | + | let N = (M + 1) | |
178 | + | let X = { | |
179 | + | let H = getInteger(this, "Total_Puts") | |
180 | + | if ($isInstanceOf(H, "Int")) | |
90 | 181 | then { | |
91 | - | let s = r | |
92 | - | s | |
93 | - | } | |
94 | - | else 0 | |
95 | - | } | |
96 | - | let U = (T + 1) | |
97 | - | let V = { | |
98 | - | let r = getInteger(this, ("Total_Calls_" + toString(K))) | |
99 | - | if ($isInstanceOf(r, "Int")) | |
100 | - | then { | |
101 | - | let s = r | |
102 | - | s | |
103 | - | } | |
104 | - | else 0 | |
105 | - | } | |
106 | - | let W = (V + 1) | |
107 | - | let X = { | |
108 | - | let r = getInteger(this, (o + "_Total_Calls")) | |
109 | - | if ($isInstanceOf(r, "Int")) | |
110 | - | then { | |
111 | - | let s = r | |
112 | - | s | |
182 | + | let I = H | |
183 | + | I | |
113 | 184 | } | |
114 | 185 | else 0 | |
115 | 186 | } | |
116 | 187 | let Y = (X + 1) | |
117 | 188 | let Z = { | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
189 | + | let H = getInteger(this, ("Total_Puts_" + toString(D))) | |
190 | + | if ($isInstanceOf(H, "Int")) | |
120 | 191 | then { | |
121 | - | let | |
122 | - | | |
192 | + | let I = H | |
193 | + | I | |
123 | 194 | } | |
124 | 195 | else 0 | |
125 | 196 | } | |
126 | 197 | let aa = (Z + 1) | |
127 | - | let ab = fraction(F, 5, 100) | |
128 | - | if ((c > lastBlock.timestamp)) | |
129 | - | then throw((e + toString(c))) | |
130 | - | else if ((A == "CLOSE")) | |
131 | - | then throw(g) | |
132 | - | else if ((E == "Yes")) | |
133 | - | then throw((o + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
134 | - | else if ((lastBlock.timestamp >= J)) | |
135 | - | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
136 | - | else if ((Q > ab)) | |
137 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
138 | - | else if ((l > p)) | |
139 | - | then throw((("Placed Order Size is less than [" + toString(l)) + "/10^8] WAVES.")) | |
140 | - | else if ((p > m)) | |
141 | - | then throw((("Placed Order Size is more than [" + toString(m)) + "/10^8] WAVES.")) | |
142 | - | else if ((0 > H)) | |
143 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(H))) | |
144 | - | else if ((size(toString(B)) != 13)) | |
145 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
146 | - | else if ((size(toString(C)) != 13)) | |
147 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
148 | - | else [StringEntry(("User_ID_" + o), w), IntegerEntry(((d + "_") + o), H), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Call_" + o) + "_") + toString(Y)), toString(x)), IntegerEntry(((("Call_Amount_" + o) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + o) + "_") + toString(Y)), ((toString(K) + "_") + toString(M))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(K)), Q), IntegerEntry("Total_Pool_Liquidity", F), IntegerEntry(("Funds_At_Risk_" + toString(K)), ab), IntegerEntry("Call_Limits", y), IntegerEntry("Put_Limits", z), IntegerEntry(("Total_Option_Orders_" + toString(K)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(K)), W), IntegerEntry((o + "_Total_Calls"), Y), IntegerEntry(((o + "_Total_Calls_") + toString(K)), aa), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
198 | + | let ab = { | |
199 | + | let H = getInteger(this, (p + "_Total_Puts")) | |
200 | + | if ($isInstanceOf(H, "Int")) | |
201 | + | then { | |
202 | + | let I = H | |
203 | + | I | |
204 | + | } | |
205 | + | else 0 | |
206 | + | } | |
207 | + | let ac = (ab + 1) | |
208 | + | let ad = { | |
209 | + | let H = getInteger(this, ((p + "_Total_Puts_") + toString(D))) | |
210 | + | if ($isInstanceOf(H, "Int")) | |
211 | + | then { | |
212 | + | let I = H | |
213 | + | I | |
214 | + | } | |
215 | + | else 0 | |
216 | + | } | |
217 | + | let ae = (ad + 1) | |
218 | + | let W = fraction(y, 5, 100) | |
219 | + | if ((l.caller != h)) | |
220 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
221 | + | else if ((c > lastBlock.timestamp)) | |
222 | + | then throw((e + toString(c))) | |
223 | + | else if ((t == "CLOSE")) | |
224 | + | then throw(g) | |
225 | + | else if ((x == "Yes")) | |
226 | + | then throw((p + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
227 | + | else if ((lastBlock.timestamp >= C)) | |
228 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
229 | + | else if ((L > W)) | |
230 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(W)) + ", Pending House Risk is ") + toString((W - K))) + ". Join in next Cycle.")) | |
231 | + | else if ((j > m)) | |
232 | + | then throw((("Placed Order Size is less than [" + toString(j)) + "/10^8] WAVES.")) | |
233 | + | else if ((m > k)) | |
234 | + | then throw((("Placed Order Size is more than [" + toString(k)) + "/10^8] WAVES.")) | |
235 | + | else if ((0 > A)) | |
236 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(A))) | |
237 | + | else if ((size(toString(u)) != 13)) | |
238 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
239 | + | else if ((size(toString(v)) != 13)) | |
240 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
241 | + | else [StringEntry(("User_ID_" + p), o), IntegerEntry(((d + "_") + p), A), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Put_" + p) + "_") + toString(ac)), toString(q)), IntegerEntry(((("Put_Amount_" + p) + "_") + toString(ac)), m), StringEntry(((("Put_Start_End_" + p) + "_") + toString(ac)), ((toString(D) + "_") + toString(F))), IntegerEntry("Total_Option_Orders", J), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(D)), L), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Funds_At_Risk_" + toString(D)), W), IntegerEntry("Call_Limits", r), IntegerEntry("Put_Limits", s), IntegerEntry(("Total_Option_Orders_" + toString(D)), N), IntegerEntry("Total_Puts", Y), IntegerEntry(("Total_Puts_" + toString(D)), aa), IntegerEntry((p + "_Total_Puts"), ac), IntegerEntry(((p + "_Total_Puts_") + toString(D)), ae), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), m, unit)] | |
149 | 242 | } | |
150 | 243 | ||
151 | 244 | ||
152 | 245 | ||
153 | - | @Callable(u) | |
154 | - | func placeoptionPut (p,v,w,o,x,y,z,A,B,C) = { | |
155 | - | let D = toBase58String(u.caller.bytes) | |
156 | - | let E = getString(this, ("addr_BLACKLISTED_" + o)) | |
157 | - | let F = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
158 | - | let G = getIntegerValue(((d + "_") + o)) | |
159 | - | let H = ((G - p) - i) | |
160 | - | let I = B | |
161 | - | let J = C | |
162 | - | let K = v | |
163 | - | let L = 1 | |
164 | - | let M = (K + L) | |
165 | - | let N = { | |
166 | - | let r = getInteger(this, "Total_Option_Orders") | |
167 | - | if ($isInstanceOf(r, "Int")) | |
246 | + | @Callable(l) | |
247 | + | func DepositUserFunds () = { | |
248 | + | let w = toBase58String(l.caller.bytes) | |
249 | + | let af = if ((size(l.payments) == 1)) | |
250 | + | then l.payments[0] | |
251 | + | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
252 | + | let x = getString(this, ("addr_BLACKLISTED_" + w)) | |
253 | + | let ag = { | |
254 | + | let H = getInteger(this, ((d + "_") + w)) | |
255 | + | if ($isInstanceOf(H, "Int")) | |
168 | 256 | then { | |
169 | - | let | |
170 | - | | |
257 | + | let I = H | |
258 | + | I | |
171 | 259 | } | |
172 | 260 | else 0 | |
173 | 261 | } | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | if ($isInstanceOf( | |
262 | + | let ah = (ag + af.amount) | |
263 | + | let ai = { | |
264 | + | let H = getInteger(this, "Deposit_Counter_ID") | |
265 | + | if ($isInstanceOf(H, "Int")) | |
178 | 266 | then { | |
179 | - | let s = r | |
180 | - | s | |
181 | - | } | |
182 | - | else 0 | |
183 | - | } | |
184 | - | let Q = (P + p) | |
185 | - | let R = { | |
186 | - | let r = getInteger(this, ("Total_Option_Orders_" + toString(K))) | |
187 | - | if ($isInstanceOf(r, "Int")) | |
188 | - | then { | |
189 | - | let s = r | |
190 | - | s | |
191 | - | } | |
192 | - | else 0 | |
193 | - | } | |
194 | - | let S = (R + 1) | |
195 | - | let ac = { | |
196 | - | let r = getInteger(this, "Total_Puts") | |
197 | - | if ($isInstanceOf(r, "Int")) | |
198 | - | then { | |
199 | - | let s = r | |
200 | - | s | |
201 | - | } | |
202 | - | else 0 | |
203 | - | } | |
204 | - | let ad = (ac + 1) | |
205 | - | let ae = { | |
206 | - | let r = getInteger(this, ("Total_Puts_" + toString(K))) | |
207 | - | if ($isInstanceOf(r, "Int")) | |
208 | - | then { | |
209 | - | let s = r | |
210 | - | s | |
211 | - | } | |
212 | - | else 0 | |
213 | - | } | |
214 | - | let af = (ae + 1) | |
215 | - | let ag = { | |
216 | - | let r = getInteger(this, (o + "_Total_Puts")) | |
217 | - | if ($isInstanceOf(r, "Int")) | |
218 | - | then { | |
219 | - | let s = r | |
220 | - | s | |
221 | - | } | |
222 | - | else 0 | |
223 | - | } | |
224 | - | let ah = (ag + 1) | |
225 | - | let ai = { | |
226 | - | let r = getInteger(this, ((o + "_Total_Puts_") + toString(K))) | |
227 | - | if ($isInstanceOf(r, "Int")) | |
228 | - | then { | |
229 | - | let s = r | |
230 | - | s | |
267 | + | let I = H | |
268 | + | I | |
231 | 269 | } | |
232 | 270 | else 0 | |
233 | 271 | } | |
234 | 272 | let aj = (ai + 1) | |
235 | - | let ab = fraction(F, 5, 100) | |
236 | - | if ((u.caller != h)) | |
237 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
238 | - | else if ((c > lastBlock.timestamp)) | |
239 | - | then throw((e + toString(c))) | |
240 | - | else if ((A == "CLOSE")) | |
241 | - | then throw(g) | |
242 | - | else if ((E == "Yes")) | |
243 | - | then throw((o + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
244 | - | else if ((lastBlock.timestamp >= J)) | |
245 | - | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
246 | - | else if ((Q > ab)) | |
247 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(ab)) + ", Pending House Risk is ") + toString((ab - P))) + ". Join in next Cycle.")) | |
248 | - | else if ((l > p)) | |
249 | - | then throw((("Placed Order Size is less than [" + toString(l)) + "/10^8] WAVES.")) | |
250 | - | else if ((p > m)) | |
251 | - | then throw((("Placed Order Size is more than [" + toString(m)) + "/10^8] WAVES.")) | |
252 | - | else if ((0 > H)) | |
253 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(H))) | |
254 | - | else if ((size(toString(B)) != 13)) | |
255 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
256 | - | else if ((size(toString(C)) != 13)) | |
257 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
258 | - | else [StringEntry(("User_ID_" + o), w), IntegerEntry(((d + "_") + o), H), IntegerEntry("Network_Fee_To_Place_Order", i), StringEntry(((("Put_" + o) + "_") + toString(ah)), toString(x)), IntegerEntry(((("Put_Amount_" + o) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + o) + "_") + toString(ah)), ((toString(K) + "_") + toString(M))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(K)), Q), IntegerEntry("Total_Pool_Liquidity", F), IntegerEntry(("Funds_At_Risk_" + toString(K)), ab), IntegerEntry("Call_Limits", y), IntegerEntry("Put_Limits", z), IntegerEntry(("Total_Option_Orders_" + toString(K)), S), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(K)), af), IntegerEntry((o + "_Total_Puts"), ah), IntegerEntry(((o + "_Total_Puts_") + toString(K)), aj), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
273 | + | if ((c > lastBlock.timestamp)) | |
274 | + | then throw((e + toString(c))) | |
275 | + | else if ((x == "Yes")) | |
276 | + | then throw((w + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
277 | + | else if (isDefined(af.assetId)) | |
278 | + | then throw("Only WAVES is allowed to deposit at the moment") | |
279 | + | else [IntegerEntry(((d + "_") + w), ah), IntegerEntry(((((toString(aj) + "_") + d) + "_") + w), af.amount), IntegerEntry("Deposit_Counter_ID", aj)] | |
259 | 280 | } | |
260 | 281 | ||
261 | 282 | ||
262 | 283 | ||
263 | - | @Callable(u) | |
264 | - | func DepositUserFunds () = { | |
265 | - | let D = toBase58String(u.caller.bytes) | |
266 | - | let ak = if ((size(u.payments) == 1)) | |
267 | - | then u.payments[0] | |
268 | - | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
269 | - | let E = getString(this, ("addr_BLACKLISTED_" + D)) | |
270 | - | let q = { | |
271 | - | let r = getInteger(this, ((d + "_") + D)) | |
272 | - | if ($isInstanceOf(r, "Int")) | |
273 | - | then { | |
274 | - | let s = r | |
275 | - | s | |
276 | - | } | |
277 | - | else 0 | |
278 | - | } | |
279 | - | let t = (q + ak.amount) | |
280 | - | let al = { | |
281 | - | let r = getInteger(this, "Deposit_Counter_ID") | |
282 | - | if ($isInstanceOf(r, "Int")) | |
283 | - | then { | |
284 | - | let s = r | |
285 | - | s | |
286 | - | } | |
287 | - | else 0 | |
288 | - | } | |
289 | - | let am = (al + 1) | |
290 | - | if ((c > lastBlock.timestamp)) | |
291 | - | then throw((e + toString(c))) | |
292 | - | else if ((E == "Yes")) | |
293 | - | then throw((D + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
294 | - | else if (isDefined(ak.assetId)) | |
295 | - | then throw("Only WAVES is allowed to deposit at the moment") | |
296 | - | else [IntegerEntry(((d + "_") + D), t), IntegerEntry(((((toString(am) + "_") + d) + "_") + D), ak.amount), IntegerEntry("Deposit_Counter_ID", am)] | |
284 | + | @Callable(l) | |
285 | + | func WithdrawUserFunds (p,m) = { | |
286 | + | let w = toBase58String(l.caller.bytes) | |
287 | + | let ak = getIntegerValue(((d + "_") + p)) | |
288 | + | let A = ((ak - m) - i) | |
289 | + | let al = 10000000 | |
290 | + | if ((l.caller != h)) | |
291 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
292 | + | else if ((al > m)) | |
293 | + | then throw((("Minimum Withdraw Amount is " + toString(al)) + "/10^8] WAVES.")) | |
294 | + | else if ((0 > A)) | |
295 | + | then throw((("Placed Withdraw Amount is going in negative State of " + toString(A)) + "/10^8] WAVES.")) | |
296 | + | else [IntegerEntry("Previous_Balance", ak), IntegerEntry("Network_Fee_To_Withdraw", i), IntegerEntry(((d + "_") + p), A), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(p), m, unit)] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | - | @Callable(u) | |
302 | - | func Fill_Vouchers_Liquidity () = { | |
303 | - | let D = toBase58String(u.caller.bytes) | |
304 | - | let ak = if ((size(u.payments) == 1)) | |
305 | - | then u.payments[0] | |
306 | - | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
301 | + | @Callable(l) | |
302 | + | func BlackListAddress (am) = { | |
303 | + | let x = getString(this, ("addr_BLACKLISTED_" + am)) | |
307 | 304 | let an = { | |
308 | - | let | |
309 | - | if ($isInstanceOf( | |
305 | + | let H = getInteger(this, "Total_Black_Listed_Address") | |
306 | + | if ($isInstanceOf(H, "Int")) | |
310 | 307 | then { | |
311 | - | let | |
312 | - | | |
308 | + | let I = H | |
309 | + | I | |
313 | 310 | } | |
314 | 311 | else 0 | |
315 | 312 | } | |
316 | - | let ao = (an + ak.amount) | |
317 | - | let ap = { | |
318 | - | let r = getInteger(this, "Vouchers_Counter_ID") | |
319 | - | if ($isInstanceOf(r, "Int")) | |
320 | - | then { | |
321 | - | let s = r | |
322 | - | s | |
323 | - | } | |
324 | - | else 0 | |
325 | - | } | |
326 | - | let aq = (ap + 1) | |
327 | - | if (isDefined(ak.assetId)) | |
328 | - | then throw("Only WAVES is allowed to deposit at the moment") | |
329 | - | else [IntegerEntry("Available_Vouchers_Balance", ao), IntegerEntry((toString(aq) + "_Voucher_Amount"), ak.amount), IntegerEntry("Vouchers_Counter_ID", aq)] | |
313 | + | let ao = (an + 1) | |
314 | + | if ((c > lastBlock.timestamp)) | |
315 | + | then throw((e + toString(c))) | |
316 | + | else if ((l.caller != h)) | |
317 | + | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
318 | + | else if ((x == "Yes")) | |
319 | + | then throw("Address is already available in Blacklist.") | |
320 | + | else [StringEntry(("addr_BLACKLISTED_" + am), "Yes"), IntegerEntry("Total_Black_Listed_Address", ao)] | |
330 | 321 | } | |
331 | 322 | ||
332 | 323 | ||
333 | 324 | ||
334 | - | @Callable(u) | |
335 | - | func Play_With_Vouchers (p,v,w,o,x,y,z,A,B,C) = { | |
336 | - | let ar = valueOrErrorMessage(getInteger("Available_Vouchers_Balance"), "No Voucher Balance was found.") | |
337 | - | let as = n(o, p) | |
338 | - | let at = (ar - p) | |
339 | - | let au = invoke(this, "placeoptionCall", [p, v, w, o, x, y, z, A, B, C], nil) | |
340 | - | if ((u.caller != h)) | |
341 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
342 | - | else if ((0 > at)) | |
343 | - | then throw((("Requested Voucher Amount is going in negative State of " + toString(at)) + "/10^8] WAVES.")) | |
344 | - | else if ((au == au)) | |
345 | - | then [IntegerEntry("Available_Vouchers_Balance", at)] | |
346 | - | else throw("Strict value is not equal to itself.") | |
347 | - | } | |
348 | - | ||
349 | - | ||
350 | - | ||
351 | - | @Callable(u) | |
352 | - | func WithdrawUserFunds (o,p) = { | |
353 | - | let D = toBase58String(u.caller.bytes) | |
354 | - | let av = getIntegerValue(((d + "_") + o)) | |
355 | - | let H = ((av - p) - i) | |
356 | - | let aw = 10000000 | |
357 | - | if ((u.caller != h)) | |
358 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
359 | - | else if ((aw > p)) | |
360 | - | then throw((("Minimum Withdraw Amount is " + toString(aw)) + "/10^8] WAVES.")) | |
361 | - | else if ((0 > H)) | |
362 | - | then throw((("Placed Withdraw Amount is going in negative State of " + toString(H)) + "/10^8] WAVES.")) | |
363 | - | else [IntegerEntry("Previous_Balance", av), IntegerEntry("Network_Fee_To_Withdraw", i), IntegerEntry(((d + "_") + o), H), ScriptTransfer(h, i, unit), ScriptTransfer(addressFromStringValue(o), p, unit)] | |
364 | - | } | |
365 | - | ||
366 | - | ||
367 | - | ||
368 | - | @Callable(u) | |
369 | - | func BlackListAddress (ax) = { | |
370 | - | let E = getString(this, ("addr_BLACKLISTED_" + ax)) | |
371 | - | let ay = { | |
372 | - | let r = getInteger(this, "Total_Black_Listed_Address") | |
373 | - | if ($isInstanceOf(r, "Int")) | |
325 | + | @Callable(l) | |
326 | + | func DeleteBlackListAddress (am) = { | |
327 | + | let x = getString(this, ("addr_BLACKLISTED_" + am)) | |
328 | + | let an = { | |
329 | + | let H = getInteger(this, "Total_Black_Listed_Address") | |
330 | + | if ($isInstanceOf(H, "Int")) | |
374 | 331 | then { | |
375 | - | let | |
376 | - | | |
332 | + | let I = H | |
333 | + | I | |
377 | 334 | } | |
378 | 335 | else 0 | |
379 | 336 | } | |
380 | - | let az = (ay + 1) | |
381 | - | if ((c > lastBlock.timestamp)) | |
382 | - | then throw((e + toString(c))) | |
383 | - | else if ((u.caller != h)) | |
384 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
385 | - | else if ((E == "Yes")) | |
386 | - | then throw("Address is already available in Blacklist.") | |
387 | - | else [StringEntry(("addr_BLACKLISTED_" + ax), "Yes"), IntegerEntry("Total_Black_Listed_Address", az)] | |
388 | - | } | |
389 | - | ||
390 | - | ||
391 | - | ||
392 | - | @Callable(u) | |
393 | - | func DeleteBlackListAddress (ax) = { | |
394 | - | let E = getString(this, ("addr_BLACKLISTED_" + ax)) | |
395 | - | let ay = { | |
396 | - | let r = getInteger(this, "Total_Black_Listed_Address") | |
397 | - | if ($isInstanceOf(r, "Int")) | |
398 | - | then { | |
399 | - | let s = r | |
400 | - | s | |
401 | - | } | |
402 | - | else 0 | |
403 | - | } | |
404 | - | let az = (ay - 1) | |
337 | + | let ao = (an - 1) | |
405 | 338 | if ((c > lastBlock.timestamp)) | |
406 | 339 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
407 | - | else if (( | |
340 | + | else if ((l.caller != h)) | |
408 | 341 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
409 | - | else if (( | |
410 | - | then [DeleteEntry(("addr_BLACKLISTED_" + | |
342 | + | else if ((x == "Yes")) | |
343 | + | then [DeleteEntry(("addr_BLACKLISTED_" + am)), IntegerEntry("Total_Black_Listed_Address", ao)] | |
411 | 344 | else throw("Address is not available in Blacklist.") | |
412 | 345 | } | |
413 | 346 | ||
414 | 347 | ||
415 | - | @Verifier( | |
416 | - | func | |
417 | - | let | |
418 | - | if (if ($isInstanceOf( | |
348 | + | @Verifier(ap) | |
349 | + | func aq () = { | |
350 | + | let H = ap | |
351 | + | if (if ($isInstanceOf(H, "Order")) | |
419 | 352 | then true | |
420 | - | else if ($isInstanceOf( | |
353 | + | else if ($isInstanceOf(H, "ExchangeTransaction")) | |
421 | 354 | then true | |
422 | - | else if ($isInstanceOf( | |
355 | + | else if ($isInstanceOf(H, "MassTransferTransaction")) | |
423 | 356 | then true | |
424 | - | else $isInstanceOf( | |
357 | + | else $isInstanceOf(H, "TransferTransaction")) | |
425 | 358 | then { | |
426 | - | let | |
359 | + | let ar = H | |
427 | 360 | false | |
428 | 361 | } | |
429 | - | else sigVerify( | |
362 | + | else sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
430 | 363 | } | |
431 | 364 |
github/deemru/w8io/169f3d6 81.09 ms ◑