tx · 4a7B2T7fQN8BZWk85GStF69CrSyKjnasdxVYZeQsAUob

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.03 22:41 [2080597] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "4a7B2T7fQN8BZWk85GStF69CrSyKjnasdxVYZeQsAUob", "fee": 1000000, "feeAssetId": null, "timestamp": 1654285358937, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "5eWn8VmsGRCWYUoi6gnXt2wTQM8NPcL7P8xBdVfF7uVZhLGJHFArfEbJgrYTQKpF9G9gHPBEuRD4qnfQAvHCaYvR" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAACAAAAAARCVXNkAQAAACALvsj7FOtVE+sP1AaGydwZZ/QwPxANKxzHl3IsOosV4wAAAAAIZEFwcEZlZXMBAAAAGgFUpyQGvq3UMVyWnKZf8mXbUgExkWi22jMSAAAAAgAAAAFpAQAAAAxEZXBvc2l0RnVuZHMAAAAABAAAAA1Vc2VyTGlxdWlkaXR5CQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAEX0xpcQQAAAALVXNlckJhbGFuY2UEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAANVXNlckxpcXVpZGl0eQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQg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AAABfXhAAkAAGkAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAMUGFpZHRyeFZhbHVlAAAAAAAAAAAZCQAAZQAAAAIFAAAABmFtb3VudAkAAGgAAAACBQAAAAdGZWVQYWlkAAAAAAAF9eEAAAAAAAAAAABkBAAAAA5XaXRoZHJhd0Ftb3VudAkAAGkAAAACCQAAaAAAAAIAAAAAAAAAABkFAAAABmFtb3VudAAAAAAAAAAAZAkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAALX3RyeFVuc3Rha2UFAAAADFBhaWR0cnhWYWx1ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAABF9MaXEFAAAAC1VzZXJBY2NvdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAALX3RyeFVuc3Rha2UFAAAABmhlaWdodAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADldpdGhkcmF3QW1vdW50BQAAAARCVXNkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWRBcHBGcmVlcwkAAGgAAAACBQAAAAdGZWVQYWlkAAAAAAAF9eEABQAAAARCVXNkBQAAAANuaWwFAAAABEJVc2QAAAAAjS4zmA==", "height": 2080597, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HqKtN1geP5FtbPy8EE2c13YjMEmg4hDTbeKsCnFfJkis Next: 8pz19ydTFtqwsveD5SQcL8TbR4B3fb4fbSiQDcQtdDVs Diff:
OldNewDifferences
7272 else if (if ((p == 2))
7373 then (height > (p + m))
7474 else false)
75- then throw((("Second withdraw cannot be done before " + toString(((height - m) - p))) + " min"))
75+ then throw(("Second withdraw cannot be done before " + " min"))
7676 else {
7777 let r = if ((p == 3))
7878 then 0
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga'
55
66 let b = base58'3N59qn7Ndw24WrGFkNFk7PGTBCzdMETyKqj'
77
88 @Callable(c)
99 func DepositFunds () = {
1010 let d = (toBase58String(c.caller.bytes) + "_Liq")
1111 let e = {
1212 let f = getInteger(this, d)
1313 if ($isInstanceOf(f, "Int"))
1414 then {
1515 let g = f
1616 g
1717 }
1818 else 0
1919 }
2020 let h = if ((size(c.payments) == 1))
2121 then c.payments[0]
2222 else throw("Attached payment is required")
2323 if (if ((0 >= h.amount))
2424 then true
2525 else (h.assetId != a))
2626 then throw("Can only deposit BUsd tokens, and amount should be positive")
2727 else {
2828 let i = (e + h.amount)
2929 [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), i)]
3030 }
3131 }
3232
3333
3434
3535 @Callable(c)
3636 func WithdrawLiq () = {
3737 let d = (toBase58String(c.caller.bytes) + "_Liq")
3838 let j = (toBase58String(c.caller.bytes) + "_LastUnstake")
3939 let k = (toBase58String(c.caller.bytes) + "_trxUnstake")
4040 let l = Address(b)
4141 let m = 10
4242 let n = 1
4343 let o = {
4444 let f = getInteger(this, d)
4545 if ($isInstanceOf(f, "Int"))
4646 then {
4747 let g = f
4848 g
4949 }
5050 else 0
5151 }
5252 let p = {
5353 let f = getInteger(this, k)
5454 if ($isInstanceOf(f, "Int"))
5555 then {
5656 let g = f
5757 g
5858 }
5959 else 0
6060 }
6161 let q = {
6262 let f = getInteger(this, j)
6363 if ($isInstanceOf(f, "Int"))
6464 then {
6565 let g = f
6666 g
6767 }
6868 else 0
6969 }
7070 if ((o == 0))
7171 then throw(("You do not have enough funds to withdraw, your available funds are: " + toString((o / 100000000))))
7272 else if (if ((p == 2))
7373 then (height > (p + m))
7474 else false)
75- then throw((("Second withdraw cannot be done before " + toString(((height - m) - p))) + " min"))
75+ then throw(("Second withdraw cannot be done before " + " min"))
7676 else {
7777 let r = if ((p == 3))
7878 then 0
7979 else (p + 1)
8080 let s = if ((p == 3))
8181 then 0
8282 else ((o - (n * 100000000)) - (((r * 25) * (o - (n * 100000000))) / 100))
8383 let t = ((25 * o) / 100)
8484 $Tuple2([IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), r), IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), s), IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), height), ScriptTransfer(c.caller, t, a), ScriptTransfer(l, (n * 100000000), a)], a)
8585 }
8686 }
8787
8888

github/deemru/w8io/169f3d6 
29.96 ms