tx · 8kSAF3cUePkvDSLad2BePfx2ZYnoPxvTSJSPjfBLgthU 3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW: -0.02500000 Waves 2023.08.28 14:35 [2730470] smart account 3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW > SELF 0.00000000 Waves
{ "type": 13, "id": "8kSAF3cUePkvDSLad2BePfx2ZYnoPxvTSJSPjfBLgthU", "fee": 2500000, "feeAssetId": null, "timestamp": 1693222596781, "version": 2, "chainId": 84, "sender": "3Mtit8bwuKhT8FTUFx26q1p6o4ZTecyuLRW", "senderPublicKey": "6Ao9CXtWYPtv2jCfbfCbjCK6Pwtqzu1i3hP1NzznxZbM", "proofs": [ "4dTdBeeqrH1UZ8ZYporj8EM5kW7sTusmqknEuTqNVQCf5tFu7REfPLpdcXFjnD7hsqcVL1WND5mFfBL6ghZLMoD1" ], "script": "base64:AAIFAAAAAAAAADAIAhIMCgoBAQgIAQEBCAEBEgwKCgEBCAgBAQEIAQESABIECgIIARIDCgEIEgMKAQgAAAALAAAAABZwb29sX2xpcXVpZGl0eV9hZGRyZXNzAgAAACMzTXg4cmFGc1FmamgySkJlVDhNTjFKdjVzVHZHa3g1UEREUwAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABhgpF7AAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQu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FVRvdGFsQmxhY2tMaXN0QWRkcmVzcwUAAAADbmlsCQAAAgAAAAECAAAAJkFkZHJlc3MgaXMgbm90IGF2YWlsYWJsZSBpbiBCbGFja2xpc3QuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5F6nDZQ==", "height": 2730470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Heu1qj5yMK3c9hHAnKG6xPrUAysAJkRmLpQni2VteRNY Next: 3F2J2msFskQJ9D8gFYubpoN9yEvQf2f86anrA3V4r4s9 Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let pool_liquidity_address = "3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS" | |
5 | 5 | ||
6 | - | let Dapp_Address_pub_key = base58' | |
6 | + | let Dapp_Address_pub_key = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
7 | 7 | ||
8 | 8 | let product_launch_timestamp = 1675209600000 | |
9 | 9 | ||
95 | 95 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
96 | 96 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
97 | 97 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
98 | - | else if ((minimum_order_size > Amount)) | |
99 | - | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
100 | - | else if ((Amount > maximum_order_size)) | |
101 | - | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
102 | - | else if ((0 > update_user_funds)) | |
103 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
104 | - | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
105 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
106 | - | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
107 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
108 | - | 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)] | |
98 | + | else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk)) | |
99 | + | then throw((("No more orders accepted, Option House Risk Size is only limited to " + toString(Funds_at_risk)) + ". Join in next Cycle.")) | |
100 | + | else if ((minimum_order_size > Amount)) | |
101 | + | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
102 | + | else if ((Amount > maximum_order_size)) | |
103 | + | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
104 | + | else if ((0 > update_user_funds)) | |
105 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
106 | + | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
107 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
108 | + | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
109 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
110 | + | 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)] | |
109 | 111 | } | |
110 | 112 | ||
111 | 113 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let pool_liquidity_address = "3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS" | |
5 | 5 | ||
6 | - | let Dapp_Address_pub_key = base58' | |
6 | + | let Dapp_Address_pub_key = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
7 | 7 | ||
8 | 8 | let product_launch_timestamp = 1675209600000 | |
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 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func placeoptionCall (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
28 | 28 | let calleraddress = toBase58String(i.caller.bytes) | |
29 | 29 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
30 | 30 | let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
31 | 31 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
32 | 32 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
33 | 33 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
34 | 34 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
35 | 35 | let read_OptionCounterID = OptionCounterID | |
36 | 36 | let OpionExpireCounter = 1 | |
37 | 37 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
38 | 38 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
39 | 39 | case a: Int => | |
40 | 40 | a | |
41 | 41 | case _ => | |
42 | 42 | 0 | |
43 | 43 | } | |
44 | 44 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
45 | 45 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
46 | 46 | case a: Int => | |
47 | 47 | a | |
48 | 48 | case _ => | |
49 | 49 | 0 | |
50 | 50 | } | |
51 | 51 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
52 | 52 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
53 | 53 | case a: Int => | |
54 | 54 | a | |
55 | 55 | case _ => | |
56 | 56 | 0 | |
57 | 57 | } | |
58 | 58 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
59 | 59 | let PreviousCall = match getInteger(this, "Total_Calls") { | |
60 | 60 | case a: Int => | |
61 | 61 | a | |
62 | 62 | case _ => | |
63 | 63 | 0 | |
64 | 64 | } | |
65 | 65 | let TotalCall = (PreviousCall + 1) | |
66 | 66 | let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) { | |
67 | 67 | case a: Int => | |
68 | 68 | a | |
69 | 69 | case _ => | |
70 | 70 | 0 | |
71 | 71 | } | |
72 | 72 | let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1) | |
73 | 73 | let PreviousUserCall = match getInteger(this, (User_Address + "_Total_Calls")) { | |
74 | 74 | case a: Int => | |
75 | 75 | a | |
76 | 76 | case _ => | |
77 | 77 | 0 | |
78 | 78 | } | |
79 | 79 | let TotalUserCall = (PreviousUserCall + 1) | |
80 | 80 | let PreviousUserCallinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Calls_") + toString(read_OptionCounterID))) { | |
81 | 81 | case a: Int => | |
82 | 82 | a | |
83 | 83 | case _ => | |
84 | 84 | 0 | |
85 | 85 | } | |
86 | 86 | let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1) | |
87 | 87 | let Funds_at_risk = fraction(read_TPL, 5, 100) | |
88 | 88 | if ((i.caller != whitelist_address)) | |
89 | 89 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
90 | 90 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
91 | 91 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
92 | 92 | else if ((Oracle_Status == "CLOSE")) | |
93 | 93 | then throw(closed_oracle_eror) | |
94 | 94 | else if ((ifBlacklisted == "Yes")) | |
95 | 95 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
96 | 96 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
97 | 97 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
98 | - | else if ((minimum_order_size > Amount)) | |
99 | - | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
100 | - | else if ((Amount > maximum_order_size)) | |
101 | - | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
102 | - | else if ((0 > update_user_funds)) | |
103 | - | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
104 | - | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
105 | - | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
106 | - | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
107 | - | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
108 | - | 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)] | |
98 | + | else if ((TotalFundsAddedInSpecificOptionOrder > Funds_at_risk)) | |
99 | + | then throw((("No more orders accepted, Option House Risk Size is only limited to " + toString(Funds_at_risk)) + ". Join in next Cycle.")) | |
100 | + | else if ((minimum_order_size > Amount)) | |
101 | + | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
102 | + | else if ((Amount > maximum_order_size)) | |
103 | + | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
104 | + | else if ((0 > update_user_funds)) | |
105 | + | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
106 | + | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
107 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
108 | + | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
109 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
110 | + | 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)] | |
109 | 111 | } | |
110 | 112 | ||
111 | 113 | ||
112 | 114 | ||
113 | 115 | @Callable(i) | |
114 | 116 | func placeoptionPut (Amount,OptionCounterID,User_ID,User_Address,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = { | |
115 | 117 | let calleraddress = toBase58String(i.caller.bytes) | |
116 | 118 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + User_Address)) | |
117 | 119 | let read_TPL = valueOrErrorMessage(getInteger(addressFromStringValue(pool_liquidity_address), "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
118 | 120 | let read_user_funds = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
119 | 121 | let update_user_funds = ((read_user_funds - Amount) - network_fee) | |
120 | 122 | let read_start_order_permit_timestamp = Start_Order_Timestamp | |
121 | 123 | let read_end_order_permit_timestamp = End_Order_Timestamp | |
122 | 124 | let read_OptionCounterID = OptionCounterID | |
123 | 125 | let OpionExpireCounter = 1 | |
124 | 126 | let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter) | |
125 | 127 | let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") { | |
126 | 128 | case a: Int => | |
127 | 129 | a | |
128 | 130 | case _ => | |
129 | 131 | 0 | |
130 | 132 | } | |
131 | 133 | let TotalOptionOrders = (PreviousOptionOrders + 1) | |
132 | 134 | let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) { | |
133 | 135 | case a: Int => | |
134 | 136 | a | |
135 | 137 | case _ => | |
136 | 138 | 0 | |
137 | 139 | } | |
138 | 140 | let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + Amount) | |
139 | 141 | let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) { | |
140 | 142 | case a: Int => | |
141 | 143 | a | |
142 | 144 | case _ => | |
143 | 145 | 0 | |
144 | 146 | } | |
145 | 147 | let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1) | |
146 | 148 | let PreviousPut = match getInteger(this, "Total_Puts") { | |
147 | 149 | case a: Int => | |
148 | 150 | a | |
149 | 151 | case _ => | |
150 | 152 | 0 | |
151 | 153 | } | |
152 | 154 | let TotalPut = (PreviousPut + 1) | |
153 | 155 | let PreviousPutinSpecificCounter = match getInteger(this, ("Total_Puts_" + toString(read_OptionCounterID))) { | |
154 | 156 | case a: Int => | |
155 | 157 | a | |
156 | 158 | case _ => | |
157 | 159 | 0 | |
158 | 160 | } | |
159 | 161 | let TotalPutinSpecificCounter = (PreviousPutinSpecificCounter + 1) | |
160 | 162 | let PreviousUserPut = match getInteger(this, (User_Address + "_Total_Puts")) { | |
161 | 163 | case a: Int => | |
162 | 164 | a | |
163 | 165 | case _ => | |
164 | 166 | 0 | |
165 | 167 | } | |
166 | 168 | let TotalUserPut = (PreviousUserPut + 1) | |
167 | 169 | let PreviousUserPutinSpecificCounter = match getInteger(this, ((User_Address + "_Total_Puts_") + toString(read_OptionCounterID))) { | |
168 | 170 | case a: Int => | |
169 | 171 | a | |
170 | 172 | case _ => | |
171 | 173 | 0 | |
172 | 174 | } | |
173 | 175 | let TotalUserPutinSpecificCounter = (PreviousUserPutinSpecificCounter + 1) | |
174 | 176 | let Funds_at_risk = fraction(read_TPL, 5, 100) | |
175 | 177 | if ((i.caller != whitelist_address)) | |
176 | 178 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
177 | 179 | else if ((product_launch_timestamp > lastBlock.timestamp)) | |
178 | 180 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
179 | 181 | else if ((Oracle_Status == "CLOSE")) | |
180 | 182 | then throw(closed_oracle_eror) | |
181 | 183 | else if ((ifBlacklisted == "Yes")) | |
182 | 184 | then throw((User_Address + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
183 | 185 | else if ((lastBlock.timestamp >= read_end_order_permit_timestamp)) | |
184 | 186 | then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.") | |
185 | 187 | else if ((minimum_order_size > Amount)) | |
186 | 188 | then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] WAVES.")) | |
187 | 189 | else if ((Amount > maximum_order_size)) | |
188 | 190 | then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] WAVES.")) | |
189 | 191 | else if ((0 > update_user_funds)) | |
190 | 192 | then throw(("Placed Order Amount is going negative. Please reduce the Order Size. Negative Fund Amount = " + toString(update_user_funds))) | |
191 | 193 | else if ((size(toString(Start_Order_Timestamp)) != 13)) | |
192 | 194 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
193 | 195 | else if ((size(toString(End_Order_Timestamp)) != 13)) | |
194 | 196 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
195 | 197 | 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)] | |
196 | 198 | } | |
197 | 199 | ||
198 | 200 | ||
199 | 201 | ||
200 | 202 | @Callable(i) | |
201 | 203 | func DepositUserFunds () = { | |
202 | 204 | let calleraddress = toBase58String(i.caller.bytes) | |
203 | 205 | let pmt = if ((size(i.payments) == 1)) | |
204 | 206 | then i.payments[0] | |
205 | 207 | else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].") | |
206 | 208 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress)) | |
207 | 209 | let PreviousUserDeposit = match getInteger(this, ((Currency_ID + "_") + calleraddress)) { | |
208 | 210 | case a: Int => | |
209 | 211 | a | |
210 | 212 | case _ => | |
211 | 213 | 0 | |
212 | 214 | } | |
213 | 215 | let TotalUserDeposit = (PreviousUserDeposit + pmt.amount) | |
214 | 216 | let PreviousDepositCounterID = match getInteger(this, "Deposit_Counter_ID") { | |
215 | 217 | case a: Int => | |
216 | 218 | a | |
217 | 219 | case _ => | |
218 | 220 | 0 | |
219 | 221 | } | |
220 | 222 | let TotalDepositCounterID = (PreviousDepositCounterID + 1) | |
221 | 223 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
222 | 224 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
223 | 225 | else if ((ifBlacklisted == "Yes")) | |
224 | 226 | then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it.")) | |
225 | 227 | else if (isDefined(pmt.assetId)) | |
226 | 228 | then throw("Only WAVES is allowed to deposit at the moment") | |
227 | 229 | else [IntegerEntry(((Currency_ID + "_") + calleraddress), TotalUserDeposit), IntegerEntry(((((toString(TotalDepositCounterID) + "_") + Currency_ID) + "_") + calleraddress), pmt.amount), IntegerEntry("Deposit_Counter_ID", TotalDepositCounterID)] | |
228 | 230 | } | |
229 | 231 | ||
230 | 232 | ||
231 | 233 | ||
232 | 234 | @Callable(i) | |
233 | 235 | func WithdrawUserFunds (User_Address,Amount) = { | |
234 | 236 | let calleraddress = toBase58String(i.caller.bytes) | |
235 | 237 | let readuserbalance = getIntegerValue(((Currency_ID + "_") + User_Address)) | |
236 | 238 | let update_user_funds = ((readuserbalance - Amount) - network_fee) | |
237 | 239 | let minimim_withdraw_amount = 10000000 | |
238 | 240 | if ((i.caller != whitelist_address)) | |
239 | 241 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
240 | 242 | else if ((minimim_withdraw_amount > Amount)) | |
241 | 243 | then throw((("Minimum Withdraw Amount is " + toString(minimim_withdraw_amount)) + "/10^8] WAVES.")) | |
242 | 244 | else if ((0 > update_user_funds)) | |
243 | 245 | then throw((("Placed Withdraw Amount is going in negative State of " + toString(update_user_funds)) + "/10^8] WAVES.")) | |
244 | 246 | 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)] | |
245 | 247 | } | |
246 | 248 | ||
247 | 249 | ||
248 | 250 | ||
249 | 251 | @Callable(i) | |
250 | 252 | func BlackListAddress (UserAddress) = { | |
251 | 253 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
252 | 254 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
253 | 255 | case a: Int => | |
254 | 256 | a | |
255 | 257 | case _ => | |
256 | 258 | 0 | |
257 | 259 | } | |
258 | 260 | let TotalBlackListAddress = (PreviousBlackListAddress + 1) | |
259 | 261 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
260 | 262 | then throw((product_launch_error + toString(product_launch_timestamp))) | |
261 | 263 | else if ((i.caller != whitelist_address)) | |
262 | 264 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
263 | 265 | else if ((ifBlacklisted == "Yes")) | |
264 | 266 | then throw("Address is already available in Blacklist.") | |
265 | 267 | else [StringEntry(("addr_BLACKLISTED_" + UserAddress), "Yes"), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
266 | 268 | } | |
267 | 269 | ||
268 | 270 | ||
269 | 271 | ||
270 | 272 | @Callable(i) | |
271 | 273 | func DeleteBlackListAddress (UserAddress) = { | |
272 | 274 | let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + UserAddress)) | |
273 | 275 | let PreviousBlackListAddress = match getInteger(this, "Total_Black_Listed_Address") { | |
274 | 276 | case a: Int => | |
275 | 277 | a | |
276 | 278 | case _ => | |
277 | 279 | 0 | |
278 | 280 | } | |
279 | 281 | let TotalBlackListAddress = (PreviousBlackListAddress - 1) | |
280 | 282 | if ((product_launch_timestamp > lastBlock.timestamp)) | |
281 | 283 | then throw(("Product Launch Timestamp is set at " + toString(product_launch_timestamp))) | |
282 | 284 | else if ((i.caller != whitelist_address)) | |
283 | 285 | then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it.")) | |
284 | 286 | else if ((ifBlacklisted == "Yes")) | |
285 | 287 | then [DeleteEntry(("addr_BLACKLISTED_" + UserAddress)), IntegerEntry("Total_Black_Listed_Address", TotalBlackListAddress)] | |
286 | 288 | else throw("Address is not available in Blacklist.") | |
287 | 289 | } | |
288 | 290 | ||
289 | 291 | ||
290 | 292 | @Verifier(tx) | |
291 | 293 | func verify () = match tx { | |
292 | 294 | case t: Order|ExchangeTransaction|MassTransferTransaction|TransferTransaction => | |
293 | 295 | false | |
294 | 296 | case _ => | |
295 | 297 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
296 | 298 | } | |
297 | 299 |
github/deemru/w8io/026f985 55.78 ms ◑