tx · 7ryVcYC2oz9qfQvZJVBJ1ZnzB4J8X7TFXKhHSYahtJ3L 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn: -0.02000000 Waves 2023.06.14 14:56 [2622297] smart account 3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn > SELF 0.00000000 Waves
{ "type": 13, "id": "7ryVcYC2oz9qfQvZJVBJ1ZnzB4J8X7TFXKhHSYahtJ3L", "fee": 2000000, "feeAssetId": null, "timestamp": 1686743890896, "version": 2, "chainId": 84, "sender": "3N4K6JFDDdcd1qrk2HszwHQrMqznvhYBgjn", "senderPublicKey": "9vxW4kEGgMt47hfP42SnhhMRhEVqbedX6N57xB8XKYcV", "proofs": [ "MdB5aCbj8S2EVXA1yzYdLB5MWXdF9Ny6RAw3eaTketQYELDX57FrF4L4cKBhfgyW7Pq2y79uMTNr7R8efubhYNC" ], "script": "base64:AAIFAAAAAAAAADUIAhINCgsBAQgIAQEBAQgBARINCgsBAQgIAQEBAQgBARIAEgMKAQgSAwoBCBIHCgUICAgICAAAAAkAAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AQAAACCf+iKAv1/lpgB95ThZzfZJj66NSuvHvCZzkF0ZxyzdHAAAAAAYcHJvZHVjdF9sYXVuY2hfdGltZXN0YW1wAAAAAYYKRewAAAAAAAtDdXJyZW5jeV9JRAIAAAAFV0FWRVMAAAAAFHByb2R1Y3RfbGF1bmNoX2Vycm9yAgAAACNQcm9kdWN0IExhdW5jaCBUaW1lc3RhbXAgaXMgc2V0IGF0IAAAAAAQbm9fcGF5bWVudF9lcnJvcgIAAAA3Tm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBUb2tlbiBpbiBwYXltZW50WzFdLgAAAAASY2xvc2VkX29yYWNsZV9lcm9yAgAAADFPcmFjbGUgaXMgY2xvc2VkLiBXYWl0IFVudGlsIE9yYWNsZSBpcyBUdXJuZWQgT24uAAAAABF3aGl0ZWxpc3RfYWRkcmVzcwkB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AAAABQAAAAJFMQAAAAJFMgAAAAJFMwAAAAJFNAAAAAJFNQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAJFMQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAJFMgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAJFMwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAJFNAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAJFNQUAAAADbmlsAAAAAAyV4s8=", "height": 2622297, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 81KxkaW8SaWYB5tjG9SRLXYqYxsX9N9ETpj5hEebaqv2 Next: GaHv2467ftQRywbBcJ1QTQtBC9NGM7Sr2SBzQ2f4UJ8q Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let Dapp_Address_pub_key = base58'BmV3aPhqkjNgu3zD3rx1oaWTnPqgB8uRBQuvYjpYWtTu' | |
5 | 5 | ||
6 | 6 | let product_launch_timestamp = 1675209600000 | |
7 | + | ||
8 | + | let Currency_ID = "WAVES" | |
7 | 9 | ||
8 | 10 | let product_launch_error = "Product Launch Timestamp is set at " | |
9 | 11 | ||
18 | 20 | let maximum_order_size = 10000000000 | |
19 | 21 | ||
20 | 22 | @Callable(i) | |
21 | - | func placeoptionCall (Total_Pool_Liquidity,OptionCounterID,User_ID,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
23 | + | func placeoptionCall (Total_Pool_Liquidity,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
22 | 24 | let calleraddress = toBase58String(i.caller.bytes) | |
23 | 25 | let pmt = if ((size(i.payments) == 1)) | |
24 | 26 | then i.payments[0] | |
25 | 27 | else throw(no_payment_error) | |
26 | 28 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
29 | + | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
30 | + | let update_user_funds = (read_user_funds - pmt.amount) | |
27 | 31 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
28 | 32 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
29 | 33 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
97 | 101 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
98 | 102 | else if ((pmt.amount > maximum_order_size)) | |
99 | 103 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
100 | - | else [StringEntry(("User_ID_" + calleraddress), User_ID), StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + calleraddress) + "_") + toString(TotalUserCall)), pmt.amount), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Calls"), TotalUserCall), IntegerEntry(((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
104 | + | else if ((0 > update_user_funds)) | |
105 | + | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
106 | + | else [StringEntry(("User_ID_" + calleraddress), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + calleraddress) + "_") + toString(TotalUserCall)), pmt.amount), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Calls"), TotalUserCall), IntegerEntry(((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
101 | 107 | } | |
102 | 108 | ||
103 | 109 | ||
104 | 110 | ||
105 | 111 | @Callable(i) | |
106 | - | func placeoptionPut (Total_Pool_Liquidity,OptionCounterID,User_ID,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
112 | + | func placeoptionPut (Total_Pool_Liquidity,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
107 | 113 | let calleraddress = toBase58String(i.caller.bytes) | |
108 | 114 | let pmt = if ((size(i.payments) == 1)) | |
109 | 115 | then i.payments[0] | |
110 | 116 | else throw(no_payment_error) | |
111 | 117 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
118 | + | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
119 | + | let update_user_funds = (read_user_funds - pmt.amount) | |
112 | 120 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
113 | 121 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
114 | 122 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
182 | 190 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
183 | 191 | else if ((pmt.amount > maximum_order_size)) | |
184 | 192 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | - | else [StringEntry(("User_ID_" + calleraddress), User_ID), StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + calleraddress) + "_") + toString(TotalUserPut)), pmt.amount), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Puts"), TotalUserPut), IntegerEntry(((calleraddress + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
193 | + | else if ((0 > update_user_funds)) | |
194 | + | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
195 | + | else [StringEntry(("User_ID_" + calleraddress), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + calleraddress) + "_") + toString(TotalUserPut)), pmt.amount), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Puts"), TotalUserPut), IntegerEntry(((calleraddress + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
186 | 196 | } | |
187 | 197 | ||
188 | 198 | ||
190 | 200 | @Callable(i) | |
191 | 201 | func DepositUserFunds () = { | |
192 | 202 | let calleraddress = toBase58String(i.caller.bytes) | |
193 | - | let Currency_ID = "WAVES" | |
194 | 203 | let pmt = if ((size(i.payments) == 1)) | |
195 | 204 | then i.payments[0] | |
196 | 205 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Dapp_Address_pub_key = base58'BmV3aPhqkjNgu3zD3rx1oaWTnPqgB8uRBQuvYjpYWtTu' | |
5 | 5 | ||
6 | 6 | let product_launch_timestamp = 1675209600000 | |
7 | + | ||
8 | + | let Currency_ID = "WAVES" | |
7 | 9 | ||
8 | 10 | let product_launch_error = "Product Launch Timestamp is set at " | |
9 | 11 | ||
10 | 12 | let no_payment_error = "No payment attached, Please Attach Token in payment[1]." | |
11 | 13 | ||
12 | 14 | let closed_oracle_eror = "Oracle is closed. Wait Until Oracle is Turned On." | |
13 | 15 | ||
14 | 16 | let whitelist_address = addressFromPublicKey(Dapp_Address_pub_key) | |
15 | 17 | ||
16 | 18 | let minimum_order_size = 10000000 | |
17 | 19 | ||
18 | 20 | let maximum_order_size = 10000000000 | |
19 | 21 | ||
20 | 22 | @Callable(i) | |
21 | - | func placeoptionCall (Total_Pool_Liquidity,OptionCounterID,User_ID,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
23 | + | func placeoptionCall (Total_Pool_Liquidity,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
22 | 24 | let calleraddress = toBase58String(i.caller.bytes) | |
23 | 25 | let pmt = if ((size(i.payments) == 1)) | |
24 | 26 | then i.payments[0] | |
25 | 27 | else throw(no_payment_error) | |
26 | 28 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
29 | + | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
30 | + | let update_user_funds = (read_user_funds - pmt.amount) | |
27 | 31 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
28 | 32 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
29 | 33 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
30 | 34 | let new_total_pool_liquidity = (read_total_pool_liquidity + pmt.amount) | |
31 | 35 | let read_OptionCounterID = OptionCounterID | |
32 | 36 | let OpionExpireCounter = 1 | |
33 | 37 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
34 | 38 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
35 | 39 | case a: Int => | |
36 | 40 | a | |
37 | 41 | case _ => | |
38 | 42 | 0 | |
39 | 43 | } | |
40 | 44 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
41 | 45 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
42 | 46 | case a: Int => | |
43 | 47 | a | |
44 | 48 | case _ => | |
45 | 49 | 0 | |
46 | 50 | } | |
47 | 51 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + pmt.amount) | |
48 | 52 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
49 | 53 | case a: Int => | |
50 | 54 | a | |
51 | 55 | case _ => | |
52 | 56 | 0 | |
53 | 57 | } | |
54 | 58 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
55 | 59 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
56 | 60 | case a: Int => | |
57 | 61 | a | |
58 | 62 | case _ => | |
59 | 63 | 0 | |
60 | 64 | } | |
61 | 65 | let TotalCall = (PreviousCall + 1) | |
62 | 66 | let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) { | |
63 | 67 | case a: Int => | |
64 | 68 | a | |
65 | 69 | case _ => | |
66 | 70 | 0 | |
67 | 71 | } | |
68 | 72 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
69 | 73 | let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) { | |
70 | 74 | case a: Int => | |
71 | 75 | a | |
72 | 76 | case _ => | |
73 | 77 | 0 | |
74 | 78 | } | |
75 | 79 | let TotalUserCall = (PreviousUserCall + 1) | |
76 | 80 | let PreviousUserCallinSpecificCounter = match getInteger(this, ((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
77 | 81 | case a: Int => | |
78 | 82 | a | |
79 | 83 | case _ => | |
80 | 84 | 0 | |
81 | 85 | } | |
82 | 86 | let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1) | |
83 | 87 | let Funds_at_risk = House_risk | |
84 | 88 | if ((i.caller != whitelist_address)) | |
85 | 89 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
86 | 90 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
87 | 91 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
88 | 92 | else if ((Oracle_Status == "CLOSE")) | |
89 | 93 | then throw(closed_oracle_eror) | |
90 | 94 | else if ((ifBlacklisted == "Yes")) | |
91 | 95 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
92 | 96 | else if (isDefined(pmt.assetId)) | |
93 | 97 | then throw("Only WAVES is allowed to deposit at the moment") | |
94 | 98 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
95 | 99 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
96 | 100 | else if ((minimum_order_size > pmt.amount)) | |
97 | 101 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
98 | 102 | else if ((pmt.amount > maximum_order_size)) | |
99 | 103 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
100 | - | else [StringEntry(("User_ID_" + calleraddress), User_ID), StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + calleraddress) + "_") + toString(TotalUserCall)), pmt.amount), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Calls"), TotalUserCall), IntegerEntry(((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
104 | + | else if ((0 > update_user_funds)) | |
105 | + | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
106 | + | else [StringEntry(("User_ID_" + calleraddress), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), toString(Price)), IntegerEntry(((("Call_Amount_" + calleraddress) + "_") + toString(TotalUserCall)), pmt.amount), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Calls"), TotalUserCall), IntegerEntry(((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID)), TotalUserCallinSpecificCounter)] | |
101 | 107 | } | |
102 | 108 | ||
103 | 109 | ||
104 | 110 | ||
105 | 111 | @Callable(i) | |
106 | - | func placeoptionPut (Total_Pool_Liquidity,OptionCounterID,User_ID,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
112 | + | func placeoptionPut (Total_Pool_Liquidity,OptionCounterID,User_ID,User_Address,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
107 | 113 | let calleraddress = toBase58String(i.caller.bytes) | |
108 | 114 | let pmt = if ((size(i.payments) == 1)) | |
109 | 115 | then i.payments[0] | |
110 | 116 | else throw(no_payment_error) | |
111 | 117 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
118 | + | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
119 | + | let update_user_funds = (read_user_funds - pmt.amount) | |
112 | 120 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
113 | 121 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
114 | 122 | let read_total_pool_liquidity = Total_Pool_Liquidity | |
115 | 123 | let new_total_pool_liquidity = (read_total_pool_liquidity + pmt.amount) | |
116 | 124 | let read_OptionCounterID = OptionCounterID | |
117 | 125 | let OpionExpireCounter = 1 | |
118 | 126 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
119 | 127 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
120 | 128 | case a: Int => | |
121 | 129 | a | |
122 | 130 | case _ => | |
123 | 131 | 0 | |
124 | 132 | } | |
125 | 133 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
126 | 134 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
127 | 135 | case a: Int => | |
128 | 136 | a | |
129 | 137 | case _ => | |
130 | 138 | 0 | |
131 | 139 | } | |
132 | 140 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + pmt.amount) | |
133 | 141 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
134 | 142 | case a: Int => | |
135 | 143 | a | |
136 | 144 | case _ => | |
137 | 145 | 0 | |
138 | 146 | } | |
139 | 147 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
140 | 148 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
141 | 149 | case a: Int => | |
142 | 150 | a | |
143 | 151 | case _ => | |
144 | 152 | 0 | |
145 | 153 | } | |
146 | 154 | let TotalPut = (PreviousPut + 1) | |
147 | 155 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
148 | 156 | case a: Int => | |
149 | 157 | a | |
150 | 158 | case _ => | |
151 | 159 | 0 | |
152 | 160 | } | |
153 | 161 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
154 | 162 | let PreviousUserPut = match getInteger(this, (calleraddress + "_Total_Puts")) { | |
155 | 163 | case a: Int => | |
156 | 164 | a | |
157 | 165 | case _ => | |
158 | 166 | 0 | |
159 | 167 | } | |
160 | 168 | let TotalUserPut = (PreviousUserPut + 1) | |
161 | 169 | let PreviousUserPutinSpecificCounter = match getInteger(this, ((calleraddress + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
162 | 170 | case a: Int => | |
163 | 171 | a | |
164 | 172 | case _ => | |
165 | 173 | 0 | |
166 | 174 | } | |
167 | 175 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
168 | 176 | let Funds_at_risk = House_risk | |
169 | 177 | if ((i.caller != whitelist_address)) | |
170 | 178 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
171 | 179 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
172 | 180 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
173 | 181 | else if ((Oracle_Status == "CLOSE")) | |
174 | 182 | then throw(closed_oracle_eror) | |
175 | 183 | else if ((ifBlacklisted == "Yes")) | |
176 | 184 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
177 | 185 | else if (isDefined(pmt.assetId)) | |
178 | 186 | then throw("Only WAVES is allowed to deposit at the moment") | |
179 | 187 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
180 | 188 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
181 | 189 | else if ((minimum_order_size > pmt.amount)) | |
182 | 190 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
183 | 191 | else if ((pmt.amount > maximum_order_size)) | |
184 | 192 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
185 | - | else [StringEntry(("User_ID_" + calleraddress), User_ID), StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + calleraddress) + "_") + toString(TotalUserPut)), pmt.amount), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Puts"), TotalUserPut), IntegerEntry(((calleraddress + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
193 | + | else if ((0 > update_user_funds)) | |
194 | + | then throw("Placed Order Amount is going negative. Please reduce the Order Size.") | |
195 | + | else [StringEntry(("User_ID_" + calleraddress), User_ID), IntegerEntry(((Currency_ID + "_") + User_Address), update_user_funds), StringEntry(((("Put_" + calleraddress) + "_") + toString(TotalUserPut)), toString(Price)), IntegerEntry(((("Put_Amount_" + calleraddress) + "_") + toString(TotalUserPut)), pmt.amount), StringEntry(((("Put_Start_End_" + calleraddress) + "_") + 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", new_total_pool_liquidity), 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((calleraddress + "_Total_Puts"), TotalUserPut), IntegerEntry(((calleraddress + "_Total_Puts_") + toString(read_OptionCounterID)), TotalUserPutinSpecificCounter)] | |
186 | 196 | } | |
187 | 197 | ||
188 | 198 | ||
189 | 199 | ||
190 | 200 | @Callable(i) | |
191 | 201 | func DepositUserFunds () = { | |
192 | 202 | let calleraddress = toBase58String(i.caller.bytes) | |
193 | - | let Currency_ID = "WAVES" | |
194 | 203 | let pmt = if ((size(i.payments) == 1)) | |
195 | 204 | then i.payments[0] | |
196 | 205 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
197 | 206 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
198 | 207 | let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) { | |
199 | 208 | case a: Int => | |
200 | 209 | a | |
201 | 210 | case _ => | |
202 | 211 | 0 | |
203 | 212 | } | |
204 | 213 | let TotalUserDeposit = (PreviousUserDeposit + pmt.amount) | |
205 | 214 | let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") { | |
206 | 215 | case a: Int => | |
207 | 216 | a | |
208 | 217 | case _ => | |
209 | 218 | 0 | |
210 | 219 | } | |
211 | 220 | let TotalDepositCounterID = (PreviousDepositCounterID + 1) | |
212 | 221 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
213 | 222 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
214 | 223 | else if ((ifBlacklisted == "Yes")) | |
215 | 224 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
216 | 225 | else if (isDefined(pmt.assetId)) | |
217 | 226 | then throw("Only WAVES is allowed to deposit at the moment") | |
218 | 227 | else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)] | |
219 | 228 | } | |
220 | 229 | ||
221 | 230 | ||
222 | 231 | ||
223 | 232 | @Callable(i) | |
224 | 233 | func BlackListAddress (UserAddress) = { | |
225 | 234 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
226 | 235 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
227 | 236 | case a: Int => | |
228 | 237 | a | |
229 | 238 | case _ => | |
230 | 239 | 0 | |
231 | 240 | } | |
232 | 241 | let TotalBlackListAddress = (PreviousBlackListAddress + 1) | |
233 | 242 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
234 | 243 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
235 | 244 | else if ((i.caller != whitelist_address)) | |
236 | 245 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
237 | 246 | else if ((ifBlacklisted == "Yes")) | |
238 | 247 | then throw("Address is already available in Blacklist.") | |
239 | 248 | else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
240 | 249 | } | |
241 | 250 | ||
242 | 251 | ||
243 | 252 | ||
244 | 253 | @Callable(i) | |
245 | 254 | func DeleteBlackListAddress (UserAddress) = { | |
246 | 255 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
247 | 256 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
248 | 257 | case a: Int => | |
249 | 258 | a | |
250 | 259 | case _ => | |
251 | 260 | 0 | |
252 | 261 | } | |
253 | 262 | let TotalBlackListAddress = (PreviousBlackListAddress - 1) | |
254 | 263 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
255 | 264 | then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp))) | |
256 | 265 | else if ((i.caller != whitelist_address)) | |
257 | 266 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
258 | 267 | else if ((ifBlacklisted == "Yes")) | |
259 | 268 | then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
260 | 269 | else throw("Address is not available in Blacklist.") | |
261 | 270 | } | |
262 | 271 | ||
263 | 272 | ||
264 | 273 | ||
265 | 274 | @Callable(i) | |
266 | 275 | func DelEntry (E1,E2,E3,E4,E5) = [DeleteEntry(E1), DeleteEntry(E2), DeleteEntry(E3), DeleteEntry(E4), DeleteEntry(E5)] | |
267 | 276 | ||
268 | 277 |
github/deemru/w8io/026f985 58.59 ms ◑