tx · A2T8UWBB83BKK1mKvShr5zrDMBQqPiye6HgYjYLQhJB7

3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH:  -0.01000000 Waves

2022.03.31 13:32 [1987972] smart account 3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH > SELF 0.00000000 Waves

{ "type": 13, "id": "A2T8UWBB83BKK1mKvShr5zrDMBQqPiye6HgYjYLQhJB7", "fee": 1000000, "feeAssetId": null, "timestamp": 1648722827985, "version": 2, "chainId": 84, "sender": "3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH", "senderPublicKey": "HJ4JLtArYaaiBiWho6gzLRbKUVM6ZVTaKmci6sgFQtEm", "proofs": [ "5szua9LqDja2NDboi1YuJzTJeVKJ13Yc86AopVkcJC6SLcY2CUtvit6dPYcdBfgQLc7duoncY7csRk2jgNoCxFQE" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkbgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAAB3Nuc2J0SWQBAAAAILqDvGkp6waDXTwTuaKB/jW6h/tkvZs4MAj0Aq5ZzFKzAAAAAAlpc1N0b3BwZWQHAAAAAQAAAAFpAQAAAAlzdGFrZU5TQlQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABmFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABHVzZG4JAAACAAAAAQIAAAAWYXR0YWNoIFVTRE4gdG9rZW4gb25seQMFAAAACWlzU3RvcHBlZAkAAAIAAAABAgAAABlzbWFydCBjb250cmFjdCBpcyBvbiBsb2NrBAAAAAdsb2NrSW52CQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTjcDxBhyq5thCVgApxukjihnzrsA4xr/oCAAAAA3B1dAkABEwAAAACCQAFFAAAAAIAAAAAAAAHoSAGBQAAAANuaWwJAARMAAAAAgUAAAADcG10BQAAAANuaWwDCQAAAAAAAAIFAAAAB2xvY2tJbnYFAAAAB2xvY2tJbnYEAAAACnNuc2J0SXNzdWUJAQAAAAdSZWlzc3VlAAAAAwUAAAAHc25zYnRJZAUAAAAGYW1vdW50BgkABEwAAAACBQAAAApzbnNidElzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAdzbnNidElkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm5suhf", "height": 1987972, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D75X8r6uaYtXLhCep7Mn9wLCL6btUCHzKfzY1LmyqYGB Next: HpzPWKnaai31GYkpGYBdwCG9Ucne7Xg5bypJy2tRD3vT Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let dAppAddress = "3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH"
4+let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
6-let dAppPK = "HJ4JLtArYaaiBiWho6gzLRbKUVM6ZVTaKmci6sgFQtEm"
6+let snsbtId = base58'DZ5LhvfGCEAFRmfcrtdjhhiLESBfN7dMvM8FEFQc6Qr6'
77
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)
832

github/deemru/w8io/169f3d6 
25.04 ms