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/k7IFRCWjnzhpzAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABir9gFiAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuIF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ZvdWNoZXJzX0JhbGFuY2UFAAAAG3VwZGF0ZV9Ub3RhbFZvdWNoZXJzQmFsYW5jZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5IUv8Ig==", "height": 2860814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DPjxpJMPMHjogUCQ7CzuPXyPA8tvA6TJVJTJfneuJ8UN Next: 4h1dcPSVFRuPq7ga7AsKhhCXbxzjvAuFPd9JPGiNDnw6 Diff:
Old | New | Differences | |
---|---|---|---|
22 | 22 | let minimum_order_size = 10000000 | |
23 | 23 | ||
24 | 24 | let maximum_order_size = 10000000000 | |
25 | + | ||
26 | + | let maximum_voucher_size = 100000000 | |
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | 29 | func placeoptionCall (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
202 | 204 | ||
203 | 205 | ||
204 | 206 | @Callable(i) | |
205 | - | func | |
207 | + | func Fill_Vouchers_Liquidity () = { | |
206 | 208 | let calleraddress = toBase58String(i.caller.bytes) | |
207 | 209 | let pmt = if ((size(i.payments) == 1)) | |
208 | 210 | then i.payments[0] | |
209 | 211 | 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") { | |
212 | 213 | case a: Int => | |
213 | 214 | a | |
214 | 215 | case _ => | |
215 | 216 | 0 | |
216 | 217 | } | |
217 | - | let | |
218 | - | let | |
218 | + | let TotalVouchersBalance = (PreviousVouchersBalance + pmt.amount) | |
219 | + | let PreviousVouchersCounterID = match getInteger(this, "Vouchers_Counter_ID") { | |
219 | 220 | case a: Int => | |
220 | 221 | a | |
221 | 222 | case _ => | |
222 | 223 | 0 | |
223 | 224 | } | |
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)] | |
232 | 229 | } | |
233 | 230 | ||
234 | 231 | ||
235 | 232 | ||
236 | 233 | @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)) { | |
257 | 238 | case a: Int => | |
258 | 239 | a | |
259 | 240 | case _ => | |
260 | 241 | 0 | |
261 | 242 | } | |
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)) { | |
278 | 245 | case a: Int => | |
279 | 246 | a | |
280 | 247 | case _ => | |
281 | 248 | 0 | |
282 | 249 | } | |
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)] | |
291 | 267 | } | |
292 | 268 | ||
293 | 269 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let pool_liquidity_address = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh" | |
5 | 5 | ||
6 | 6 | let Dapp_Address_pub_key = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt' | |
7 | 7 | ||
8 | 8 | let product_launch_timestamp = 1695427860000 | |
9 | 9 | ||
10 | 10 | let Currency_ID = "WAVES" | |
11 | 11 | ||
12 | 12 | let product_launch_error = "Product Launch Timestamp is set at " | |
13 | 13 | ||
14 | 14 | let no_payment_error = "No payment attached, Please Attach Token in payment[1]." | |
15 | 15 | ||
16 | 16 | let closed_oracle_eror = "Oracle is closed. Wait Until Oracle is Turned On." | |
17 | 17 | ||
18 | 18 | let whitelist_address = addressFromPublicKey(Dapp_Address_pub_key) | |
19 | 19 | ||
20 | 20 | let network_fee = 900000 | |
21 | 21 | ||
22 | 22 | let minimum_order_size = 10000000 | |
23 | 23 | ||
24 | 24 | let maximum_order_size = 10000000000 | |
25 | + | ||
26 | + | let maximum_voucher_size = 100000000 | |
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | 29 | func placeoptionCall (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
28 | 30 | let calleraddress = toBase58String(i.caller.bytes) | |
29 | 31 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
30 | 32 | let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
31 | 33 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
32 | 34 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
33 | 35 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
34 | 36 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
35 | 37 | let read_OptionCounterID = OptionCounterID | |
36 | 38 | let OpionExpireCounter = 1 | |
37 | 39 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
38 | 40 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
39 | 41 | case a: Int => | |
40 | 42 | a | |
41 | 43 | case _ => | |
42 | 44 | 0 | |
43 | 45 | } | |
44 | 46 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
45 | 47 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
46 | 48 | case a: Int => | |
47 | 49 | a | |
48 | 50 | case _ => | |
49 | 51 | 0 | |
50 | 52 | } | |
51 | 53 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
52 | 54 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
53 | 55 | case a: Int => | |
54 | 56 | a | |
55 | 57 | case _ => | |
56 | 58 | 0 | |
57 | 59 | } | |
58 | 60 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
59 | 61 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
60 | 62 | case a: Int => | |
61 | 63 | a | |
62 | 64 | case _ => | |
63 | 65 | 0 | |
64 | 66 | } | |
65 | 67 | let TotalCall = (PreviousCall + 1) | |
66 | 68 | let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) { | |
67 | 69 | case a: Int => | |
68 | 70 | a | |
69 | 71 | case _ => | |
70 | 72 | 0 | |
71 | 73 | } | |
72 | 74 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
73 | 75 | let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) { | |
74 | 76 | case a: Int => | |
75 | 77 | a | |
76 | 78 | case _ => | |
77 | 79 | 0 | |
78 | 80 | } | |
79 | 81 | let TotalUserCall = (PreviousUserCall + 1) | |
80 | 82 | let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
81 | 83 | case a: Int => | |
82 | 84 | a | |
83 | 85 | case _ => | |
84 | 86 | 0 | |
85 | 87 | } | |
86 | 88 | let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1) | |
87 | 89 | let Funds_at_risk = fraction(read_TPL, 5, 100) | |
88 | 90 | if ((i.caller != whitelist_address)) | |
89 | 91 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
90 | 92 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
91 | 93 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
92 | 94 | else if ((Oracle_Status == "CLOSE")) | |
93 | 95 | then throw(closed_oracle_eror) | |
94 | 96 | else if ((ifBlacklisted == "Yes")) | |
95 | 97 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
96 | 98 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
97 | 99 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
98 | 100 | else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk)) | |
99 | 101 | 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.")) | |
100 | 102 | else if ((minimum_order_size > Amount)) | |
101 | 103 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
102 | 104 | else if ((Amount > maximum_order_size)) | |
103 | 105 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
104 | 106 | else if ((0 > update_user_funds)) | |
105 | 107 | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
106 | 108 | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
107 | 109 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
108 | 110 | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
109 | 111 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
110 | 112 | 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)] | |
111 | 113 | } | |
112 | 114 | ||
113 | 115 | ||
114 | 116 | ||
115 | 117 | @Callable(i) | |
116 | 118 | func placeoptionPut (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
117 | 119 | let calleraddress = toBase58String(i.caller.bytes) | |
118 | 120 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
119 | 121 | let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
120 | 122 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
121 | 123 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
122 | 124 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
123 | 125 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
124 | 126 | let read_OptionCounterID = OptionCounterID | |
125 | 127 | let OpionExpireCounter = 1 | |
126 | 128 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
127 | 129 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
128 | 130 | case a: Int => | |
129 | 131 | a | |
130 | 132 | case _ => | |
131 | 133 | 0 | |
132 | 134 | } | |
133 | 135 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
134 | 136 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
135 | 137 | case a: Int => | |
136 | 138 | a | |
137 | 139 | case _ => | |
138 | 140 | 0 | |
139 | 141 | } | |
140 | 142 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
141 | 143 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
142 | 144 | case a: Int => | |
143 | 145 | a | |
144 | 146 | case _ => | |
145 | 147 | 0 | |
146 | 148 | } | |
147 | 149 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
148 | 150 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
149 | 151 | case a: Int => | |
150 | 152 | a | |
151 | 153 | case _ => | |
152 | 154 | 0 | |
153 | 155 | } | |
154 | 156 | let TotalPut = (PreviousPut + 1) | |
155 | 157 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
156 | 158 | case a: Int => | |
157 | 159 | a | |
158 | 160 | case _ => | |
159 | 161 | 0 | |
160 | 162 | } | |
161 | 163 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
162 | 164 | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
163 | 165 | case a: Int => | |
164 | 166 | a | |
165 | 167 | case _ => | |
166 | 168 | 0 | |
167 | 169 | } | |
168 | 170 | let TotalUserPut = (PreviousUserPut + 1) | |
169 | 171 | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
170 | 172 | case a: Int => | |
171 | 173 | a | |
172 | 174 | case _ => | |
173 | 175 | 0 | |
174 | 176 | } | |
175 | 177 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
176 | 178 | let Funds_at_risk = fraction(read_TPL, 5, 100) | |
177 | 179 | if ((i.caller != whitelist_address)) | |
178 | 180 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
179 | 181 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
180 | 182 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
181 | 183 | else if ((Oracle_Status == "CLOSE")) | |
182 | 184 | then throw(closed_oracle_eror) | |
183 | 185 | else if ((ifBlacklisted == "Yes")) | |
184 | 186 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
185 | 187 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
186 | 188 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
187 | 189 | else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk)) | |
188 | 190 | 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.")) | |
189 | 191 | else if ((minimum_order_size > Amount)) | |
190 | 192 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
191 | 193 | else if ((Amount > maximum_order_size)) | |
192 | 194 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
193 | 195 | else if ((0 > update_user_funds)) | |
194 | 196 | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
195 | 197 | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
196 | 198 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
197 | 199 | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
198 | 200 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
199 | 201 | 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)] | |
200 | 202 | } | |
201 | 203 | ||
202 | 204 | ||
203 | 205 | ||
204 | 206 | @Callable(i) | |
205 | - | func | |
207 | + | func Fill_Vouchers_Liquidity () = { | |
206 | 208 | let calleraddress = toBase58String(i.caller.bytes) | |
207 | 209 | let pmt = if ((size(i.payments) == 1)) | |
208 | 210 | then i.payments[0] | |
209 | 211 | 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") { | |
212 | 213 | case a: Int => | |
213 | 214 | a | |
214 | 215 | case _ => | |
215 | 216 | 0 | |
216 | 217 | } | |
217 | - | let | |
218 | - | let | |
218 | + | let TotalVouchersBalance = (PreviousVouchersBalance + pmt.amount) | |
219 | + | let PreviousVouchersCounterID = match getInteger(this, "Vouchers_Counter_ID") { | |
219 | 220 | case a: Int => | |
220 | 221 | a | |
221 | 222 | case _ => | |
222 | 223 | 0 | |
223 | 224 | } | |
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)] | |
232 | 229 | } | |
233 | 230 | ||
234 | 231 | ||
235 | 232 | ||
236 | 233 | @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)) { | |
257 | 238 | case a: Int => | |
258 | 239 | a | |
259 | 240 | case _ => | |
260 | 241 | 0 | |
261 | 242 | } | |
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)) { | |
278 | 245 | case a: Int => | |
279 | 246 | a | |
280 | 247 | case _ => | |
281 | 248 | 0 | |
282 | 249 | } | |
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)] | |
291 | 267 | } | |
292 | 268 | ||
293 | 269 | ||
294 | 270 | @Verifier(tx) | |
295 | 271 | func verify () = match tx { | |
296 | 272 | case t: Order|ExchangeTransaction|MassTransferTransaction|TransferTransaction => | |
297 | 273 | false | |
298 | 274 | case _ => | |
299 | 275 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
300 | 276 | } | |
301 | 277 |
github/deemru/w8io/026f985 50.63 ms ◑