tx · 9GXmGKeAVHoaPLvQ3aggYUJ8XyKWgcBE8TabPsRTvvza

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.05 09:52 [2082724] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "9GXmGKeAVHoaPLvQ3aggYUJ8XyKWgcBE8TabPsRTvvza", "fee": 1000000, "feeAssetId": null, "timestamp": 1654411931078, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "4GiaJZ93vXH8ztHeJgzwqB4g25vMTN2TEEJPcSSKFUv7d3zbpsHiV9ZNSPg8ZtLAsS59o1bGtASRE8QBC8BcymBf" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAIAAAAABEJVc2QBAAAAIAu+yPsU61UT6w/UBobJ3Bln9DA/EA0rHMeXciw6ixXjAAAAAAhkQXBwRmVlcwEAAAAaAVSnJAa+rdQxXJacpl/yZdtSATGRaLbaMxIAAAADAAAAAWkBAAAABVJlc2V0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAABF9MaXEAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAxfTGFzdFVuc3Rha2UAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAtfdHJ4VW5zdGFrZQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAADERl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EZyZWVzCQAAaAAAAAIFAAAAB0ZlZVBhaWQAAAAAAAX14QAFAAAABEJVc2QFAAAAA25pbAUAAAAEQlVzZAAAAAC7KhrI", "height": 2082724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BVW23vCXtEKVhQiNT7mAVE5iEMqFdvu5uguUFuenT7Bx Next: 6my9d7vpBW6koM9xWB84ouevW9wEkPTNY1xgpcPZQDR4 Diff:
OldNewDifferences
8989 else {
9090 let s = if ((q == 0))
9191 then 2
92- else 10
92+ else 100
9393 if (((r + s) > height))
9494 then throw((("Second withdraw cannot be done before " + toString(((height - r) - s))) + " min"))
9595 else {
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 Reset () = [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_LastUnstake"), 0), IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), 0)]
1010
1111
1212
1313 @Callable(c)
1414 func DepositFunds () = {
1515 let d = (toBase58String(c.caller.bytes) + "_Liq")
1616 let e = (toBase58String(c.caller.bytes) + "_LastUnstake")
1717 let f = {
1818 let g = getInteger(this, d)
1919 if ($isInstanceOf(g, "Int"))
2020 then {
2121 let h = g
2222 h
2323 }
2424 else 0
2525 }
2626 let i = if ((size(c.payments) == 1))
2727 then c.payments[0]
2828 else throw("Attached payment is required")
2929 if ((f != 0))
3030 then throw("You already have funds supplied, cannot supply more than once")
3131 else if (if (((50 * 100000000) > i.amount))
3232 then true
3333 else (i.assetId != a))
3434 then throw("Can only deposit BUsd tokens, and amount should be at least 50 BUsd")
3535 else {
3636 let j = (f + i.amount)
3737 [IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), j), IntegerEntry((toBase58String(c.caller.bytes) + "_Deposit"), j), IntegerEntry((toBase58String(c.caller.bytes) + "_LastUnstake"), height)]
3838 }
3939 }
4040
4141
4242
4343 @Callable(c)
4444 func WithdrawLiq () = {
4545 let d = (toBase58String(c.caller.bytes) + "_Liq")
4646 let e = (toBase58String(c.caller.bytes) + "_LastUnstake")
4747 let k = (toBase58String(c.caller.bytes) + "_trxUnstake")
4848 let l = (toBase58String(c.caller.bytes) + "_Deposit")
4949 let m = Address(b)
5050 let n = 1
5151 let o = {
5252 let g = getInteger(this, l)
5353 if ($isInstanceOf(g, "Int"))
5454 then {
5555 let h = g
5656 h
5757 }
5858 else 0
5959 }
6060 let p = {
6161 let g = getInteger(this, d)
6262 if ($isInstanceOf(g, "Int"))
6363 then {
6464 let h = g
6565 h
6666 }
6767 else 0
6868 }
6969 let q = {
7070 let g = getInteger(this, k)
7171 if ($isInstanceOf(g, "Int"))
7272 then {
7373 let h = g
7474 h
7575 }
7676 else 0
7777 }
7878 let r = {
7979 let g = getInteger(this, e)
8080 if ($isInstanceOf(g, "Int"))
8181 then {
8282 let h = g
8383 h
8484 }
8585 else 0
8686 }
8787 if ((p == 0))
8888 then throw(("You do not have enough funds to withdraw, your available funds are: " + toString((p / 100000000))))
8989 else {
9090 let s = if ((q == 0))
9191 then 2
92- else 10
92+ else 100
9393 if (((r + s) > height))
9494 then throw((("Second withdraw cannot be done before " + toString(((height - r) - s))) + " min"))
9595 else {
9696 let t = if ((q == 3))
9797 then 0
9898 else (q + 1)
9999 let u = ((o / 4) - (n * 100000000))
100100 let v = if ((q == 3))
101101 then 0
102102 else (o - (t * u))
103103 $Tuple2([IntegerEntry((toBase58String(c.caller.bytes) + "_trxUnstake"), t), IntegerEntry((toBase58String(c.caller.bytes) + "_Liq"), v), IntegerEntry((toBase58String(c.caller.bytes) + "_LastUnstake"), height), ScriptTransfer(c.caller, u, a), ScriptTransfer(m, (n * 100000000), a)], a)
104104 }
105105 }
106106 }
107107
108108

github/deemru/w8io/169f3d6 
32.50 ms