tx · 4VKCGcqyCaK6LKkSeM4p5g4j4Rdo1huo3XyvYRW4qmFr 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2: -0.03100000 Waves 2023.12.03 14:13 [2870386] smart account 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2 > SELF 0.00000000 Waves
{ "type": 13, "id": "4VKCGcqyCaK6LKkSeM4p5g4j4Rdo1huo3XyvYRW4qmFr", "fee": 3100000, "feeAssetId": null, "timestamp": 1701602016469, "version": 2, "chainId": 84, "sender": "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2", "senderPublicKey": "DNKNL32sAVUYg4iGA3tW8Z6VXrENmGCmKfG6DLar82aP", "proofs": [ "4YwzQ1ijY5nFGRk59jb8qjTdEkpu6v4DFgE3SPVtu7RNjMcG4DRBxcRLzSFaiYSH2GkbDk58MLEVam3avGEeAYvS" ], "script": "base64:AAIFAAAAAAAAAD8IAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESABIECgIICBIAEgQKAggBEgMKAQgSAwoBCBIAEgMKAQgAAAAOAAAAABZwb29sX2xpcXVpZGl0eV9hZGRyZXNzAgAAACMzTjR3QmdZdFdnSlcyTFRSZWYyZWtXUVRyRVhDUmZYbUdMaAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIMjtmNqG7lU1WGDHPJboKlti9SIwxR/k7IFRCWjnzhpzAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABir9gFiAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2V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A0RlbAAAAAEAAAAFRW50cnkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFRW50cnkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTeWxeY=", "height": 2870386, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BvKAF2hgjDMoZa37iHvniVRywSc4amCan3ccyq9uSRu1 Next: 2fssH4pECRUrY6xEwtUnqYVuik2Qc3Y686kVefwuKb2S Diff:
Old | New | Differences | |
---|---|---|---|
34 | 34 | let z = toBase58String(o.caller.bytes) | |
35 | 35 | let A = getString(this, ("addr_BLACKLISTED_" + s)) | |
36 | 36 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
37 | - | let C = | |
37 | + | let C = getIntegerValue(((d + "_") + s)) | |
38 | 38 | let D = ((C - p) - j) | |
39 | - | let E = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
40 | - | let F = ((E - p) - j) | |
41 | - | let G = x | |
42 | - | let H = y | |
43 | - | let I = q | |
44 | - | let J = 1 | |
45 | - | let K = (I + J) | |
46 | - | let L = { | |
47 | - | let M = getInteger(this, "Total_Option_Orders") | |
48 | - | if ($isInstanceOf(M, "Int")) | |
39 | + | let E = x | |
40 | + | let F = y | |
41 | + | let G = q | |
42 | + | let H = 1 | |
43 | + | let I = (G + H) | |
44 | + | let J = { | |
45 | + | let K = getInteger(this, "Total_Option_Orders") | |
46 | + | if ($isInstanceOf(K, "Int")) | |
49 | 47 | then { | |
50 | - | let | |
51 | - | | |
48 | + | let L = K | |
49 | + | L | |
52 | 50 | } | |
53 | 51 | else 0 | |
54 | 52 | } | |
55 | - | let | |
56 | - | let | |
57 | - | let | |
58 | - | if ($isInstanceOf( | |
53 | + | let M = (J + 1) | |
54 | + | let N = { | |
55 | + | let K = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(G))) | |
56 | + | if ($isInstanceOf(K, "Int")) | |
59 | 57 | then { | |
60 | - | let | |
61 | - | | |
58 | + | let L = K | |
59 | + | L | |
62 | 60 | } | |
63 | 61 | else 0 | |
64 | 62 | } | |
65 | - | let Q = (P + p) | |
63 | + | let O = (N + p) | |
64 | + | let P = { | |
65 | + | let K = getInteger(this, ("Total_Option_Orders_" + toString(G))) | |
66 | + | if ($isInstanceOf(K, "Int")) | |
67 | + | then { | |
68 | + | let L = K | |
69 | + | L | |
70 | + | } | |
71 | + | else 0 | |
72 | + | } | |
73 | + | let Q = (P + 1) | |
66 | 74 | let R = { | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
75 | + | let K = getInteger(this, "Total_Calls") | |
76 | + | if ($isInstanceOf(K, "Int")) | |
69 | 77 | then { | |
70 | - | let | |
71 | - | | |
78 | + | let L = K | |
79 | + | L | |
72 | 80 | } | |
73 | 81 | else 0 | |
74 | 82 | } | |
75 | 83 | let S = (R + 1) | |
76 | 84 | let T = { | |
77 | - | let | |
78 | - | if ($isInstanceOf( | |
85 | + | let K = getInteger(this, ("Total_Calls_" + toString(G))) | |
86 | + | if ($isInstanceOf(K, "Int")) | |
79 | 87 | then { | |
80 | - | let | |
81 | - | | |
88 | + | let L = K | |
89 | + | L | |
82 | 90 | } | |
83 | 91 | else 0 | |
84 | 92 | } | |
85 | 93 | let U = (T + 1) | |
86 | 94 | let V = { | |
87 | - | let | |
88 | - | if ($isInstanceOf( | |
95 | + | let K = getInteger(this, (s + "_Total_Calls")) | |
96 | + | if ($isInstanceOf(K, "Int")) | |
89 | 97 | then { | |
90 | - | let | |
91 | - | | |
98 | + | let L = K | |
99 | + | L | |
92 | 100 | } | |
93 | 101 | else 0 | |
94 | 102 | } | |
95 | 103 | let W = (V + 1) | |
96 | 104 | let X = { | |
97 | - | let | |
98 | - | if ($isInstanceOf( | |
105 | + | let K = getInteger(this, ((s + "_Total_Calls_") + toString(G))) | |
106 | + | if ($isInstanceOf(K, "Int")) | |
99 | 107 | then { | |
100 | - | let | |
101 | - | | |
108 | + | let L = K | |
109 | + | L | |
102 | 110 | } | |
103 | 111 | else 0 | |
104 | 112 | } | |
105 | 113 | let Y = (X + 1) | |
106 | - | let Z = { | |
107 | - | let M = getInteger(this, ((s + "_Total_Calls_") + toString(I))) | |
108 | - | if ($isInstanceOf(M, "Int")) | |
109 | - | then { | |
110 | - | let N = M | |
111 | - | N | |
112 | - | } | |
113 | - | else 0 | |
114 | - | } | |
115 | - | let aa = (Z + 1) | |
116 | - | let ab = fraction(B, 5, 100) | |
114 | + | let Z = fraction(B, 5, 100) | |
117 | 115 | if ((o.caller != h)) | |
118 | 116 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
119 | 117 | else if ((n == 1)) | |
124 | 122 | then throw(g) | |
125 | 123 | else if ((A == "Yes")) | |
126 | 124 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
127 | - | else if ((lastBlock.timestamp >= | |
125 | + | else if ((lastBlock.timestamp >= F)) | |
128 | 126 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
129 | - | else if (if ((0 >= C)) | |
130 | - | then (0 >= E) | |
131 | - | else false) | |
132 | - | then throw("No Funds Available in Voucher as well in User Balance. Please Deposit Funds to Dapp.") | |
133 | - | else if ((Q > ab)) | |
134 | - | 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.")) | |
135 | - | else if ((k > p)) | |
136 | - | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
137 | - | else if ((p > l)) | |
138 | - | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
127 | + | else if ((O > Z)) | |
128 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Z)) + ", Pending House Risk is ") + toString((Z - N))) + ". Join in next Cycle.")) | |
129 | + | else if ((k > p)) | |
130 | + | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
131 | + | else if ((p > l)) | |
132 | + | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
133 | + | else if ((0 > D)) | |
134 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(D))) | |
139 | 135 | else if ((size(toString(x)) != 13)) | |
140 | 136 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
141 | 137 | else if ((size(toString(y)) != 13)) | |
142 | 138 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
143 | - | else if ((F >= 0)) | |
144 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
145 | - | else if ((D >= 0)) | |
146 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
147 | - | else throw((((("Voucher Balance=[" + toString(F)) + "] , User Balance =[") + toString(D)) + "].")) | |
139 | + | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(W)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(W)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(W)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Calls", S), IntegerEntry(("Total_Calls_" + toString(G)), U), IntegerEntry((s + "_Total_Calls"), W), IntegerEntry(((s + "_Total_Calls_") + toString(G)), Y), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
148 | 140 | } | |
149 | 141 | ||
150 | 142 | ||
156 | 148 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
157 | 149 | let C = valueOrElse(getInteger(((d + "_") + s)), 0) | |
158 | 150 | let D = ((C - p) - j) | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | if ($isInstanceOf( | |
151 | + | let aa = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
152 | + | let ab = ((aa - p) - j) | |
153 | + | let E = x | |
154 | + | let F = y | |
155 | + | let G = q | |
156 | + | let H = 1 | |
157 | + | let I = (G + H) | |
158 | + | let J = { | |
159 | + | let K = getInteger(this, "Total_Option_Orders") | |
160 | + | if ($isInstanceOf(K, "Int")) | |
169 | 161 | then { | |
170 | - | let | |
171 | - | | |
162 | + | let L = K | |
163 | + | L | |
172 | 164 | } | |
173 | 165 | else 0 | |
174 | 166 | } | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
167 | + | let M = (J + 1) | |
168 | + | let N = { | |
169 | + | let K = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(G))) | |
170 | + | if ($isInstanceOf(K, "Int")) | |
179 | 171 | then { | |
180 | - | let | |
181 | - | | |
172 | + | let L = K | |
173 | + | L | |
182 | 174 | } | |
183 | 175 | else 0 | |
184 | 176 | } | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | if ($isInstanceOf( | |
177 | + | let O = (N + p) | |
178 | + | let P = { | |
179 | + | let K = getInteger(this, ("Total_Option_Orders_" + toString(G))) | |
180 | + | if ($isInstanceOf(K, "Int")) | |
189 | 181 | then { | |
190 | - | let | |
191 | - | | |
182 | + | let L = K | |
183 | + | L | |
192 | 184 | } | |
193 | 185 | else 0 | |
194 | 186 | } | |
195 | - | let | |
187 | + | let Q = (P + 1) | |
196 | 188 | let ac = { | |
197 | - | let | |
198 | - | if ($isInstanceOf( | |
189 | + | let K = getInteger(this, "Total_Puts") | |
190 | + | if ($isInstanceOf(K, "Int")) | |
199 | 191 | then { | |
200 | - | let | |
201 | - | | |
192 | + | let L = K | |
193 | + | L | |
202 | 194 | } | |
203 | 195 | else 0 | |
204 | 196 | } | |
205 | 197 | let ad = (ac + 1) | |
206 | 198 | let ae = { | |
207 | - | let | |
208 | - | if ($isInstanceOf( | |
199 | + | let K = getInteger(this, ("Total_Puts_" + toString(G))) | |
200 | + | if ($isInstanceOf(K, "Int")) | |
209 | 201 | then { | |
210 | - | let | |
211 | - | | |
202 | + | let L = K | |
203 | + | L | |
212 | 204 | } | |
213 | 205 | else 0 | |
214 | 206 | } | |
215 | 207 | let af = (ae + 1) | |
216 | 208 | let ag = { | |
217 | - | let | |
218 | - | if ($isInstanceOf( | |
209 | + | let K = getInteger(this, (s + "_Total_Puts")) | |
210 | + | if ($isInstanceOf(K, "Int")) | |
219 | 211 | then { | |
220 | - | let | |
221 | - | | |
212 | + | let L = K | |
213 | + | L | |
222 | 214 | } | |
223 | 215 | else 0 | |
224 | 216 | } | |
225 | 217 | let ah = (ag + 1) | |
226 | 218 | let ai = { | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
219 | + | let K = getInteger(this, ((s + "_Total_Puts_") + toString(G))) | |
220 | + | if ($isInstanceOf(K, "Int")) | |
229 | 221 | then { | |
230 | - | let | |
231 | - | | |
222 | + | let L = K | |
223 | + | L | |
232 | 224 | } | |
233 | 225 | else 0 | |
234 | 226 | } | |
235 | 227 | let aj = (ai + 1) | |
236 | - | let | |
228 | + | let Z = fraction(B, 5, 100) | |
237 | 229 | if ((o.caller != h)) | |
238 | 230 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
239 | 231 | else if ((n == 1)) | |
244 | 236 | then throw(g) | |
245 | 237 | else if ((A == "Yes")) | |
246 | 238 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
247 | - | else if ((lastBlock.timestamp >= | |
239 | + | else if ((lastBlock.timestamp >= F)) | |
248 | 240 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
249 | 241 | else if (if ((0 >= C)) | |
250 | - | then (0 >= | |
242 | + | then (0 >= aa) | |
251 | 243 | else false) | |
252 | 244 | then throw("No Funds Available in Voucher as well in User Balance. Please Deposit Funds to Dapp.") | |
253 | - | else if (( | |
254 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
245 | + | else if ((O > Z)) | |
246 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Z)) + ", Pending House Risk is ") + toString((Z - N))) + ". Join in next Cycle.")) | |
255 | 247 | else if ((k > p)) | |
256 | 248 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
257 | 249 | else if ((p > l)) | |
260 | 252 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
261 | 253 | else if ((size(toString(y)) != 13)) | |
262 | 254 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
263 | - | else if (( | |
264 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), | |
255 | + | else if ((ab >= 0)) | |
256 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), ab), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(G)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(G)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
265 | 257 | else if ((D >= 0)) | |
266 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString( | |
267 | - | else throw((((("Voucher Balance=[" + toString( | |
258 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(G)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(G)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
259 | + | else throw((((("Voucher Balance=[" + toString(ab)) + "] , User Balance =[") + toString(D)) + "].")) | |
268 | 260 | } | |
269 | 261 | ||
270 | 262 | ||
276 | 268 | then o.payments[0] | |
277 | 269 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
278 | 270 | let al = { | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
271 | + | let K = getInteger(this, "Available_Vouchers_Balance") | |
272 | + | if ($isInstanceOf(K, "Int")) | |
281 | 273 | then { | |
282 | - | let | |
283 | - | | |
274 | + | let L = K | |
275 | + | L | |
284 | 276 | } | |
285 | 277 | else 0 | |
286 | 278 | } | |
287 | 279 | let am = (al + ak.amount) | |
288 | 280 | let an = { | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
281 | + | let K = getInteger(this, "Vouchers_Counter_ID") | |
282 | + | if ($isInstanceOf(K, "Int")) | |
291 | 283 | then { | |
292 | - | let | |
293 | - | | |
284 | + | let L = K | |
285 | + | L | |
294 | 286 | } | |
295 | 287 | else 0 | |
296 | 288 | } | |
310 | 302 | let aq = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
311 | 303 | let ar = (aq - ap) | |
312 | 304 | let as = { | |
313 | - | let | |
314 | - | if ($isInstanceOf( | |
305 | + | let K = getInteger(this, ("Total_Vouchers_Issued_To_" + s)) | |
306 | + | if ($isInstanceOf(K, "Int")) | |
315 | 307 | then { | |
316 | - | let | |
317 | - | | |
308 | + | let L = K | |
309 | + | L | |
318 | 310 | } | |
319 | 311 | else 0 | |
320 | 312 | } | |
321 | 313 | let at = (as + 1) | |
322 | 314 | let au = { | |
323 | - | let | |
324 | - | if ($isInstanceOf( | |
315 | + | let K = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + s)) | |
316 | + | if ($isInstanceOf(K, "Int")) | |
325 | 317 | then { | |
326 | - | let | |
327 | - | | |
318 | + | let L = K | |
319 | + | L | |
328 | 320 | } | |
329 | 321 | else 0 | |
330 | 322 | } | |
331 | 323 | let av = (au + ap) | |
332 | 324 | let aw = { | |
333 | - | let | |
334 | - | if ($isInstanceOf( | |
325 | + | let K = getInteger(this, ((d + "_") + s)) | |
326 | + | if ($isInstanceOf(K, "Int")) | |
335 | 327 | then { | |
336 | - | let | |
337 | - | | |
328 | + | let L = K | |
329 | + | L | |
338 | 330 | } | |
339 | 331 | else 0 | |
340 | 332 | } | |
364 | 356 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
365 | 357 | let A = getString(this, ("addr_BLACKLISTED_" + z)) | |
366 | 358 | let ay = { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
359 | + | let K = getInteger(this, ((d + "_") + z)) | |
360 | + | if ($isInstanceOf(K, "Int")) | |
369 | 361 | then { | |
370 | - | let | |
371 | - | | |
362 | + | let L = K | |
363 | + | L | |
372 | 364 | } | |
373 | 365 | else 0 | |
374 | 366 | } | |
375 | 367 | let az = (ay + ak.amount) | |
376 | 368 | let aA = { | |
377 | - | let | |
378 | - | if ($isInstanceOf( | |
369 | + | let K = getInteger(this, "Deposit_Counter_ID") | |
370 | + | if ($isInstanceOf(K, "Int")) | |
379 | 371 | then { | |
380 | - | let | |
381 | - | | |
372 | + | let L = K | |
373 | + | L | |
382 | 374 | } | |
383 | 375 | else 0 | |
384 | 376 | } | |
419 | 411 | func BlackListAddress (aE) = { | |
420 | 412 | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
421 | 413 | let aF = { | |
422 | - | let | |
423 | - | if ($isInstanceOf( | |
414 | + | let K = getInteger(this, "Total_Black_Listed_Address") | |
415 | + | if ($isInstanceOf(K, "Int")) | |
424 | 416 | then { | |
425 | - | let | |
426 | - | | |
417 | + | let L = K | |
418 | + | L | |
427 | 419 | } | |
428 | 420 | else 0 | |
429 | 421 | } | |
445 | 437 | func DeleteBlackListAddress (aE) = { | |
446 | 438 | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
447 | 439 | let aF = { | |
448 | - | let | |
449 | - | if ($isInstanceOf( | |
440 | + | let K = getInteger(this, "Total_Black_Listed_Address") | |
441 | + | if ($isInstanceOf(K, "Int")) | |
450 | 442 | then { | |
451 | - | let | |
452 | - | | |
443 | + | let L = K | |
444 | + | L | |
453 | 445 | } | |
454 | 446 | else 0 | |
455 | 447 | } | |
470 | 462 | @Callable(o) | |
471 | 463 | func Initiate_Contract_Shutdown () = { | |
472 | 464 | let aH = { | |
473 | - | let | |
474 | - | if ($isInstanceOf( | |
465 | + | let K = getInteger(this, "Shutdown_Status") | |
466 | + | if ($isInstanceOf(K, "Int")) | |
475 | 467 | then { | |
476 | - | let | |
477 | - | | |
468 | + | let L = K | |
469 | + | L | |
478 | 470 | } | |
479 | 471 | else 0 | |
480 | 472 | } | |
493 | 485 | ||
494 | 486 | @Verifier(aJ) | |
495 | 487 | func aK () = { | |
496 | - | let | |
497 | - | if (if ($isInstanceOf( | |
488 | + | let K = aJ | |
489 | + | if (if ($isInstanceOf(K, "Order")) | |
498 | 490 | then true | |
499 | - | else if ($isInstanceOf( | |
491 | + | else if ($isInstanceOf(K, "ExchangeTransaction")) | |
500 | 492 | then true | |
501 | - | else if ($isInstanceOf( | |
493 | + | else if ($isInstanceOf(K, "MassTransferTransaction")) | |
502 | 494 | then true | |
503 | - | else $isInstanceOf( | |
495 | + | else $isInstanceOf(K, "TransferTransaction")) | |
504 | 496 | then { | |
505 | - | let aL = | |
497 | + | let aL = K | |
506 | 498 | false | |
507 | 499 | } | |
508 | 500 | else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) |
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 | 28 | let m = 100000000 | |
29 | 29 | ||
30 | 30 | let n = valueOrErrorMessage(getInteger(this, "Shutdown_Status"), "Initiate_Contract_Shutdown function value is not Set, Please Sign that first.") | |
31 | 31 | ||
32 | 32 | @Callable(o) | |
33 | 33 | func placeoptionCall (p,q,r,s,t,u,v,w,x,y) = { | |
34 | 34 | let z = toBase58String(o.caller.bytes) | |
35 | 35 | let A = getString(this, ("addr_BLACKLISTED_" + s)) | |
36 | 36 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
37 | - | let C = | |
37 | + | let C = getIntegerValue(((d + "_") + s)) | |
38 | 38 | let D = ((C - p) - j) | |
39 | - | let E = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
40 | - | let F = ((E - p) - j) | |
41 | - | let G = x | |
42 | - | let H = y | |
43 | - | let I = q | |
44 | - | let J = 1 | |
45 | - | let K = (I + J) | |
46 | - | let L = { | |
47 | - | let M = getInteger(this, "Total_Option_Orders") | |
48 | - | if ($isInstanceOf(M, "Int")) | |
39 | + | let E = x | |
40 | + | let F = y | |
41 | + | let G = q | |
42 | + | let H = 1 | |
43 | + | let I = (G + H) | |
44 | + | let J = { | |
45 | + | let K = getInteger(this, "Total_Option_Orders") | |
46 | + | if ($isInstanceOf(K, "Int")) | |
49 | 47 | then { | |
50 | - | let | |
51 | - | | |
48 | + | let L = K | |
49 | + | L | |
52 | 50 | } | |
53 | 51 | else 0 | |
54 | 52 | } | |
55 | - | let | |
56 | - | let | |
57 | - | let | |
58 | - | if ($isInstanceOf( | |
53 | + | let M = (J + 1) | |
54 | + | let N = { | |
55 | + | let K = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(G))) | |
56 | + | if ($isInstanceOf(K, "Int")) | |
59 | 57 | then { | |
60 | - | let | |
61 | - | | |
58 | + | let L = K | |
59 | + | L | |
62 | 60 | } | |
63 | 61 | else 0 | |
64 | 62 | } | |
65 | - | let Q = (P + p) | |
63 | + | let O = (N + p) | |
64 | + | let P = { | |
65 | + | let K = getInteger(this, ("Total_Option_Orders_" + toString(G))) | |
66 | + | if ($isInstanceOf(K, "Int")) | |
67 | + | then { | |
68 | + | let L = K | |
69 | + | L | |
70 | + | } | |
71 | + | else 0 | |
72 | + | } | |
73 | + | let Q = (P + 1) | |
66 | 74 | let R = { | |
67 | - | let | |
68 | - | if ($isInstanceOf( | |
75 | + | let K = getInteger(this, "Total_Calls") | |
76 | + | if ($isInstanceOf(K, "Int")) | |
69 | 77 | then { | |
70 | - | let | |
71 | - | | |
78 | + | let L = K | |
79 | + | L | |
72 | 80 | } | |
73 | 81 | else 0 | |
74 | 82 | } | |
75 | 83 | let S = (R + 1) | |
76 | 84 | let T = { | |
77 | - | let | |
78 | - | if ($isInstanceOf( | |
85 | + | let K = getInteger(this, ("Total_Calls_" + toString(G))) | |
86 | + | if ($isInstanceOf(K, "Int")) | |
79 | 87 | then { | |
80 | - | let | |
81 | - | | |
88 | + | let L = K | |
89 | + | L | |
82 | 90 | } | |
83 | 91 | else 0 | |
84 | 92 | } | |
85 | 93 | let U = (T + 1) | |
86 | 94 | let V = { | |
87 | - | let | |
88 | - | if ($isInstanceOf( | |
95 | + | let K = getInteger(this, (s + "_Total_Calls")) | |
96 | + | if ($isInstanceOf(K, "Int")) | |
89 | 97 | then { | |
90 | - | let | |
91 | - | | |
98 | + | let L = K | |
99 | + | L | |
92 | 100 | } | |
93 | 101 | else 0 | |
94 | 102 | } | |
95 | 103 | let W = (V + 1) | |
96 | 104 | let X = { | |
97 | - | let | |
98 | - | if ($isInstanceOf( | |
105 | + | let K = getInteger(this, ((s + "_Total_Calls_") + toString(G))) | |
106 | + | if ($isInstanceOf(K, "Int")) | |
99 | 107 | then { | |
100 | - | let | |
101 | - | | |
108 | + | let L = K | |
109 | + | L | |
102 | 110 | } | |
103 | 111 | else 0 | |
104 | 112 | } | |
105 | 113 | let Y = (X + 1) | |
106 | - | let Z = { | |
107 | - | let M = getInteger(this, ((s + "_Total_Calls_") + toString(I))) | |
108 | - | if ($isInstanceOf(M, "Int")) | |
109 | - | then { | |
110 | - | let N = M | |
111 | - | N | |
112 | - | } | |
113 | - | else 0 | |
114 | - | } | |
115 | - | let aa = (Z + 1) | |
116 | - | let ab = fraction(B, 5, 100) | |
114 | + | let Z = fraction(B, 5, 100) | |
117 | 115 | if ((o.caller != h)) | |
118 | 116 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
119 | 117 | else if ((n == 1)) | |
120 | 118 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
121 | 119 | else if ((c > lastBlock.timestamp)) | |
122 | 120 | then throw((e + toString(c))) | |
123 | 121 | else if ((w == "CLOSE")) | |
124 | 122 | then throw(g) | |
125 | 123 | else if ((A == "Yes")) | |
126 | 124 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
127 | - | else if ((lastBlock.timestamp >= | |
125 | + | else if ((lastBlock.timestamp >= F)) | |
128 | 126 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
129 | - | else if (if ((0 >= C)) | |
130 | - | then (0 >= E) | |
131 | - | else false) | |
132 | - | then throw("No Funds Available in Voucher as well in User Balance. Please Deposit Funds to Dapp.") | |
133 | - | else if ((Q > ab)) | |
134 | - | 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.")) | |
135 | - | else if ((k > p)) | |
136 | - | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
137 | - | else if ((p > l)) | |
138 | - | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
127 | + | else if ((O > Z)) | |
128 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Z)) + ", Pending House Risk is ") + toString((Z - N))) + ". Join in next Cycle.")) | |
129 | + | else if ((k > p)) | |
130 | + | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
131 | + | else if ((p > l)) | |
132 | + | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
133 | + | else if ((0 > D)) | |
134 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(D))) | |
139 | 135 | else if ((size(toString(x)) != 13)) | |
140 | 136 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
141 | 137 | else if ((size(toString(y)) != 13)) | |
142 | 138 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
143 | - | else if ((F >= 0)) | |
144 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), F), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
145 | - | else if ((D >= 0)) | |
146 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(Y)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(Y)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(Y)), ((toString(I) + "_") + toString(K))), IntegerEntry("Total_Option_Orders", O), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(I)), Q), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(I)), ab), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(I)), S), IntegerEntry("Total_Calls", U), IntegerEntry(("Total_Calls_" + toString(I)), W), IntegerEntry((s + "_Total_Calls"), Y), IntegerEntry(((s + "_Total_Calls_") + toString(I)), aa), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
147 | - | else throw((((("Voucher Balance=[" + toString(F)) + "] , User Balance =[") + toString(D)) + "].")) | |
139 | + | else [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Call_" + s) + "_") + toString(W)), toString(t)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(W)), p), StringEntry(((("Call_Start_End_" + s) + "_") + toString(W)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Calls", S), IntegerEntry(("Total_Calls_" + toString(G)), U), IntegerEntry((s + "_Total_Calls"), W), IntegerEntry(((s + "_Total_Calls_") + toString(G)), Y), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
148 | 140 | } | |
149 | 141 | ||
150 | 142 | ||
151 | 143 | ||
152 | 144 | @Callable(o) | |
153 | 145 | func placeoptionPut (p,q,r,s,t,u,v,w,x,y) = { | |
154 | 146 | let z = toBase58String(o.caller.bytes) | |
155 | 147 | let A = getString(this, ("addr_BLACKLISTED_" + s)) | |
156 | 148 | let B = valueOrErrorMessage(getInteger(addressFromStringValue(a), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
157 | 149 | let C = valueOrElse(getInteger(((d + "_") + s)), 0) | |
158 | 150 | let D = ((C - p) - j) | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | if ($isInstanceOf( | |
151 | + | let aa = valueOrElse(getInteger((s + "_Voucher_Balance")), 0) | |
152 | + | let ab = ((aa - p) - j) | |
153 | + | let E = x | |
154 | + | let F = y | |
155 | + | let G = q | |
156 | + | let H = 1 | |
157 | + | let I = (G + H) | |
158 | + | let J = { | |
159 | + | let K = getInteger(this, "Total_Option_Orders") | |
160 | + | if ($isInstanceOf(K, "Int")) | |
169 | 161 | then { | |
170 | - | let | |
171 | - | | |
162 | + | let L = K | |
163 | + | L | |
172 | 164 | } | |
173 | 165 | else 0 | |
174 | 166 | } | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
167 | + | let M = (J + 1) | |
168 | + | let N = { | |
169 | + | let K = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(G))) | |
170 | + | if ($isInstanceOf(K, "Int")) | |
179 | 171 | then { | |
180 | - | let | |
181 | - | | |
172 | + | let L = K | |
173 | + | L | |
182 | 174 | } | |
183 | 175 | else 0 | |
184 | 176 | } | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | if ($isInstanceOf( | |
177 | + | let O = (N + p) | |
178 | + | let P = { | |
179 | + | let K = getInteger(this, ("Total_Option_Orders_" + toString(G))) | |
180 | + | if ($isInstanceOf(K, "Int")) | |
189 | 181 | then { | |
190 | - | let | |
191 | - | | |
182 | + | let L = K | |
183 | + | L | |
192 | 184 | } | |
193 | 185 | else 0 | |
194 | 186 | } | |
195 | - | let | |
187 | + | let Q = (P + 1) | |
196 | 188 | let ac = { | |
197 | - | let | |
198 | - | if ($isInstanceOf( | |
189 | + | let K = getInteger(this, "Total_Puts") | |
190 | + | if ($isInstanceOf(K, "Int")) | |
199 | 191 | then { | |
200 | - | let | |
201 | - | | |
192 | + | let L = K | |
193 | + | L | |
202 | 194 | } | |
203 | 195 | else 0 | |
204 | 196 | } | |
205 | 197 | let ad = (ac + 1) | |
206 | 198 | let ae = { | |
207 | - | let | |
208 | - | if ($isInstanceOf( | |
199 | + | let K = getInteger(this, ("Total_Puts_" + toString(G))) | |
200 | + | if ($isInstanceOf(K, "Int")) | |
209 | 201 | then { | |
210 | - | let | |
211 | - | | |
202 | + | let L = K | |
203 | + | L | |
212 | 204 | } | |
213 | 205 | else 0 | |
214 | 206 | } | |
215 | 207 | let af = (ae + 1) | |
216 | 208 | let ag = { | |
217 | - | let | |
218 | - | if ($isInstanceOf( | |
209 | + | let K = getInteger(this, (s + "_Total_Puts")) | |
210 | + | if ($isInstanceOf(K, "Int")) | |
219 | 211 | then { | |
220 | - | let | |
221 | - | | |
212 | + | let L = K | |
213 | + | L | |
222 | 214 | } | |
223 | 215 | else 0 | |
224 | 216 | } | |
225 | 217 | let ah = (ag + 1) | |
226 | 218 | let ai = { | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
219 | + | let K = getInteger(this, ((s + "_Total_Puts_") + toString(G))) | |
220 | + | if ($isInstanceOf(K, "Int")) | |
229 | 221 | then { | |
230 | - | let | |
231 | - | | |
222 | + | let L = K | |
223 | + | L | |
232 | 224 | } | |
233 | 225 | else 0 | |
234 | 226 | } | |
235 | 227 | let aj = (ai + 1) | |
236 | - | let | |
228 | + | let Z = fraction(B, 5, 100) | |
237 | 229 | if ((o.caller != h)) | |
238 | 230 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
239 | 231 | else if ((n == 1)) | |
240 | 232 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
241 | 233 | else if ((c > lastBlock.timestamp)) | |
242 | 234 | then throw((e + toString(c))) | |
243 | 235 | else if ((w == "CLOSE")) | |
244 | 236 | then throw(g) | |
245 | 237 | else if ((A == "Yes")) | |
246 | 238 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
247 | - | else if ((lastBlock.timestamp >= | |
239 | + | else if ((lastBlock.timestamp >= F)) | |
248 | 240 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
249 | 241 | else if (if ((0 >= C)) | |
250 | - | then (0 >= | |
242 | + | then (0 >= aa) | |
251 | 243 | else false) | |
252 | 244 | then throw("No Funds Available in Voucher as well in User Balance. Please Deposit Funds to Dapp.") | |
253 | - | else if (( | |
254 | - | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString( | |
245 | + | else if ((O > Z)) | |
246 | + | then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Z)) + ", Pending House Risk is ") + toString((Z - N))) + ". Join in next Cycle.")) | |
255 | 247 | else if ((k > p)) | |
256 | 248 | then throw((("Placed Order Size is less than [" + toString(k)) + "/10^8] WAVES.")) | |
257 | 249 | else if ((p > l)) | |
258 | 250 | then throw((("Placed Order Size is more than [" + toString(l)) + "/10^8] WAVES.")) | |
259 | 251 | else if ((size(toString(x)) != 13)) | |
260 | 252 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
261 | 253 | else if ((size(toString(y)) != 13)) | |
262 | 254 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
263 | - | else if (( | |
264 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), | |
255 | + | else if ((ab >= 0)) | |
256 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry((s + "_Voucher_Balance"), ab), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(G)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(G)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
265 | 257 | else if ((D >= 0)) | |
266 | - | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString( | |
267 | - | else throw((((("Voucher Balance=[" + toString( | |
258 | + | then [StringEntry(("User_ID_" + s), r), IntegerEntry(((d + "_") + s), D), IntegerEntry("Network_Fee_To_Place_Order", j), StringEntry(((("Put_" + s) + "_") + toString(ah)), toString(t)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(ah)), p), StringEntry(((("Put_Start_End_" + s) + "_") + toString(ah)), ((toString(G) + "_") + toString(I))), IntegerEntry("Total_Option_Orders", M), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(G)), O), IntegerEntry("Total_Pool_Liquidity", B), IntegerEntry(("Funds_At_Risk_" + toString(G)), Z), IntegerEntry("Call_Limits", u), IntegerEntry("Put_Limits", v), IntegerEntry(("Total_Option_Orders_" + toString(G)), Q), IntegerEntry("Total_Puts", ad), IntegerEntry(("Total_Puts_" + toString(G)), af), IntegerEntry((s + "_Total_Puts"), ah), IntegerEntry(((s + "_Total_Puts_") + toString(G)), aj), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(a), p, unit)] | |
259 | + | else throw((((("Voucher Balance=[" + toString(ab)) + "] , User Balance =[") + toString(D)) + "].")) | |
268 | 260 | } | |
269 | 261 | ||
270 | 262 | ||
271 | 263 | ||
272 | 264 | @Callable(o) | |
273 | 265 | func Fill_Vouchers_Liquidity () = { | |
274 | 266 | let z = toBase58String(o.caller.bytes) | |
275 | 267 | let ak = if ((size(o.payments) == 1)) | |
276 | 268 | then o.payments[0] | |
277 | 269 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
278 | 270 | let al = { | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
271 | + | let K = getInteger(this, "Available_Vouchers_Balance") | |
272 | + | if ($isInstanceOf(K, "Int")) | |
281 | 273 | then { | |
282 | - | let | |
283 | - | | |
274 | + | let L = K | |
275 | + | L | |
284 | 276 | } | |
285 | 277 | else 0 | |
286 | 278 | } | |
287 | 279 | let am = (al + ak.amount) | |
288 | 280 | let an = { | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
281 | + | let K = getInteger(this, "Vouchers_Counter_ID") | |
282 | + | if ($isInstanceOf(K, "Int")) | |
291 | 283 | then { | |
292 | - | let | |
293 | - | | |
284 | + | let L = K | |
285 | + | L | |
294 | 286 | } | |
295 | 287 | else 0 | |
296 | 288 | } | |
297 | 289 | let ao = (an + 1) | |
298 | 290 | if (isDefined(ak.assetId)) | |
299 | 291 | then throw("Only WAVES is allowed to deposit at the moment") | |
300 | 292 | else if ((n == 1)) | |
301 | 293 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
302 | 294 | else [IntegerEntry("Available_Vouchers_Balance", am), IntegerEntry((toString(ao) + "_Voucher_Added_Amount"), ak.amount), IntegerEntry("Vouchers_Counter_ID", ao)] | |
303 | 295 | } | |
304 | 296 | ||
305 | 297 | ||
306 | 298 | ||
307 | 299 | @Callable(o) | |
308 | 300 | func Issue_Vouchers (r,s) = { | |
309 | 301 | let ap = 50000000 | |
310 | 302 | let aq = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
311 | 303 | let ar = (aq - ap) | |
312 | 304 | let as = { | |
313 | - | let | |
314 | - | if ($isInstanceOf( | |
305 | + | let K = getInteger(this, ("Total_Vouchers_Issued_To_" + s)) | |
306 | + | if ($isInstanceOf(K, "Int")) | |
315 | 307 | then { | |
316 | - | let | |
317 | - | | |
308 | + | let L = K | |
309 | + | L | |
318 | 310 | } | |
319 | 311 | else 0 | |
320 | 312 | } | |
321 | 313 | let at = (as + 1) | |
322 | 314 | let au = { | |
323 | - | let | |
324 | - | if ($isInstanceOf( | |
315 | + | let K = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + s)) | |
316 | + | if ($isInstanceOf(K, "Int")) | |
325 | 317 | then { | |
326 | - | let | |
327 | - | | |
318 | + | let L = K | |
319 | + | L | |
328 | 320 | } | |
329 | 321 | else 0 | |
330 | 322 | } | |
331 | 323 | let av = (au + ap) | |
332 | 324 | let aw = { | |
333 | - | let | |
334 | - | if ($isInstanceOf( | |
325 | + | let K = getInteger(this, ((d + "_") + s)) | |
326 | + | if ($isInstanceOf(K, "Int")) | |
335 | 327 | then { | |
336 | - | let | |
337 | - | | |
328 | + | let L = K | |
329 | + | L | |
338 | 330 | } | |
339 | 331 | else 0 | |
340 | 332 | } | |
341 | 333 | let ax = (aw + ap) | |
342 | 334 | if ((o.caller != h)) | |
343 | 335 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
344 | 336 | else if ((n == 1)) | |
345 | 337 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
346 | 338 | else if ((0 >= ap)) | |
347 | 339 | then throw((("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount where maximum limit is " + toString(m)) + "/10^8 Waves.")) | |
348 | 340 | else if ((0 >= ar)) | |
349 | 341 | then throw((("Updated Voucher Balance can't go in negative State of " + toString(ar)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
350 | 342 | else if ((ap > m)) | |
351 | 343 | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(m)) + "/10^8 Waves.")) | |
352 | 344 | else if ((ax > m)) | |
353 | 345 | then throw((((s + " Voucher Balance is exceeding the limit of ") + toString(m)) + "/10^8 Waves.")) | |
354 | 346 | else [IntegerEntry(("Total_Vouchers_Issued_To_" + s), at), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + s), av), IntegerEntry(((d + "_") + s), ax), IntegerEntry("Available_Vouchers_Balance", ar)] | |
355 | 347 | } | |
356 | 348 | ||
357 | 349 | ||
358 | 350 | ||
359 | 351 | @Callable(o) | |
360 | 352 | func DepositUserFunds () = { | |
361 | 353 | let z = toBase58String(o.caller.bytes) | |
362 | 354 | let ak = if ((size(o.payments) == 1)) | |
363 | 355 | then o.payments[0] | |
364 | 356 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
365 | 357 | let A = getString(this, ("addr_BLACKLISTED_" + z)) | |
366 | 358 | let ay = { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
359 | + | let K = getInteger(this, ((d + "_") + z)) | |
360 | + | if ($isInstanceOf(K, "Int")) | |
369 | 361 | then { | |
370 | - | let | |
371 | - | | |
362 | + | let L = K | |
363 | + | L | |
372 | 364 | } | |
373 | 365 | else 0 | |
374 | 366 | } | |
375 | 367 | let az = (ay + ak.amount) | |
376 | 368 | let aA = { | |
377 | - | let | |
378 | - | if ($isInstanceOf( | |
369 | + | let K = getInteger(this, "Deposit_Counter_ID") | |
370 | + | if ($isInstanceOf(K, "Int")) | |
379 | 371 | then { | |
380 | - | let | |
381 | - | | |
372 | + | let L = K | |
373 | + | L | |
382 | 374 | } | |
383 | 375 | else 0 | |
384 | 376 | } | |
385 | 377 | let aB = (aA + 1) | |
386 | 378 | if ((c > lastBlock.timestamp)) | |
387 | 379 | then throw((e + toString(c))) | |
388 | 380 | else if ((n == 1)) | |
389 | 381 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
390 | 382 | else if ((A == "Yes")) | |
391 | 383 | then throw((z + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
392 | 384 | else if (isDefined(ak.assetId)) | |
393 | 385 | then throw("Only WAVES is allowed to deposit at the moment") | |
394 | 386 | else [IntegerEntry(((d + "_") + z), az), IntegerEntry(((((toString(aB) + "_") + d) + "_") + z), ak.amount), IntegerEntry("Deposit_Counter_ID", aB)] | |
395 | 387 | } | |
396 | 388 | ||
397 | 389 | ||
398 | 390 | ||
399 | 391 | @Callable(o) | |
400 | 392 | func WithdrawUserFunds (s,p) = { | |
401 | 393 | let z = toBase58String(o.caller.bytes) | |
402 | 394 | let aC = getIntegerValue(((d + "_") + s)) | |
403 | 395 | let D = ((aC - p) - j) | |
404 | 396 | let aD = 10000000 | |
405 | 397 | if ((o.caller != h)) | |
406 | 398 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
407 | 399 | else if ((n == 1)) | |
408 | 400 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
409 | 401 | else if ((aD > p)) | |
410 | 402 | then throw((("Minimum Withdraw Amount is " + toString(aD)) + "/10^8] WAVES.")) | |
411 | 403 | else if ((0 > D)) | |
412 | 404 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(D)) + "/10^8] WAVES.")) | |
413 | 405 | else [IntegerEntry("Previous_Balance", aC), IntegerEntry("Network_Fee_To_Withdraw", j), IntegerEntry(((d + "_") + s), D), ScriptTransfer(h, j, unit), ScriptTransfer(addressFromStringValue(s), p, unit)] | |
414 | 406 | } | |
415 | 407 | ||
416 | 408 | ||
417 | 409 | ||
418 | 410 | @Callable(o) | |
419 | 411 | func BlackListAddress (aE) = { | |
420 | 412 | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
421 | 413 | let aF = { | |
422 | - | let | |
423 | - | if ($isInstanceOf( | |
414 | + | let K = getInteger(this, "Total_Black_Listed_Address") | |
415 | + | if ($isInstanceOf(K, "Int")) | |
424 | 416 | then { | |
425 | - | let | |
426 | - | | |
417 | + | let L = K | |
418 | + | L | |
427 | 419 | } | |
428 | 420 | else 0 | |
429 | 421 | } | |
430 | 422 | let aG = (aF + 1) | |
431 | 423 | if ((c > lastBlock.timestamp)) | |
432 | 424 | then throw((e + toString(c))) | |
433 | 425 | else if ((o.caller != h)) | |
434 | 426 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
435 | 427 | else if ((n == 1)) | |
436 | 428 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
437 | 429 | else if ((A == "Yes")) | |
438 | 430 | then throw("Address is already available in Blacklist.") | |
439 | 431 | else [StringEntry(("addr_BLACKLISTED_" + aE), "Yes"), IntegerEntry("Total_Black_Listed_Address", aG)] | |
440 | 432 | } | |
441 | 433 | ||
442 | 434 | ||
443 | 435 | ||
444 | 436 | @Callable(o) | |
445 | 437 | func DeleteBlackListAddress (aE) = { | |
446 | 438 | let A = getString(this, ("addr_BLACKLISTED_" + aE)) | |
447 | 439 | let aF = { | |
448 | - | let | |
449 | - | if ($isInstanceOf( | |
440 | + | let K = getInteger(this, "Total_Black_Listed_Address") | |
441 | + | if ($isInstanceOf(K, "Int")) | |
450 | 442 | then { | |
451 | - | let | |
452 | - | | |
443 | + | let L = K | |
444 | + | L | |
453 | 445 | } | |
454 | 446 | else 0 | |
455 | 447 | } | |
456 | 448 | let aG = (aF - 1) | |
457 | 449 | if ((c > lastBlock.timestamp)) | |
458 | 450 | then throw(("Product Launch Timestamp is set at " + toString(c))) | |
459 | 451 | else if ((o.caller != h)) | |
460 | 452 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
461 | 453 | else if ((n == 1)) | |
462 | 454 | then throw("Contract Status is Currently Shutdown. Please Sign the Function Initiate_Contract_Shutdown.") | |
463 | 455 | else if ((A == "Yes")) | |
464 | 456 | then [DeleteEntry(("addr_BLACKLISTED_" + aE)), IntegerEntry("Total_Black_Listed_Address", aG)] | |
465 | 457 | else throw("Address is not available in Blacklist.") | |
466 | 458 | } | |
467 | 459 | ||
468 | 460 | ||
469 | 461 | ||
470 | 462 | @Callable(o) | |
471 | 463 | func Initiate_Contract_Shutdown () = { | |
472 | 464 | let aH = { | |
473 | - | let | |
474 | - | if ($isInstanceOf( | |
465 | + | let K = getInteger(this, "Shutdown_Status") | |
466 | + | if ($isInstanceOf(K, "Int")) | |
475 | 467 | then { | |
476 | - | let | |
477 | - | | |
468 | + | let L = K | |
469 | + | L | |
478 | 470 | } | |
479 | 471 | else 0 | |
480 | 472 | } | |
481 | 473 | if ((o.caller != h)) | |
482 | 474 | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
483 | 475 | else if ((aH == 0)) | |
484 | 476 | then [IntegerEntry("Shutdown_Status", 1)] | |
485 | 477 | else [IntegerEntry("Shutdown_Status", 0)] | |
486 | 478 | } | |
487 | 479 | ||
488 | 480 | ||
489 | 481 | ||
490 | 482 | @Callable(o) | |
491 | 483 | func Del (aI) = [DeleteEntry(aI)] | |
492 | 484 | ||
493 | 485 | ||
494 | 486 | @Verifier(aJ) | |
495 | 487 | func aK () = { | |
496 | - | let | |
497 | - | if (if ($isInstanceOf( | |
488 | + | let K = aJ | |
489 | + | if (if ($isInstanceOf(K, "Order")) | |
498 | 490 | then true | |
499 | - | else if ($isInstanceOf( | |
491 | + | else if ($isInstanceOf(K, "ExchangeTransaction")) | |
500 | 492 | then true | |
501 | - | else if ($isInstanceOf( | |
493 | + | else if ($isInstanceOf(K, "MassTransferTransaction")) | |
502 | 494 | then true | |
503 | - | else $isInstanceOf( | |
495 | + | else $isInstanceOf(K, "TransferTransaction")) | |
504 | 496 | then { | |
505 | - | let aL = | |
497 | + | let aL = K | |
506 | 498 | false | |
507 | 499 | } | |
508 | 500 | else sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
509 | 501 | } | |
510 | 502 |
github/deemru/w8io/026f985 132.08 ms ◑