tx · 6MaKphL7UKAoPnuvEviYUpm9rMvfDhvw9Y6ZMQfJiMbV

3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm:  -0.01400000 Waves

2023.03.24 12:35 [2503909] smart account 3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm > SELF 0.00000000 Waves

{ "type": 13, "id": "6MaKphL7UKAoPnuvEviYUpm9rMvfDhvw9Y6ZMQfJiMbV", "fee": 1400000, "feeAssetId": null, "timestamp": 1679650550350, "version": 2, "chainId": 84, "sender": "3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "senderPublicKey": "EKmhAeU9yA52DSvBnr1WtWQWyyiCrauDYkmgnTns7ZkA", "proofs": [ "2KmhJ2eevZKbtMP9wJ4LyQUBtNThkqugsPgRyhHNpVke23X5HBfpC1USENmFM3YGNdRxewuMVa1WAjtg4VfDJ4o5" ], "script": "base64:AAIFAAAAAAAAAA8IAhILCgkBAQEBAQEIAQEAAAASAAAAABREYXBwX0FkZHJlc3NfcHViX2tleQEAAAAg5Qy2w6IN0IEU1MhSkAtwu7LWRvDZN6KA7RiYRBV+IQ4AAAAAFGNsYWltX29yYWNsZV9wdWJfa2V5AQAAACAUyzzHz3lbyiA/iYXa3PMOmTgD2mv3B0LnmhRjX2WPRgAAAAATT3JnX0FkZHJlc3NfcHViX2tleQEAAAAgFMs8x895W8ogP4mF2tzzDpk4A9pr9wdC55oUY19lj0YAAAAAG3JlZmVycmFsX0FjX0FkZHJlc3NfcHViX2tleQEAAAAgFMs8x895W8ogP4mF2tzzDpk4A9pr9wdC55oUY19lj0YAAAAAFUxQX0FjX0FkZHJlc3NfcHViX2tleQEAAAAgFMs8x895W8ogP4mF2tzzDpk4A9pr9wdC55oUY19lj0YAAAAAHXZhbGlkYXRvcnNfQWNfQWRkcmVzc19wdWJfa2V5AQAAACAUyzzHz3lbyiA/iYXa3PMOmTgD2mv3B0LnmhRjX2WPRgAAAAAYcHJvZHVjdF9sYXV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EFAAAAFHJlYWRfT3B0aW9uQ291bnRlcklEBQAAACJUb3RhbE9wdGlvbk9yZGVyc2luU3BlY2lmaWNDb3VudGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAtUb3RhbF9DYWxscwUAAAAJVG90YWxDYWxsCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADFRvdGFsX0NhbGxzXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAUAAAAaVG90YWxDYWxsaW5TcGVjaWZpY0NvdW50ZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyYWRkcmVzcwIAAAAMX1RvdGFsX0NhbGxzBQAAAA1Ub3RhbFVzZXJDYWxsCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAANY2FsbGVyYWRkcmVzcwIAAAANX1RvdGFsX0NhbGxzXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAUAAAAeVG90YWxVc2VyQ2FsbGluU3BlY2lmaWNDb3VudGVyBQAAAANuaWwAAAAAcHo8ZQ==", "height": 2503909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DDm94CenkCkSGinB7Bd3TPiDWmi7W134WJe8JfxkeC1p Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let Dapp_Address_pub_key = base58'GR7cD6khNNwt62EpPbrxYZz5aLTEQSBfQaJeRVcNGSEH'
5+
6+let claim_oracle_pub_key = base58'2QAu6RR2Us6PVYjkp4AiteazWSGeWYq9esHsx1uy9vA9'
7+
8+let Org_Address_pub_key = base58'2QAu6RR2Us6PVYjkp4AiteazWSGeWYq9esHsx1uy9vA9'
9+
10+let referral_Ac_Address_pub_key = base58'2QAu6RR2Us6PVYjkp4AiteazWSGeWYq9esHsx1uy9vA9'
11+
12+let LP_Ac_Address_pub_key = base58'2QAu6RR2Us6PVYjkp4AiteazWSGeWYq9esHsx1uy9vA9'
13+
14+let validators_Ac_Address_pub_key = base58'2QAu6RR2Us6PVYjkp4AiteazWSGeWYq9esHsx1uy9vA9'
15+
16+let product_launch_timestamp = 1675209600000
17+
18+let product_launch_error = "Product Launch Timestamp is set at "
19+
20+let no_payment_error = "No payment attached, Please Attach Token in payment[1]."
21+
22+let closed_oracle_eror = "Oracle is closed. Wait Until Oracle is Turned On."
23+
24+let Org_Address_Share = 5000
25+
26+let referral_Ac_Address_Share = 1750
27+
28+let LP_Ac_Address_Share = 3000
29+
30+let oracle_controller_address = addressFromPublicKey(Dapp_Address_pub_key)
31+
32+let claim_oracle_address = addressFromPublicKey(claim_oracle_pub_key)
33+
34+let org_account = addressFromPublicKey(Org_Address_pub_key)
35+
36+let minimum_order_size = 10000000
37+
38+let maximum_order_size = 10000000000
39+
40+@Callable(i)
41+func placeoptionCall (Total_Pool_Liquidity,OptionCounterID,House_risk,Price,Call_Limits,Put_Limits,Oracle_Status,Start_Order_Timestamp,End_Order_Timestamp) = {
42+ let calleraddress = toBase58String(i.caller.bytes)
43+ let pmt = if ((size(i.payments) == 1))
44+ then i.payments[0]
45+ else throw(no_payment_error)
46+ let ifBlacklisted = getString(this, ("addr_BLACKLISTED_" + calleraddress))
47+ let read_start_order_permit_timestamp = Start_Order_Timestamp
48+ let read_end_order_permit_timestamp = End_Order_Timestamp
49+ let read_total_pool_liquidity = Total_Pool_Liquidity
50+ let new_total_pool_liquidity = (read_total_pool_liquidity + pmt.amount)
51+ let read_OptionCounterID = OptionCounterID
52+ let OpionExpireCounter = 1
53+ let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter)
54+ let PreviousOptionOrders = match getInteger(this, "Total_Option_Orders") {
55+ case a: Int =>
56+ a
57+ case _ =>
58+ 0
59+ }
60+ let TotalOptionOrders = (PreviousOptionOrders + 1)
61+ let PreviousFundsAddedInSpecificOptionOrder = match getInteger(this, ("Total_Funds_Added_In_Option_Order_" + toString(read_OptionCounterID))) {
62+ case a: Int =>
63+ a
64+ case _ =>
65+ 0
66+ }
67+ let TotalFundsAddedInSpecificOptionOrder = (PreviousFundsAddedInSpecificOptionOrder + pmt.amount)
68+ let PreviousOptionOrdersinSpecificCounter = match getInteger(this, ("Total_Option_Orders_" + toString(read_OptionCounterID))) {
69+ case a: Int =>
70+ a
71+ case _ =>
72+ 0
73+ }
74+ let TotalOptionOrdersinSpecificCounter = (PreviousOptionOrdersinSpecificCounter + 1)
75+ let PreviousCall = match getInteger(this, "Total_Calls") {
76+ case a: Int =>
77+ a
78+ case _ =>
79+ 0
80+ }
81+ let TotalCall = (PreviousCall + 1)
82+ let PreviousCallinSpecificCounter = match getInteger(this, ("Total_Calls_" + toString(read_OptionCounterID))) {
83+ case a: Int =>
84+ a
85+ case _ =>
86+ 0
87+ }
88+ let TotalCallinSpecificCounter = (PreviousCallinSpecificCounter + 1)
89+ let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) {
90+ case a: Int =>
91+ a
92+ case _ =>
93+ 0
94+ }
95+ let TotalUserCall = (PreviousUserCall + 1)
96+ let PreviousUserCallinSpecificCounter = match getInteger(this, ((calleraddress + "_Total_Calls_") + toString(read_OptionCounterID))) {
97+ case a: Int =>
98+ a
99+ case _ =>
100+ 0
101+ }
102+ let TotalUserCallinSpecificCounter = (PreviousUserCallinSpecificCounter + 1)
103+ let Pending_Option_limits = match getInteger(this, "Pending_Option_Limits") {
104+ case a: Int =>
105+ a
106+ case _ =>
107+ 0
108+ }
109+ let Funds_at_risk = House_risk
110+ if ((product_launch_timestamp > lastBlock.timestamp))
111+ then throw((product_launch_error + toString(product_launch_timestamp)))
112+ else if ((Oracle_Status == "Close"))
113+ then throw(closed_oracle_eror)
114+ else if ((ifBlacklisted == "Yes"))
115+ then throw((calleraddress + " Address is Blacklisted. Please contact Admin to Whitelist it."))
116+ else if (isDefined(pmt.assetId))
117+ then throw("Only TN is allowed to deposit at the moment")
118+ else if ((lastBlock.timestamp >= read_end_order_permit_timestamp))
119+ then throw("Option Order placing Timing Limits are Over. Please Join in Next Cycle.")
120+ else if ((minimum_order_size > pmt.amount))
121+ then throw((("Placed Order Size is less than [" + toString(minimum_order_size)) + "/10^8] TN."))
122+ else if ((pmt.amount > maximum_order_size))
123+ then throw((("Placed Order Size is more than [" + toString(maximum_order_size)) + "/10^8] TN."))
124+ else [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(("Total_Pool_Liquidity_" + toString(read_OptionCounterID)), (new_total_pool_liquidity - TotalFundsAddedInSpecificOptionOrder)), 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)]
125+ }
126+
127+

github/deemru/w8io/026f985 
39.09 ms