tx · 7F9Sgwj9XH5WWYviHVsfPJNme6QFUbJgAdcYfc67PdqH

3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS:  -0.01000000 Waves

2023.08.28 15:44 [2730534] smart account 3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS > SELF 0.00000000 Waves

{ "type": 13, "id": "7F9Sgwj9XH5WWYviHVsfPJNme6QFUbJgAdcYfc67PdqH", "fee": 1000000, "feeAssetId": null, "timestamp": 1693226626545, "version": 2, "chainId": 84, "sender": "3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS", "senderPublicKey": "HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL", "proofs": [ "41KJzJFUSSiNotN6pCx67gEUtHyQxPv9zKukudP8XVEhhDea5BA8MPrrmACs1TLMqGW6Btf9Mtfh48gbvprFFEKp" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAEAAAAABFscF9hZGRyZXNzX3B1YmtleQEAAAAg+SHOoR+6ay5qXj57vjRzml+/6VMYqCQMV4ukn2GjgTcAAAAAIG1hc3N0cmFuc2Zlcl93aGl0ZWxpc3RlZF9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABFscF9hZGRyZXNzX3B1YmtleQAAAAAUbHBfZGVwb3NpdG9yX2FkZHJlc3MBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABRscF93aGl0ZWxpc3RfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAUbHBfZGVwb3NpdG9yX2FkZHJlc3MAAAACAAAAAWkBAAAAEEFkZFBvb2xMaXF1aWRpdHkAAAAABAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwY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25seSAJAAQlAAAAAQUAAAAgbWFzc3RyYW5zZmVyX3doaXRlbGlzdGVkX2FkZHJlc3MCAAAAIiBpcyBBdXRob3JpemVkIEFkZHJlc3MgdG8gU2lnbiBpdC4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAFFRvdGFsX1Bvb2xfTGlxdWlkaXR5BQAAABR1cGRhdGVkX3Bvb2xfYmFsYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAYVG90YWxfTWFzc19UcmFuc2Zlcl9TZW5kBQAAABVUb3RhbE1hc3NUcmFuc2ZlclNlbmQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAABhUb3RhbE1hc3NUcmFuc2ZlckNvdW50ZXICAAAAE19NYXNzX1RyYW5zZmVyX1NlbmQFAAAAFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkkWuw5", "height": 2730534, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DQXGBkeZ6AAPVNei6XKABde14saaAGJ3Tz55YxsWw4LT Next: F4zqxUGZ554ec6aZMQhghSuG9q1qRrUzqSdpXn1HdY13 Diff:
OldNewDifferences
5656
5757 @Callable(e)
5858 func UpdateLPBalance (p) = {
59- let q = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
60- let r = (q - p)
61- let s = {
59+ let q = wavesBalance(this).regular
60+ let r = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
61+ let s = (q - r)
62+ let t = ((r - p) + s)
63+ let u = {
6264 let i = getInteger(this, "Mass_Transfer_Counter")
6365 if ($isInstanceOf(i, "Int"))
6466 then {
6769 }
6870 else 0
6971 }
70- let t = (s + 1)
71- let u = {
72+ let v = (u + 1)
73+ let w = {
7274 let i = getInteger(this, "Total_Mass_Transfer_Send")
7375 if ($isInstanceOf(i, "Int"))
7476 then {
7779 }
7880 else 0
7981 }
80- let v = (u + p)
82+ let x = (w + p)
8183 if ((e.caller != b))
8284 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
83- else [IntegerEntry("Total_Pool_Liquidity", r), IntegerEntry("Total_Mass_Transfer_Send", v), IntegerEntry((toString(t) + "_Mass_Transfer_Send"), p)]
85+ else [IntegerEntry("Total_Pool_Liquidity", t), IntegerEntry("Total_Mass_Transfer_Send", x), IntegerEntry((toString(v) + "_Mass_Transfer_Send"), p)]
8486 }
8587
8688
87-@Verifier(w)
88-func x () = {
89- let i = w
89+@Verifier(y)
90+func z () = {
91+ let i = y
9092 if (if ($isInstanceOf(i, "Order"))
9193 then true
9294 else if ($isInstanceOf(i, "ExchangeTransaction"))
9395 then true
9496 else $isInstanceOf(i, "TransferTransaction"))
9597 then {
96- let y = i
98+ let A = i
9799 false
98100 }
99- else sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
101+ else sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
100102 }
101103
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL'
55
66 let b = addressFromPublicKey(a)
77
88 let c = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
99
1010 let d = addressFromPublicKey(c)
1111
1212 @Callable(e)
1313 func AddPoolLiquidity () = {
1414 let f = toBase58String(e.caller.bytes)
1515 let g = if ((size(e.payments) == 1))
1616 then e.payments[0]
1717 else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
1818 let h = {
1919 let i = getInteger(this, "Total_LP_Added")
2020 if ($isInstanceOf(i, "Int"))
2121 then {
2222 let j = i
2323 j
2424 }
2525 else 0
2626 }
2727 let k = (h + g.amount)
2828 let l = {
2929 let i = getInteger(this, "Total_Pool_Liquidity")
3030 if ($isInstanceOf(i, "Int"))
3131 then {
3232 let j = i
3333 j
3434 }
3535 else 0
3636 }
3737 let m = (l + g.amount)
3838 let n = {
3939 let i = getInteger(this, "LP_Deposit_Counter")
4040 if ($isInstanceOf(i, "Int"))
4141 then {
4242 let j = i
4343 j
4444 }
4545 else 0
4646 }
4747 let o = (n + 1)
4848 if ((e.caller != d))
4949 then throw((("This Address is not Authorized. Only " + toString(d)) + " is Authorized Address to Sign it."))
5050 else if (isDefined(g.assetId))
5151 then throw("Only WAVES is allowed to deposit at the moment")
5252 else [IntegerEntry("Total_Pool_Liquidity", m), IntegerEntry("LP_Deposit_Counter", o), IntegerEntry("Total_LP_Added", k)]
5353 }
5454
5555
5656
5757 @Callable(e)
5858 func UpdateLPBalance (p) = {
59- let q = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
60- let r = (q - p)
61- let s = {
59+ let q = wavesBalance(this).regular
60+ let r = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
61+ let s = (q - r)
62+ let t = ((r - p) + s)
63+ let u = {
6264 let i = getInteger(this, "Mass_Transfer_Counter")
6365 if ($isInstanceOf(i, "Int"))
6466 then {
6567 let j = i
6668 j
6769 }
6870 else 0
6971 }
70- let t = (s + 1)
71- let u = {
72+ let v = (u + 1)
73+ let w = {
7274 let i = getInteger(this, "Total_Mass_Transfer_Send")
7375 if ($isInstanceOf(i, "Int"))
7476 then {
7577 let j = i
7678 j
7779 }
7880 else 0
7981 }
80- let v = (u + p)
82+ let x = (w + p)
8183 if ((e.caller != b))
8284 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
83- else [IntegerEntry("Total_Pool_Liquidity", r), IntegerEntry("Total_Mass_Transfer_Send", v), IntegerEntry((toString(t) + "_Mass_Transfer_Send"), p)]
85+ else [IntegerEntry("Total_Pool_Liquidity", t), IntegerEntry("Total_Mass_Transfer_Send", x), IntegerEntry((toString(v) + "_Mass_Transfer_Send"), p)]
8486 }
8587
8688
87-@Verifier(w)
88-func x () = {
89- let i = w
89+@Verifier(y)
90+func z () = {
91+ let i = y
9092 if (if ($isInstanceOf(i, "Order"))
9193 then true
9294 else if ($isInstanceOf(i, "ExchangeTransaction"))
9395 then true
9496 else $isInstanceOf(i, "TransferTransaction"))
9597 then {
96- let y = i
98+ let A = i
9799 false
98100 }
99- else sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
101+ else sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
100102 }
101103

github/deemru/w8io/026f985 
28.82 ms