tx · 5iqkR47mxHt2hgCgKuhF2pjMyh9Fm7RdGXacKB74kYpT

3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH:  -0.04000000 Waves

2022.04.11 14:00 [2003841] smart account 3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH > SELF 0.00000000 Waves

{ "type": 13, "id": "5iqkR47mxHt2hgCgKuhF2pjMyh9Fm7RdGXacKB74kYpT", "fee": 4000000, "feeAssetId": null, "timestamp": 1649674855683, "version": 2, "chainId": 84, "sender": "3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH", "senderPublicKey": "HJ4JLtArYaaiBiWho6gzLRbKUVM6ZVTaKmci6sgFQtEm", "proofs": [ "4VukmF8j4iNBZPqtmJXiwgRsUfKv6R7zKZpJjAWTTu8yQRPmeL8bYRjg6SdbD61jeKTVXrth1esQ4rHNHVDnWtPA" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAADAAAAAAJJRAEAAAAg/xBHdpoc7iAAQfoZXdECvjjJUsHBvTbctJWSuRHjmWIAAAAAAkxQAQAAACBUgJin8ZP4V+99JlgBkqGEJd4kKpy7bL9Mn0vxHVzLPwAAAAAJaXNTdG9wcGVkBwAAAAIAAAABaQEAAAAFc3Rha2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACXBtdEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAAklECQAAAgAAAAECAAAAG2F0dGFjaCB0ZXN0TlNCVCB0b2tlbnMgb25seQMFAAAACWlzU3RvcHBlZAkAAAIAAAABAgAAABlzbWFydCBjb250cmFjdCBpcyBvbiBsb2NrBAAAAAppblRyZWFzdXJ5CQAD8AAAAAIFAAAABHRoaXMFAAAAAklEBAAAAAt0b3RhbElzc3VlZAQAAAAHJG1hd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AAAAluZXdBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlBAAAAAdidXJuaW5nCQEAAAAEQnVybgAAAAIFAAAAAkxQBQAAAAZhbW91bnQEAAAACHRyYW5zZmVyCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACW5ld0Ftb3VudAUAAAACSUQJAARMAAAAAgUAAAAHYnVybmluZwkABEwAAAACBQAAAAh0cmFuc2ZlcgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmNe/KG", "height": 2003841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ygQQwL3RxYKdnahDTt9yDUgPSTxYu11B7WiDY37z2zZ Next: Geiunv5A3vc9qSyo6KdYgEotzum9mR5Uush73nCsFnWR Diff:
OldNewDifferences
2828 }
2929 let k = ((g * 100000000) / h)
3030 let l = (f * k)
31- let m = Reissue(b, k, true)
32- let n = ScriptTransfer(d.caller, k, b)
31+ let m = Reissue(b, l, true)
32+ let n = ScriptTransfer(d.caller, l, b)
3333 [m, n]
3434 }
3535 }
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 }
2929 let k = ((g * 100000000) / h)
3030 let l = (f * k)
31- let m = Reissue(b, k, true)
32- let n = ScriptTransfer(d.caller, k, b)
31+ let m = Reissue(b, l, true)
32+ let n = ScriptTransfer(d.caller, l, b)
3333 [m, n]
3434 }
3535 }
3636
3737
3838
3939 @Callable(d)
4040 func withdraw (o) = {
4141 let p = d.payments[0]
4242 let q = d.payments[0].assetId
4343 if ((q != b))
4444 then throw("Attach the correct LP token")
4545 else {
4646 let r = (p.amount - o)
4747 if ((0 > o))
4848 then throw("Can't withdraw negative amount")
4949 else if ((0 > r))
5050 then throw("Not enough balance")
5151 else {
5252 let s = Burn(b, o)
5353 let n = ScriptTransfer(d.caller, r, a)
5454 [s, n]
5555 }
5656 }
5757 }
5858
5959
6060 @Verifier(t)
6161 func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
6262

github/deemru/w8io/026f985 
42.54 ms