tx · BHc23HKW5ripZtuDBoHNFGabHNWDR5LwCuS3xZDHSysA

3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY:  -0.01000000 Waves

2022.03.31 13:31 [1987971] smart account 3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY > SELF 0.00000000 Waves

{ "type": 13, "id": "BHc23HKW5ripZtuDBoHNFGabHNWDR5LwCuS3xZDHSysA", "fee": 1000000, "feeAssetId": null, "timestamp": 1648722684983, "version": 2, "chainId": 84, "sender": "3N5ZhGLzDmoMwHsWKAoTqkFvVYuditKPyvY", "senderPublicKey": "7mgUaX6yf7mFk48Gus7kVGRUwCZXtr2CKWJW6KoukPiW", "proofs": [ "2iStkUQZ9ys74GucxgnpuA1wXeQq1LBZBPNoYHX1FRfEEc9tqy4UHC65wFmPoXFtd95DwsTnp4HVVHRA29aqT47M" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkbgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAAB3Nuc2J0SWQBAAAAILqDvGkp6waDXTwTuaKB/jW6h/tkvZs4MAj0Aq5ZzFKzAAAAAAlpc1N0b3BwZWQHAAAAAQAAAAFpAQAAAAlzdGFrZU5TQlQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABmFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABHVzZG4JAAACAAAAAQIAAAAWYXR0YWNoIFVTRE4gdG9rZW4gb25seQMFAAAACWlzU3RvcHBlZAkAAAIAAAABAgAAABlzbWFydCBjb250cmFjdCBpcyBvbiBsb2NrBAAAAAdsb2NrSW52CQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTjcDxBhyq5thCVgApxukjihnzrsA4xr/oCAAAAA3B1dAkABEwAAAACCQAFFAAAAAIAAAAAAAAHoSAGBQAAAANuaWwJAARMAAAAAgUAAAADcG10BQAAAANuaWwDCQAAAAAAAAIFAAAAB2xvY2tJbnYFAAAAB2xvY2tJbnYEAAAACnNuc2J0SXNzdWUJAQAAAAdSZWlzc3VlAAAAAwUAAAAHc25zYnRJZAUAAAAGYW1vdW50BgkABEwAAAACBQAAAApzbnNidElzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAdzbnNidElkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm5suhf", "height": 1987971, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5ai9BKHW4QAdmDs9aNSXoiHznyc5ZoMmfjN1qpDuNcfj Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
5+
6+let snsbtId = base58'DZ5LhvfGCEAFRmfcrtdjhhiLESBfN7dMvM8FEFQc6Qr6'
7+
8+let isStopped = false
9+
10+@Callable(i)
11+func stakeNSBT () = {
12+ let pmt = value(i.payments[0])
13+ let amount = pmt.amount
14+ if ((pmt.assetId != usdn))
15+ then throw("attach USDN token only")
16+ else if (isStopped)
17+ then throw("smart contract is on lock")
18+ else {
19+ let lockInv = invoke(Address(base58'3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT'), "put", [$Tuple2(500000, true)], [pmt])
20+ if ((lockInv == lockInv))
21+ then {
22+ let snsbtIssue = Reissue(snsbtId, amount, true)
23+[snsbtIssue, ScriptTransfer(i.caller, amount, snsbtId)]
24+ }
25+ else throw("Strict value is not equal to itself.")
26+ }
27+ }
28+
29+
30+@Verifier(tx)
31+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
32+

github/deemru/w8io/169f3d6 
33.59 ms