tx · 6ARt7ebvjbErdkRLYQhVrH1S9xCpcsXL5UWeWrZ61muE 3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm: -1.04000000 Waves 2023.04.01 12:18 [2515346] smart account 3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm > SELF 0.00000000 Waves
{ "type": 13, "id": "6ARt7ebvjbErdkRLYQhVrH1S9xCpcsXL5UWeWrZ61muE", "fee": 104000000, "feeAssetId": null, "timestamp": 1680340733810, "version": 2, "chainId": 84, "sender": "3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "senderPublicKey": "EKmhAeU9yA52DSvBnr1WtWQWyyiCrauDYkmgnTns7ZkA", "proofs": [ "3cwVWhTy7gPZxx9WiSWuMFg6tUGEb9hwU7WvuPcE617wu736aeQy9XeLN6hHXBfy5kTqvMZSJ86cw6bJaUZbdGLU" ], "script": "base64:AAIFAAAAAAAAABwIAhILCgkBAQEBAQEIAQESCwoJAQEBAQEBCAEBAAAACAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIDt0RfG+UDnkUrGYjjYAjr/q4kPWHyAQKg1dGLENBEMMAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yAgAAADFPcmFjbGUgaXMgY2xvc2VkLiBXYWl0IFVudGlsIE9yYWNsZSBpcyBUdXJuZWQgT24uAAAAABF3aGl0ZWxpc3RfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAURGFwcF9BZGR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XNzAgAAAAxfVG90YWxfUHV0c18JAAGkAAAAAQUAAAAUcmVhZF9PcHRpb25Db3VudGVySUQFAAAAHVRvdGFsVXNlclB1dGluU3BlY2lmaWNDb3VudGVyBQAAAANuaWwAAAAAlmviWA==", "height": 2515346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DDm94CenkCkSGinB7Bd3TPiDWmi7W134WJe8JfxkeC1p Next: HW5i1hecWEjyQCr4AYGMgTXJt4T1Y3pt1rJR3MNVQW4a Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | + | ||
135 | + | @Callable(i) | |
136 | + | func placeoptionPut (j,k,l,m,n,o,p,q,r) = { | |
137 | + | let s = toBase58String(i.caller.bytes) | |
138 | + | let t = if ((size(i.payments) == 1)) | |
139 | + | then i.payments[0] | |
140 | + | else throw(d) | |
141 | + | let u = getString(this, ("addr_BLACKLISTED_" + s)) | |
142 | + | let v = q | |
143 | + | let w = r | |
144 | + | let x = j | |
145 | + | let y = (x + t.amount) | |
146 | + | let z = k | |
147 | + | let A = 1 | |
148 | + | let B = (z + A) | |
149 | + | let C = { | |
150 | + | let D = getInteger(this, "Total_Option_Orders") | |
151 | + | if ($isInstanceOf(D, "Int")) | |
152 | + | then { | |
153 | + | let E = D | |
154 | + | E | |
155 | + | } | |
156 | + | else 0 | |
157 | + | } | |
158 | + | let F = (C + 1) | |
159 | + | let G = { | |
160 | + | let D = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(z))) | |
161 | + | if ($isInstanceOf(D, "Int")) | |
162 | + | then { | |
163 | + | let E = D | |
164 | + | E | |
165 | + | } | |
166 | + | else 0 | |
167 | + | } | |
168 | + | let H = (G + t.amount) | |
169 | + | let I = { | |
170 | + | let D = getInteger(this, ("Total_Option_Orders_" + toString(z))) | |
171 | + | if ($isInstanceOf(D, "Int")) | |
172 | + | then { | |
173 | + | let E = D | |
174 | + | E | |
175 | + | } | |
176 | + | else 0 | |
177 | + | } | |
178 | + | let J = (I + 1) | |
179 | + | let U = { | |
180 | + | let D = getInteger(this, "Total_Puts") | |
181 | + | if ($isInstanceOf(D, "Int")) | |
182 | + | then { | |
183 | + | let E = D | |
184 | + | E | |
185 | + | } | |
186 | + | else 0 | |
187 | + | } | |
188 | + | let V = (U + 1) | |
189 | + | let W = { | |
190 | + | let D = getInteger(this, ("Total_Puts_" + toString(z))) | |
191 | + | if ($isInstanceOf(D, "Int")) | |
192 | + | then { | |
193 | + | let E = D | |
194 | + | E | |
195 | + | } | |
196 | + | else 0 | |
197 | + | } | |
198 | + | let X = (W + 1) | |
199 | + | let Y = { | |
200 | + | let D = getInteger(this, (s + "_Total_Puts")) | |
201 | + | if ($isInstanceOf(D, "Int")) | |
202 | + | then { | |
203 | + | let E = D | |
204 | + | E | |
205 | + | } | |
206 | + | else 0 | |
207 | + | } | |
208 | + | let Z = (Y + 1) | |
209 | + | let aa = { | |
210 | + | let D = getInteger(this, ((s + "_Total_Puts_") + toString(z))) | |
211 | + | if ($isInstanceOf(D, "Int")) | |
212 | + | then { | |
213 | + | let E = D | |
214 | + | E | |
215 | + | } | |
216 | + | else 0 | |
217 | + | } | |
218 | + | let ab = (aa + 1) | |
219 | + | let S = { | |
220 | + | let D = getInteger(this, "Pending_Option_Limits") | |
221 | + | if ($isInstanceOf(D, "Int")) | |
222 | + | then { | |
223 | + | let E = D | |
224 | + | E | |
225 | + | } | |
226 | + | else 0 | |
227 | + | } | |
228 | + | let T = l | |
229 | + | if ((i.caller != f)) | |
230 | + | then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it.")) | |
231 | + | else if ((b > lastBlock.timestamp)) | |
232 | + | then throw((c + toString(b))) | |
233 | + | else if ((p == "Close")) | |
234 | + | then throw(e) | |
235 | + | else if ((u == "Yes")) | |
236 | + | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
237 | + | else if (isDefined(t.assetId)) | |
238 | + | then throw("Only TN is allowed to deposit at the moment") | |
239 | + | else if ((lastBlock.timestamp >= w)) | |
240 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
241 | + | else if ((g > t.amount)) | |
242 | + | then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN.")) | |
243 | + | else if ((t.amount > h)) | |
244 | + | then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN.")) | |
245 | + | else [StringEntry(((("Put_" + s) + "_") + toString(Z)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Z)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Z)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", V), IntegerEntry(("Total_Puts_" + toString(z)), X), IntegerEntry((s + "_Total_Puts"), Z), IntegerEntry(((s + "_Total_Puts_") + toString(z)), ab)] | |
246 | + | } | |
247 | + | ||
248 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB' | |
5 | 5 | ||
6 | 6 | let b = 1675209600000 | |
7 | 7 | ||
8 | 8 | let c = "Product Launch Timestamp is set at " | |
9 | 9 | ||
10 | 10 | let d = "No payment attached, Please Attach Token in payment[1]." | |
11 | 11 | ||
12 | 12 | let e = "Oracle is closed. Wait Until Oracle is Turned On." | |
13 | 13 | ||
14 | 14 | let f = addressFromPublicKey(a) | |
15 | 15 | ||
16 | 16 | let g = 10000000 | |
17 | 17 | ||
18 | 18 | let h = 10000000000 | |
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func placeoptionCall (j,k,l,m,n,o,p,q,r) = { | |
22 | 22 | let s = toBase58String(i.caller.bytes) | |
23 | 23 | let t = if ((size(i.payments) == 1)) | |
24 | 24 | then i.payments[0] | |
25 | 25 | else throw(d) | |
26 | 26 | let u = getString(this, ("addr_BLACKLISTED_" + s)) | |
27 | 27 | let v = q | |
28 | 28 | let w = r | |
29 | 29 | let x = j | |
30 | 30 | let y = (x + t.amount) | |
31 | 31 | let z = k | |
32 | 32 | let A = 1 | |
33 | 33 | let B = (z + A) | |
34 | 34 | let C = { | |
35 | 35 | let D = getInteger(this, "Total_Option_Orders") | |
36 | 36 | if ($isInstanceOf(D, "Int")) | |
37 | 37 | then { | |
38 | 38 | let E = D | |
39 | 39 | E | |
40 | 40 | } | |
41 | 41 | else 0 | |
42 | 42 | } | |
43 | 43 | let F = (C + 1) | |
44 | 44 | let G = { | |
45 | 45 | let D = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(z))) | |
46 | 46 | if ($isInstanceOf(D, "Int")) | |
47 | 47 | then { | |
48 | 48 | let E = D | |
49 | 49 | E | |
50 | 50 | } | |
51 | 51 | else 0 | |
52 | 52 | } | |
53 | 53 | let H = (G + t.amount) | |
54 | 54 | let I = { | |
55 | 55 | let D = getInteger(this, ("Total_Option_Orders_" + toString(z))) | |
56 | 56 | if ($isInstanceOf(D, "Int")) | |
57 | 57 | then { | |
58 | 58 | let E = D | |
59 | 59 | E | |
60 | 60 | } | |
61 | 61 | else 0 | |
62 | 62 | } | |
63 | 63 | let J = (I + 1) | |
64 | 64 | let K = { | |
65 | 65 | let D = getInteger(this, "Total_Calls") | |
66 | 66 | if ($isInstanceOf(D, "Int")) | |
67 | 67 | then { | |
68 | 68 | let E = D | |
69 | 69 | E | |
70 | 70 | } | |
71 | 71 | else 0 | |
72 | 72 | } | |
73 | 73 | let L = (K + 1) | |
74 | 74 | let M = { | |
75 | 75 | let D = getInteger(this, ("Total_Calls_" + toString(z))) | |
76 | 76 | if ($isInstanceOf(D, "Int")) | |
77 | 77 | then { | |
78 | 78 | let E = D | |
79 | 79 | E | |
80 | 80 | } | |
81 | 81 | else 0 | |
82 | 82 | } | |
83 | 83 | let N = (M + 1) | |
84 | 84 | let O = { | |
85 | 85 | let D = getInteger(this, (s + "_Total_Calls")) | |
86 | 86 | if ($isInstanceOf(D, "Int")) | |
87 | 87 | then { | |
88 | 88 | let E = D | |
89 | 89 | E | |
90 | 90 | } | |
91 | 91 | else 0 | |
92 | 92 | } | |
93 | 93 | let P = (O + 1) | |
94 | 94 | let Q = { | |
95 | 95 | let D = getInteger(this, ((s + "_Total_Calls_") + toString(z))) | |
96 | 96 | if ($isInstanceOf(D, "Int")) | |
97 | 97 | then { | |
98 | 98 | let E = D | |
99 | 99 | E | |
100 | 100 | } | |
101 | 101 | else 0 | |
102 | 102 | } | |
103 | 103 | let R = (Q + 1) | |
104 | 104 | let S = { | |
105 | 105 | let D = getInteger(this, "Pending_Option_Limits") | |
106 | 106 | if ($isInstanceOf(D, "Int")) | |
107 | 107 | then { | |
108 | 108 | let E = D | |
109 | 109 | E | |
110 | 110 | } | |
111 | 111 | else 0 | |
112 | 112 | } | |
113 | 113 | let T = l | |
114 | 114 | if ((i.caller != f)) | |
115 | 115 | then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it.")) | |
116 | 116 | else if ((b > lastBlock.timestamp)) | |
117 | 117 | then throw((c + toString(b))) | |
118 | 118 | else if ((p == "Close")) | |
119 | 119 | then throw(e) | |
120 | 120 | else if ((u == "Yes")) | |
121 | 121 | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
122 | 122 | else if (isDefined(t.assetId)) | |
123 | 123 | then throw("Only TN is allowed to deposit at the moment") | |
124 | 124 | else if ((lastBlock.timestamp >= w)) | |
125 | 125 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
126 | 126 | else if ((g > t.amount)) | |
127 | 127 | then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN.")) | |
128 | 128 | else if ((t.amount > h)) | |
129 | 129 | then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN.")) | |
130 | 130 | else [StringEntry(((("Call_" + s) + "_") + toString(P)), toString(m)), IntegerEntry(((("Call_Amount_" + s) + "_") + toString(P)), t.amount), StringEntry(((("Call_Start_End_" + s) + "_") + toString(P)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Calls", L), IntegerEntry(("Total_Calls_" + toString(z)), N), IntegerEntry((s + "_Total_Calls"), P), IntegerEntry(((s + "_Total_Calls_") + toString(z)), R)] | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | + | ||
135 | + | @Callable(i) | |
136 | + | func placeoptionPut (j,k,l,m,n,o,p,q,r) = { | |
137 | + | let s = toBase58String(i.caller.bytes) | |
138 | + | let t = if ((size(i.payments) == 1)) | |
139 | + | then i.payments[0] | |
140 | + | else throw(d) | |
141 | + | let u = getString(this, ("addr_BLACKLISTED_" + s)) | |
142 | + | let v = q | |
143 | + | let w = r | |
144 | + | let x = j | |
145 | + | let y = (x + t.amount) | |
146 | + | let z = k | |
147 | + | let A = 1 | |
148 | + | let B = (z + A) | |
149 | + | let C = { | |
150 | + | let D = getInteger(this, "Total_Option_Orders") | |
151 | + | if ($isInstanceOf(D, "Int")) | |
152 | + | then { | |
153 | + | let E = D | |
154 | + | E | |
155 | + | } | |
156 | + | else 0 | |
157 | + | } | |
158 | + | let F = (C + 1) | |
159 | + | let G = { | |
160 | + | let D = getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(z))) | |
161 | + | if ($isInstanceOf(D, "Int")) | |
162 | + | then { | |
163 | + | let E = D | |
164 | + | E | |
165 | + | } | |
166 | + | else 0 | |
167 | + | } | |
168 | + | let H = (G + t.amount) | |
169 | + | let I = { | |
170 | + | let D = getInteger(this, ("Total_Option_Orders_" + toString(z))) | |
171 | + | if ($isInstanceOf(D, "Int")) | |
172 | + | then { | |
173 | + | let E = D | |
174 | + | E | |
175 | + | } | |
176 | + | else 0 | |
177 | + | } | |
178 | + | let J = (I + 1) | |
179 | + | let U = { | |
180 | + | let D = getInteger(this, "Total_Puts") | |
181 | + | if ($isInstanceOf(D, "Int")) | |
182 | + | then { | |
183 | + | let E = D | |
184 | + | E | |
185 | + | } | |
186 | + | else 0 | |
187 | + | } | |
188 | + | let V = (U + 1) | |
189 | + | let W = { | |
190 | + | let D = getInteger(this, ("Total_Puts_" + toString(z))) | |
191 | + | if ($isInstanceOf(D, "Int")) | |
192 | + | then { | |
193 | + | let E = D | |
194 | + | E | |
195 | + | } | |
196 | + | else 0 | |
197 | + | } | |
198 | + | let X = (W + 1) | |
199 | + | let Y = { | |
200 | + | let D = getInteger(this, (s + "_Total_Puts")) | |
201 | + | if ($isInstanceOf(D, "Int")) | |
202 | + | then { | |
203 | + | let E = D | |
204 | + | E | |
205 | + | } | |
206 | + | else 0 | |
207 | + | } | |
208 | + | let Z = (Y + 1) | |
209 | + | let aa = { | |
210 | + | let D = getInteger(this, ((s + "_Total_Puts_") + toString(z))) | |
211 | + | if ($isInstanceOf(D, "Int")) | |
212 | + | then { | |
213 | + | let E = D | |
214 | + | E | |
215 | + | } | |
216 | + | else 0 | |
217 | + | } | |
218 | + | let ab = (aa + 1) | |
219 | + | let S = { | |
220 | + | let D = getInteger(this, "Pending_Option_Limits") | |
221 | + | if ($isInstanceOf(D, "Int")) | |
222 | + | then { | |
223 | + | let E = D | |
224 | + | E | |
225 | + | } | |
226 | + | else 0 | |
227 | + | } | |
228 | + | let T = l | |
229 | + | if ((i.caller != f)) | |
230 | + | then throw((("This Address is not Authorized. Only " + toString(f)) + " is Authorized Address to Sign it.")) | |
231 | + | else if ((b > lastBlock.timestamp)) | |
232 | + | then throw((c + toString(b))) | |
233 | + | else if ((p == "Close")) | |
234 | + | then throw(e) | |
235 | + | else if ((u == "Yes")) | |
236 | + | then throw((s + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
237 | + | else if (isDefined(t.assetId)) | |
238 | + | then throw("Only TN is allowed to deposit at the moment") | |
239 | + | else if ((lastBlock.timestamp >= w)) | |
240 | + | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
241 | + | else if ((g > t.amount)) | |
242 | + | then throw((("Placed Order Size is less than [" + toString(g)) + "/10^8] TN.")) | |
243 | + | else if ((t.amount > h)) | |
244 | + | then throw((("Placed Order Size is more than [" + toString(h)) + "/10^8] TN.")) | |
245 | + | else [StringEntry(((("Put_" + s) + "_") + toString(Z)), toString(m)), IntegerEntry(((("Put_Amount_" + s) + "_") + toString(Z)), t.amount), StringEntry(((("Put_Start_End_" + s) + "_") + toString(Z)), ((toString(z) + "_") + toString(B))), IntegerEntry("Total_Option_Orders", F), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(z)), H), IntegerEntry("Total_Pool_Liquidity", y), IntegerEntry(("Total_Pool_Liquidity_" + toString(z)), (y - H)), IntegerEntry(("Funds_At_Risk_" + toString(z)), T), IntegerEntry("Call_Limits", n), IntegerEntry("Put_Limits", o), IntegerEntry(("Total_Option_Orders_" + toString(z)), J), IntegerEntry("Total_Puts", V), IntegerEntry(("Total_Puts_" + toString(z)), X), IntegerEntry((s + "_Total_Puts"), Z), IntegerEntry(((s + "_Total_Puts_") + toString(z)), ab)] | |
246 | + | } | |
247 | + | ||
248 | + |
github/deemru/w8io/169f3d6 41.98 ms ◑