tx · Dixr8Lx5aBFR5ZDQJffPHATEMpYnoycwm9ESNry3m8PR

3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2:  -0.02300000 Waves

2023.11.26 22:49 [2860814] smart account 3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2 > SELF 0.00000000 Waves

{ "type": 13, "id": "Dixr8Lx5aBFR5ZDQJffPHATEMpYnoycwm9ESNry3m8PR", "fee": 2300000, "feeAssetId": null, "timestamp": 1701028251180, "version": 2, "chainId": 84, "sender": "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2", "senderPublicKey": "DNKNL32sAVUYg4iGA3tW8Z6VXrENmGCmKfG6DLar82aP", "proofs": [ "5YWv64dxaA3S1BXb9UajrR3SNN4n5rrz3nFU43TZqeuKm9ZiQZADhiv8LJdJzRLXKcF6ZNreNKwwc5eL7CNAtTLo" ], "script": "base64:AAIFAAAAAAAAACcIAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESABIFCgMBCAgAAAAMAAAAABZwb29sX2xpcXVpZGl0eV9hZGRyZXNzAgAAACMzTjR3QmdZdFdnSlcyTFRSZWYyZWtXUVRyRVhDUmZYbUdMaAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIMjtmNqG7lU1WGDHPJboKlti9SIwxR/k7IFRCWjnzhpzAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABir9gFiAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuI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1ZvdWNoZXJzX0JhbGFuY2UFAAAAG3VwZGF0ZV9Ub3RhbFZvdWNoZXJzQmFsYW5jZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5IUv8Ig==", "height": 2860814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DPjxpJMPMHjogUCQ7CzuPXyPA8tvA6TJVJTJfneuJ8UN Next: 4h1dcPSVFRuPq7ga7AsKhhCXbxzjvAuFPd9JPGiNDnw6 Diff:
OldNewDifferences
2222 let minimum_order_size = 10000000
2323
2424 let maximum_order_size = 10000000000
25+
26+let maximum_voucher_size = 100000000
2527
2628 @Callable(i)
2729 func placeoptionCall (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = {
202204
203205
204206 @Callable(i)
205-func DepositUserFunds () = {
207+func Fill_Vouchers_Liquidity () = {
206208 let calleraddress = toBase58String(i.caller.bytes)
207209 let pmt = if ((size(i.payments) == 1))
208210 then i.payments[0]
209211 else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
210- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress))
211- let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) {
212+ let PreviousVouchersBalance = match getInteger(this, "Available_Vouchers_Balance") {
212213 case a: Int =>
213214 a
214215 case _ =>
215216 0
216217 }
217- let TotalUserDeposit = (PreviousUserDeposit + pmt.amount)
218- let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") {
218+ let TotalVouchersBalance = (PreviousVouchersBalance + pmt.amount)
219+ let PreviousVouchersCounterID = match getInteger(this, "Vouchers_Counter_ID") {
219220 case a: Int =>
220221 a
221222 case _ =>
222223 0
223224 }
224- let TotalDepositCounterID = (PreviousDepositCounterID + 1)
225- if ((product_launch_timestamp > lastBlock.timestamp))
226- then throw((product_launch_error + toString(product_launch_timestamp)))
227- else if ((ifBlacklisted == "Yes"))
228- then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it."))
229- else if (isDefined(pmt.assetId))
230- then throw("Only WAVES is allowed to deposit at the moment")
231- else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)]
225+ let TotalVouchersCounterID = (PreviousVouchersCounterID + 1)
226+ if (isDefined(pmt.assetId))
227+ then throw("Only WAVES is allowed to deposit at the moment")
228+ else [IntegerEntry("Available_Vouchers_Balance", TotalVouchersBalance), IntegerEntry((toString(TotalVouchersCounterID) + "_Voucher_Amount"), pmt.amount), IntegerEntry("Vouchers_Counter_ID", TotalVouchersCounterID)]
232229 }
233230
234231
235232
236233 @Callable(i)
237-func WithdrawUserFunds (User_Address,Amount) = {
238- let calleraddress = toBase58String(i.caller.bytes)
239- let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address))
240- let update_user_funds = ((readuserbalance - Amount) - network_fee)
241- let minimim_withdraw_amount = 10000000
242- if ((i.caller != whitelist_address))
243- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
244- else if ((minimim_withdraw_amount > Amount))
245- then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES."))
246- else if ((0 > update_user_funds))
247- then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES."))
248- else [IntegerEntry("Previous_Balance", readuserbalance), IntegerEntry("Network_Fee_To_Withdraw", network_fee), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), ScriptTransfer(whitelist_address, network_fee, unit), ScriptTransfer(addressFromStringValue(User_Address), Amount, unit)]
249- }
250-
251-
252-
253-@Callable(i)
254-func BlackListAddress (UserAddress) = {
255- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress))
256- let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") {
234+func Issue_Vouchers (Voucher_Amount,User_ID,User_Address) = {
235+ let read_TotalVouchersBalance = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
236+ let update_TotalVouchersBalance = (read_TotalVouchersBalance - Voucher_Amount)
237+ let VouchersIssuedToUser = match getInteger(this, ("Total_Vouchers_Issued_To_" + User_Address)) {
257238 case a: Int =>
258239 a
259240 case _ =>
260241 0
261242 }
262- let TotalBlackListAddress = (PreviousBlackListAddress + 1)
263- if ((product_launch_timestamp > lastBlock.timestamp))
264- then throw((product_launch_error + toString(product_launch_timestamp)))
265- else if ((i.caller != whitelist_address))
266- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
267- else if ((ifBlacklisted == "Yes"))
268- then throw("Address is already available in Blacklist.")
269- else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)]
270- }
271-
272-
273-
274-@Callable(i)
275-func DeleteBlackListAddress (UserAddress) = {
276- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress))
277- let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") {
243+ let TotalVouchersIssuedToUser = (VouchersIssuedToUser + 1)
244+ let VouchersAmountIssuedToUser = match getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + User_Address)) {
278245 case a: Int =>
279246 a
280247 case _ =>
281248 0
282249 }
283- let TotalBlackListAddress = (PreviousBlackListAddress - 1)
284- if ((product_launch_timestamp > lastBlock.timestamp))
285- then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp)))
286- else if ((i.caller != whitelist_address))
287- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
288- else if ((ifBlacklisted == "Yes"))
289- then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)]
290- else throw("Address is not available in Blacklist.")
250+ let TotalVouchersAmountIssuedToUser = (VouchersAmountIssuedToUser + Voucher_Amount)
251+ let PreviousVouchersBalanceofUser = match getInteger(this, (User_Address + "_Voucher_Balance")) {
252+ case a: Int =>
253+ a
254+ case _ =>
255+ 0
256+ }
257+ let TotalVouchersBalanceofUser = (PreviousVouchersBalanceofUser + Voucher_Amount)
258+ if ((i.caller != whitelist_address))
259+ then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
260+ else if ((0 >= Voucher_Amount))
261+ then throw("Voucher Balance can't go in negative State. Reduce the Voucher Amount.")
262+ else if ((0 >= update_TotalVouchersBalance))
263+ then throw("Updated Voucher Balance can't go in negative State. Reduce the Voucher Amount.")
264+ else if ((Voucher_Amount > maximum_voucher_size))
265+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(maximum_voucher_size)) + "/10^8 Waves."))
266+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + User_Address), TotalVouchersIssuedToUser), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + User_Address), TotalVouchersAmountIssuedToUser), IntegerEntry((User_Address + "_Voucher_Balance"), TotalVouchersBalanceofUser), IntegerEntry("Available_Vouchers_Balance", update_TotalVouchersBalance)]
291267 }
292268
293269
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let pool_liquidity_address = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh"
55
66 let Dapp_Address_pub_key = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt'
77
88 let product_launch_timestamp = 1695427860000
99
1010 let Currency_ID = "WAVES"
1111
1212 let product_launch_error = "Product Launch Timestamp is set at "
1313
1414 let no_payment_error = "No payment attached, Please Attach Token in payment[1]."
1515
1616 let closed_oracle_eror = "Oracle is closed. Wait Until Oracle is Turned On."
1717
1818 let whitelist_address = addressFromPublicKey(Dapp_Address_pub_key)
1919
2020 let network_fee = 900000
2121
2222 let minimum_order_size = 10000000
2323
2424 let maximum_order_size = 10000000000
25+
26+let maximum_voucher_size = 100000000
2527
2628 @Callable(i)
2729 func placeoptionCall (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = {
2830 let calleraddress = toBase58String(i.caller.bytes)
2931 let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address))
3032 let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
3133 let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address))
3234 let update_user_funds = ((read_user_funds - Amount) - network_fee)
3335 let read_start_order_permit_timestamp = Start_Order_Timestamp
3436 let read_end_order_permit_timestamp = End_Order_Timestamp
3537 let read_OptionCounterID = OptionCounterID
3638 let OpionExpireCounter = 1
3739 let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter)
3840 let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") {
3941 case a: Int =>
4042 a
4143 case _ =>
4244 0
4345 }
4446 let TotalOptionOrders = (PreviousOptionOrders + 1)
4547 let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) {
4648 case a: Int =>
4749 a
4850 case _ =>
4951 0
5052 }
5153 let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount)
5254 let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) {
5355 case a: Int =>
5456 a
5557 case _ =>
5658 0
5759 }
5860 let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1)
5961 let PreviousCall = match getInteger(this, "Total_Calls") {
6062 case a: Int =>
6163 a
6264 case _ =>
6365 0
6466 }
6567 let TotalCall = (PreviousCall + 1)
6668 let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) {
6769 case a: Int =>
6870 a
6971 case _ =>
7072 0
7173 }
7274 let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1)
7375 let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) {
7476 case a: Int =>
7577 a
7678 case _ =>
7779 0
7880 }
7981 let TotalUserCall = (PreviousUserCall + 1)
8082 let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) {
8183 case a: Int =>
8284 a
8385 case _ =>
8486 0
8587 }
8688 let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1)
8789 let Funds_at_risk = fraction(read_TPL, 5, 100)
8890 if ((i.caller != whitelist_address))
8991 then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
9092 else if ((product_launch_timestamp > lastBlock.timestamp))
9193 then throw((product_launch_error + toString(product_launch_timestamp)))
9294 else if ((Oracle_Status == "CLOSE"))
9395 then throw(closed_oracle_eror)
9496 else if ((ifBlacklisted == "Yes"))
9597 then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it."))
9698 else if ((lastBlock.timestamp >= read_end_order_permit_timestamp))
9799 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
98100 else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk))
99101 then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Funds_at_risk)) + ", Pending House Risk is ") + toString((Funds_at_risk - PreviousFundsAddedInSpecificOptionOrder))) + ". Join in next Cycle."))
100102 else if ((minimum_order_size > Amount))
101103 then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES."))
102104 else if ((Amount > maximum_order_size))
103105 then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES."))
104106 else if ((0 > update_user_funds))
105107 then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds)))
106108 else if ((size(toString(Start_Order_Timestamp)) != 13))
107109 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
108110 else if ((size(toString(End_Order_Timestamp)) != 13))
109111 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
110112 else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Call_" + User_Address) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + User_Address) + "_") + toString(TotalUserCall)), Amount), StringEntry(((("Call_Start_End_" + User_Address) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", read_TPL), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Calls", TotalCall), IntegerEntry(("Total_Calls_" + toString(read_OptionCounterID)), TotalCallinSpecificCounter), IntegerEntry((User_Address + "_Total_Calls"), TotalUserCall), IntegerEntry(((User_Address + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter), ScriptTransfer(whitelist_address, network_fee, unit), ScriptTransfer(addressFromStringValue(pool_liquidity_address), Amount, unit)]
111113 }
112114
113115
114116
115117 @Callable(i)
116118 func placeoptionPut (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = {
117119 let calleraddress = toBase58String(i.caller.bytes)
118120 let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address))
119121 let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
120122 let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address))
121123 let update_user_funds = ((read_user_funds - Amount) - network_fee)
122124 let read_start_order_permit_timestamp = Start_Order_Timestamp
123125 let read_end_order_permit_timestamp = End_Order_Timestamp
124126 let read_OptionCounterID = OptionCounterID
125127 let OpionExpireCounter = 1
126128 let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter)
127129 let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") {
128130 case a: Int =>
129131 a
130132 case _ =>
131133 0
132134 }
133135 let TotalOptionOrders = (PreviousOptionOrders + 1)
134136 let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) {
135137 case a: Int =>
136138 a
137139 case _ =>
138140 0
139141 }
140142 let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount)
141143 let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) {
142144 case a: Int =>
143145 a
144146 case _ =>
145147 0
146148 }
147149 let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1)
148150 let PreviousPut = match getInteger(this, "Total_Puts") {
149151 case a: Int =>
150152 a
151153 case _ =>
152154 0
153155 }
154156 let TotalPut = (PreviousPut + 1)
155157 let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) {
156158 case a: Int =>
157159 a
158160 case _ =>
159161 0
160162 }
161163 let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1)
162164 let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) {
163165 case a: Int =>
164166 a
165167 case _ =>
166168 0
167169 }
168170 let TotalUserPut = (PreviousUserPut + 1)
169171 let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) {
170172 case a: Int =>
171173 a
172174 case _ =>
173175 0
174176 }
175177 let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1)
176178 let Funds_at_risk = fraction(read_TPL, 5, 100)
177179 if ((i.caller != whitelist_address))
178180 then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
179181 else if ((product_launch_timestamp > lastBlock.timestamp))
180182 then throw((product_launch_error + toString(product_launch_timestamp)))
181183 else if ((Oracle_Status == "CLOSE"))
182184 then throw(closed_oracle_eror)
183185 else if ((ifBlacklisted == "Yes"))
184186 then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it."))
185187 else if ((lastBlock.timestamp >= read_end_order_permit_timestamp))
186188 then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
187189 else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk))
188190 then throw((((("No more orders accepted, Option House Risk Size is only limited to " + toString(Funds_at_risk)) + ", Pending House Risk is ") + toString((Funds_at_risk - PreviousFundsAddedInSpecificOptionOrder))) + ". Join in next Cycle."))
189191 else if ((minimum_order_size > Amount))
190192 then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES."))
191193 else if ((Amount > maximum_order_size))
192194 then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES."))
193195 else if ((0 > update_user_funds))
194196 then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds)))
195197 else if ((size(toString(Start_Order_Timestamp)) != 13))
196198 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
197199 else if ((size(toString(End_Order_Timestamp)) != 13))
198200 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
199201 else [StringEntry(("User_ID_" + User_Address), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), IntegerEntry("Network_Fee_To_Place_Order", network_fee), StringEntry(((("Put_" + User_Address) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + User_Address) + "_") + toString(TotalUserPut)), Amount), StringEntry(((("Put_Start_End_" + User_Address) + "_") + toString(TotalUserPut)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Option_Orders", TotalOptionOrders), IntegerEntry(("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID)), TotalFundsAddedInSpecificOptionOrder), IntegerEntry("Total_Pool_Liquidity", read_TPL), IntegerEntry(("Funds_At_Risk_" + toString(read_OptionCounterID)), Funds_at_risk), IntegerEntry("Call_Limits", Call_Limits), IntegerEntry("Put_Limits", Put_Limits), IntegerEntry(("Total_Option_Orders_" + toString(read_OptionCounterID)), TotalOptionOrdersinSpecificCounter), IntegerEntry("Total_Puts", TotalPut), IntegerEntry(("Total_Puts_" + toString(read_OptionCounterID)), TotalPutinSpecificCounter), IntegerEntry((User_Address + "_Total_Puts"), TotalUserPut), IntegerEntry(((User_Address + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter), ScriptTransfer(whitelist_address, network_fee, unit), ScriptTransfer(addressFromStringValue(pool_liquidity_address), Amount, unit)]
200202 }
201203
202204
203205
204206 @Callable(i)
205-func DepositUserFunds () = {
207+func Fill_Vouchers_Liquidity () = {
206208 let calleraddress = toBase58String(i.caller.bytes)
207209 let pmt = if ((size(i.payments) == 1))
208210 then i.payments[0]
209211 else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
210- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress))
211- let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) {
212+ let PreviousVouchersBalance = match getInteger(this, "Available_Vouchers_Balance") {
212213 case a: Int =>
213214 a
214215 case _ =>
215216 0
216217 }
217- let TotalUserDeposit = (PreviousUserDeposit + pmt.amount)
218- let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") {
218+ let TotalVouchersBalance = (PreviousVouchersBalance + pmt.amount)
219+ let PreviousVouchersCounterID = match getInteger(this, "Vouchers_Counter_ID") {
219220 case a: Int =>
220221 a
221222 case _ =>
222223 0
223224 }
224- let TotalDepositCounterID = (PreviousDepositCounterID + 1)
225- if ((product_launch_timestamp > lastBlock.timestamp))
226- then throw((product_launch_error + toString(product_launch_timestamp)))
227- else if ((ifBlacklisted == "Yes"))
228- then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it."))
229- else if (isDefined(pmt.assetId))
230- then throw("Only WAVES is allowed to deposit at the moment")
231- else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)]
225+ let TotalVouchersCounterID = (PreviousVouchersCounterID + 1)
226+ if (isDefined(pmt.assetId))
227+ then throw("Only WAVES is allowed to deposit at the moment")
228+ else [IntegerEntry("Available_Vouchers_Balance", TotalVouchersBalance), IntegerEntry((toString(TotalVouchersCounterID) + "_Voucher_Amount"), pmt.amount), IntegerEntry("Vouchers_Counter_ID", TotalVouchersCounterID)]
232229 }
233230
234231
235232
236233 @Callable(i)
237-func WithdrawUserFunds (User_Address,Amount) = {
238- let calleraddress = toBase58String(i.caller.bytes)
239- let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address))
240- let update_user_funds = ((readuserbalance - Amount) - network_fee)
241- let minimim_withdraw_amount = 10000000
242- if ((i.caller != whitelist_address))
243- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
244- else if ((minimim_withdraw_amount > Amount))
245- then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES."))
246- else if ((0 > update_user_funds))
247- then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES."))
248- else [IntegerEntry("Previous_Balance", readuserbalance), IntegerEntry("Network_Fee_To_Withdraw", network_fee), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), ScriptTransfer(whitelist_address, network_fee, unit), ScriptTransfer(addressFromStringValue(User_Address), Amount, unit)]
249- }
250-
251-
252-
253-@Callable(i)
254-func BlackListAddress (UserAddress) = {
255- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress))
256- let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") {
234+func Issue_Vouchers (Voucher_Amount,User_ID,User_Address) = {
235+ let read_TotalVouchersBalance = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
236+ let update_TotalVouchersBalance = (read_TotalVouchersBalance - Voucher_Amount)
237+ let VouchersIssuedToUser = match getInteger(this, ("Total_Vouchers_Issued_To_" + User_Address)) {
257238 case a: Int =>
258239 a
259240 case _ =>
260241 0
261242 }
262- let TotalBlackListAddress = (PreviousBlackListAddress + 1)
263- if ((product_launch_timestamp > lastBlock.timestamp))
264- then throw((product_launch_error + toString(product_launch_timestamp)))
265- else if ((i.caller != whitelist_address))
266- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
267- else if ((ifBlacklisted == "Yes"))
268- then throw("Address is already available in Blacklist.")
269- else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)]
270- }
271-
272-
273-
274-@Callable(i)
275-func DeleteBlackListAddress (UserAddress) = {
276- let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress))
277- let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") {
243+ let TotalVouchersIssuedToUser = (VouchersIssuedToUser + 1)
244+ let VouchersAmountIssuedToUser = match getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + User_Address)) {
278245 case a: Int =>
279246 a
280247 case _ =>
281248 0
282249 }
283- let TotalBlackListAddress = (PreviousBlackListAddress - 1)
284- if ((product_launch_timestamp > lastBlock.timestamp))
285- then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp)))
286- else if ((i.caller != whitelist_address))
287- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
288- else if ((ifBlacklisted == "Yes"))
289- then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)]
290- else throw("Address is not available in Blacklist.")
250+ let TotalVouchersAmountIssuedToUser = (VouchersAmountIssuedToUser + Voucher_Amount)
251+ let PreviousVouchersBalanceofUser = match getInteger(this, (User_Address + "_Voucher_Balance")) {
252+ case a: Int =>
253+ a
254+ case _ =>
255+ 0
256+ }
257+ let TotalVouchersBalanceofUser = (PreviousVouchersBalanceofUser + Voucher_Amount)
258+ if ((i.caller != whitelist_address))
259+ then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
260+ else if ((0 >= Voucher_Amount))
261+ then throw("Voucher Balance can't go in negative State. Reduce the Voucher Amount.")
262+ else if ((0 >= update_TotalVouchersBalance))
263+ then throw("Updated Voucher Balance can't go in negative State. Reduce the Voucher Amount.")
264+ else if ((Voucher_Amount > maximum_voucher_size))
265+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(maximum_voucher_size)) + "/10^8 Waves."))
266+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + User_Address), TotalVouchersIssuedToUser), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + User_Address), TotalVouchersAmountIssuedToUser), IntegerEntry((User_Address + "_Voucher_Balance"), TotalVouchersBalanceofUser), IntegerEntry("Available_Vouchers_Balance", update_TotalVouchersBalance)]
291267 }
292268
293269
294270 @Verifier(tx)
295271 func verify () = match tx {
296272 case t: Order|ExchangeTransaction|MassTransferTransaction|TransferTransaction =>
297273 false
298274 case _ =>
299275 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
300276 }
301277

github/deemru/w8io/026f985 
50.63 ms