tx · i2LHhxia2wjJGhr2pGU92YHF1oucRM4eZAG84mZ2Fqo 3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH: -0.01400000 Waves 2022.04.08 13:31 [1999474] smart account 3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH > SELF 0.00000000 Waves
{ "type": 13, "id": "i2LHhxia2wjJGhr2pGU92YHF1oucRM4eZAG84mZ2Fqo", "fee": 1400000, "feeAssetId": null, "timestamp": 1649413987591, "version": 2, "chainId": 84, "sender": "3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH", "senderPublicKey": "HJ4JLtArYaaiBiWho6gzLRbKUVM6ZVTaKmci6sgFQtEm", "proofs": [ "2cFEzsPGxGSVsLyX8HrTuvNUTWfxqUa24AqB1jTvMrRUejD3mqQX5vt9hZvBW2h4JM4AWiZWmAcqEdAiwR19svrj" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAADAAAAAAJJRAEAAAAg/xBHdpoc7iAAQfoZXdECvjjJUsHBvTbctJWSuRHjmWIAAAAAAkxQAQAAACBUgJin8ZP4V+99JlgBkqGEJd4kKpy7bL9Mn0vxHVzLPwAAAAAJaXNTdG9wcGVkBwAAAAIAAAABaQEAAAAFc3Rha2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACXBtdEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAAklECQAAAgAAAAECAAAAG2F0dGFjaCB0ZXN0TlNCVCB0b2tlbnMgb25seQMFAAAACWlzU3RvcHBlZAkAAAIAAAABAgAAABlzbWFydCBjb250cmFjdCBpcyBvbiBsb2NrBAAAAAppblRyZWFzdXJ5CQAD8AAAAAIFAAAABHRoaXMFAAAAAklEBAAAAAt0b3RhbElzc3VlZAQAAAAHJG1hdGNoMA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Ftb3VudAUAAAACSUQJAARMAAAAAgUAAAAHYnVybmluZwkABEwAAAACBQAAAAh0cmFuc2ZlcgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmCRYmV", "height": 1999474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FUwsi7hHBJJ1RBbJcG7ox3VHDwKiQ4HRbYJoddptBm7Z Next: BPgpKkmK5i76Y4ero1as8B1qttZzC7m5gcpE5avTH4rM Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58'' | |
4 | + | let a = base58'JAfMu2seKNzTVfqi5w5Pjh4kwwPTZPCEFpc2q2vDyFeh' | |
5 | 5 | ||
6 | - | let b = base58'' | |
6 | + | let b = base58'6gryiTrJoLkNzBtZLVBuCyCvnxPY77TVUS2ouYYjjVTU' | |
7 | 7 | ||
8 | 8 | let c = false | |
9 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58'' | |
4 | + | let a = base58'JAfMu2seKNzTVfqi5w5Pjh4kwwPTZPCEFpc2q2vDyFeh' | |
5 | 5 | ||
6 | - | let b = base58'' | |
6 | + | let b = base58'6gryiTrJoLkNzBtZLVBuCyCvnxPY77TVUS2ouYYjjVTU' | |
7 | 7 | ||
8 | 8 | let c = false | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func stake () = { | |
12 | 12 | let e = value(d.payments[0]) | |
13 | 13 | let f = e.amount | |
14 | 14 | if ((e.assetId != a)) | |
15 | 15 | then throw("attach testNSBT tokens only") | |
16 | 16 | else if (c) | |
17 | 17 | then throw("smart contract is on lock") | |
18 | 18 | else { | |
19 | 19 | let g = assetBalance(this, a) | |
20 | 20 | let h = { | |
21 | 21 | let i = assetInfo(b) | |
22 | 22 | if ($isInstanceOf(i, "Asset")) | |
23 | 23 | then { | |
24 | 24 | let j = i | |
25 | 25 | j.quantity | |
26 | 26 | } | |
27 | 27 | else throw("Can't find asset") | |
28 | 28 | } | |
29 | 29 | let k = Reissue(b, f, true) | |
30 | 30 | let l = ScriptTransfer(d.caller, f, b) | |
31 | 31 | [k, l] | |
32 | 32 | } | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Callable(d) | |
38 | 38 | func withdraw (m) = { | |
39 | 39 | let n = d.payments[0] | |
40 | 40 | let o = d.payments[0].assetId | |
41 | 41 | if ((o != b)) | |
42 | 42 | then throw("Attach the correct LP token") | |
43 | 43 | else { | |
44 | 44 | let p = (n.amount - m) | |
45 | 45 | if ((0 > m)) | |
46 | 46 | then throw("Can't withdraw negative amount") | |
47 | 47 | else if ((0 > p)) | |
48 | 48 | then throw("Not enough balance") | |
49 | 49 | else { | |
50 | 50 | let q = Burn(b, m) | |
51 | 51 | let l = ScriptTransfer(d.caller, p, a) | |
52 | 52 | [q, l] | |
53 | 53 | } | |
54 | 54 | } | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Verifier(r) | |
59 | 59 | func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) | |
60 | 60 |
github/deemru/w8io/169f3d6 35.81 ms ◑