tx · hTjXb2VVbNrnHwBKsu6HM7LMqxsYgdn7ErEmtR69a2M

3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH:  -0.04000000 Waves

2022.04.11 12:23 [2003743] smart account 3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH > SELF 0.00000000 Waves

{ "type": 13, "id": "hTjXb2VVbNrnHwBKsu6HM7LMqxsYgdn7ErEmtR69a2M", "fee": 4000000, "feeAssetId": null, "timestamp": 1649669033367, "version": 2, "chainId": 84, "sender": "3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH", "senderPublicKey": "HJ4JLtArYaaiBiWho6gzLRbKUVM6ZVTaKmci6sgFQtEm", "proofs": [ "2kmKz3f3RHx3ife2XiddsBWxJW1Qw8C5AaV6hacNAL7ez3d1WzYGyhYkSDm8Gs8FmqkqvnhYpJCTYDXydochFzTH" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAADAAAAAAJJRAEAAAAg/xBHdpoc7iAAQfoZXdECvjjJUsHBvTbctJWSuRHjmWIAAAAAAkxQAQAAACBUgJin8ZP4V+99JlgBkqGEJd4kKpy7bL9Mn0vxHVzLPwAAAAAJaXNTdG9wcGVkBwAAAAIAAAABaQEAAAAFc3Rha2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACXBtdEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAAklECQAAAgAAAAECAAAAG2F0dGFjaCB0ZXN0TlNCVCB0b2tlbnMgb25seQMFAAAACWlzU3RvcHBlZAkAAAIAAAABAgAAABlzbWFydCBjb250cmFjdCBpcyBvbiBsb2NrBAAAAAppblRyZWFzdXJ5CQAD8AAAAAIFAAAABHRoaXMFAAAAAklEBAAAAAt0b3RhbElzc3VlZAQAAAAHJG1hdGN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AAAAAgUAAAACTFAFAAAABmFtb3VudAQAAAAIdHJhbnNmZXIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAJbmV3QW1vdW50BQAAAAJJRAkABEwAAAACBQAAAAdidXJuaW5nCQAETAAAAAIFAAAACHRyYW5zZmVyBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleWoXimA=", "height": 2003743, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2j97dXTmq9mHQYPhL7Rj14PsrMZq5KMmQ48PS2Yvq6bj Next: 5vBEr9z1cVoKURowEEEcPqpxB4CScrZVaJvuCZYmyMb1 Diff:
OldNewDifferences
2626 }
2727 else throw("Can't find asset")
2828 }
29- let k = (h / g)
29+ let k = (g / h)
3030 let l = Reissue(b, k, true)
3131 let m = ScriptTransfer(d.caller, k, b)
3232 [l, m]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'JAfMu2seKNzTVfqi5w5Pjh4kwwPTZPCEFpc2q2vDyFeh'
55
66 let b = base58'6gryiTrJoLkNzBtZLVBuCyCvnxPY77TVUS2ouYYjjVTU'
77
88 let c = false
99
1010 @Callable(d)
1111 func stake () = {
1212 let e = value(d.payments[0])
1313 let f = e.amount
1414 if ((e.assetId != a))
1515 then throw("attach testNSBT tokens only")
1616 else if (c)
1717 then throw("smart contract is on lock")
1818 else {
1919 let g = assetBalance(this, a)
2020 let h = {
2121 let i = assetInfo(b)
2222 if ($isInstanceOf(i, "Asset"))
2323 then {
2424 let j = i
2525 j.quantity
2626 }
2727 else throw("Can't find asset")
2828 }
29- let k = (h / g)
29+ let k = (g / h)
3030 let l = Reissue(b, k, true)
3131 let m = ScriptTransfer(d.caller, k, b)
3232 [l, m]
3333 }
3434 }
3535
3636
3737
3838 @Callable(d)
3939 func withdraw (n) = {
4040 let o = d.payments[0]
4141 let p = d.payments[0].assetId
4242 if ((p != b))
4343 then throw("Attach the correct LP token")
4444 else {
4545 let q = (o.amount - n)
4646 if ((0 > n))
4747 then throw("Can't withdraw negative amount")
4848 else if ((0 > q))
4949 then throw("Not enough balance")
5050 else {
5151 let r = Burn(b, n)
5252 let m = ScriptTransfer(d.caller, q, a)
5353 [r, m]
5454 }
5555 }
5656 }
5757
5858
5959 @Verifier(s)
6060 func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
6161

github/deemru/w8io/169f3d6 
37.77 ms