tx · 8pz19ydTFtqwsveD5SQcL8TbR4B3fb4fbSiQDcQtdDVs

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.03 22:44 [2080600] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "8pz19ydTFtqwsveD5SQcL8TbR4B3fb4fbSiQDcQtdDVs", "fee": 1000000, "feeAssetId": null, "timestamp": 1654285547625, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "5B4HzbcURL8wM4KnFmUqq2NxP7PvzvvjZYh7tj4fSM3wurK7E8qcoc4sBmYr6E48wUw3jWHzUsPg1D84kfpFVxte" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAIAAAAABEJVc2QBAAAAIAu+yPsU61UT6w/UBobJ3Bln9DA/EA0rHMeXciw6ixXjAAAAAAhkQXBwRmVlcwEAAAAaAVSnJAa+rdQxXJacpl/yZdtSATGRaLbaMxIAAAADAAAAAWkBAAAABVJlc2V0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAABF9MaXEAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAxfTGFzdFVuc3Rha2UAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAtfdHJ4VW5zdGFrZQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAADERlcG9za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Z2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAOV2l0aGRyYXdBbW91bnQFAAAABEJVc2QJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaAAAAAIFAAAAB0ZlZVBhaWQAAAAAAAX14QAFAAAABEJVc2QFAAAAA25pbAUAAAAEQlVzZAAAAAAsHFrf", "height": 2080600, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4a7B2T7fQN8BZWk85GStF69CrSyKjnasdxVYZeQsAUob Next: HuRAekSiZELC2GEi336z26vBWq2WpKzUdHiJ6PWdH5E9 Diff:
OldNewDifferences
44 let a = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga'
55
66 let b = base58'3N59qn7Ndw24WrGFkNFk7PGTBCzdMETyKqj'
7+
8+@Callable(c)
9+func Reset () = [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_LastUnstake"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), 0)]
10+
11+
712
813 @Callable(c)
914 func DepositFunds () = {
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'
7+
8+@Callable(c)
9+func Reset () = [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_LastUnstake"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), 0)]
10+
11+
712
813 @Callable(c)
914 func DepositFunds () = {
1015 let d = (toBase58String(c.caller.bytes) + "_Liq")
1116 let e = {
1217 let f = getInteger(this, d)
1318 if ($isInstanceOf(f, "Int"))
1419 then {
1520 let g = f
1621 g
1722 }
1823 else 0
1924 }
2025 let h = if ((size(c.payments) == 1))
2126 then c.payments[0]
2227 else throw("Attached payment is required")
2328 if (if ((0 >= h.amount))
2429 then true
2530 else (h.assetId != a))
2631 then throw("Can only deposit BUsd tokens, and amount should be positive")
2732 else {
2833 let i = (e + h.amount)
2934 [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), i)]
3035 }
3136 }
3237
3338
3439
3540 @Callable(c)
3641 func WithdrawLiq () = {
3742 let d = (toBase58String(c.caller.bytes) + "_Liq")
3843 let j = (toBase58String(c.caller.bytes) + "_LastUnstake")
3944 let k = (toBase58String(c.caller.bytes) + "_trxUnstake")
4045 let l = Address(b)
4146 let m = 10
4247 let n = 1
4348 let o = {
4449 let f = getInteger(this, d)
4550 if ($isInstanceOf(f, "Int"))
4651 then {
4752 let g = f
4853 g
4954 }
5055 else 0
5156 }
5257 let p = {
5358 let f = getInteger(this, k)
5459 if ($isInstanceOf(f, "Int"))
5560 then {
5661 let g = f
5762 g
5863 }
5964 else 0
6065 }
6166 let q = {
6267 let f = getInteger(this, j)
6368 if ($isInstanceOf(f, "Int"))
6469 then {
6570 let g = f
6671 g
6772 }
6873 else 0
6974 }
7075 if ((o == 0))
7176 then throw(("You do not have enough funds to withdraw, your available funds are: " + toString((o / 100000000))))
7277 else if (if ((p == 2))
7378 then (height > (p + m))
7479 else false)
7580 then throw(("Second withdraw cannot be done before " + " min"))
7681 else {
7782 let r = if ((p == 3))
7883 then 0
7984 else (p + 1)
8085 let s = if ((p == 3))
8186 then 0
8287 else ((o - (n * 100000000)) - (((r * 25) * (o - (n * 100000000))) / 100))
8388 let t = ((25 * o) / 100)
8489 $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)
8590 }
8691 }
8792
8893

github/deemru/w8io/169f3d6 
27.27 ms