tx · 9qn8BFReWVFSvyUoraHFrUYms5G52PPDFN3v75UaVA6Q
3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk: -0.05000000 Waves
2022.05.20 19:00 [2060214] smart account 3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk > SELF 0.00000000 Waves
{
"type": 13,
"id": "9qn8BFReWVFSvyUoraHFrUYms5G52PPDFN3v75UaVA6Q",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1653062521905,
"version": 2,
"chainId": 84,
"sender": "3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk",
"senderPublicKey": "D4dyMjKAuQNHUBbJs8ygZdsYar9CmF2X3uTXtMkH5F2e",
"proofs": [
"3A8YwM9wzi8ShnaxnmYXDm38cu8MZU3PHx34jn1vWAbzoK8wMwbBmQM6sMrSiEvRqCk46WmLKHDKMXnHscWCW9i3"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAABmV0VVNETgEAAAAgDYX0ECghlXnCpRueVLUITdJs62OWdYaQ++yMaV6po6gAAAAACGlzU3RvcGVkBwAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAACYW0IBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAARVU0ROCQAAAgAAAAECAAAADUludmFsaWQgdG9rZW4DBQAAAAhpc1N0b3BlZAkAAAIAAAABAgAAAA9kQXBwIGlzIHN0b3BwZWQEAAAABXRvSXNzCQAAaAAAAAIFAAAAAmFtAAAAAAAAAABkBAAAAAFyCQEAAAAHUmVpc3N1ZQAAAAMFAAAABmV0VVNETgUAAAAFdG9Jc3MGBAAAAAN0cngJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAFdG9Jc3MFAAAABmV0VVNETgkABEwAAAACBQAAAAFyCQAETAAAAAIFAAAAA3RyeAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnsoWwS",
"height": 2060214,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: h5qgimWZDQRmfB6wJCxG4KtsKn8kirSXQxig2KunWS7
Next: CnwLU8AS1u2XoBdXJ7rXVSG1yg78q9UyWnzYVHPPyQm4
Diff:
Old | New | | Differences |
---|
8 | 8 | | let isStoped = false |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func stake () = { |
---|
| 11 | + | func deposit () = { |
---|
12 | 12 | | let pmt = value(i.payments[0]) |
---|
13 | 13 | | let am = pmt.amount |
---|
14 | 14 | | if ((pmt.assetId != USDN)) |
---|
|
16 | 16 | | else if (isStoped) |
---|
17 | 17 | | then throw("dApp is stopped") |
---|
18 | 18 | | else { |
---|
19 | | - | let r = Reissue(etUSDN, am, true) |
---|
20 | | - | let trx = ScriptTransfer(i.caller, am, etUSDN) |
---|
| 19 | + | let toIss = (am * 100) |
---|
| 20 | + | let r = Reissue(etUSDN, toIss, true) |
---|
| 21 | + | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
21 | 22 | | [r, trx] |
---|
22 | 23 | | } |
---|
23 | 24 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
5 | 5 | | |
---|
6 | 6 | | let etUSDN = base58'unmcHvw35UTWJEFybyRgiVmGyERnzpYbX9EvGMZrcL7' |
---|
7 | 7 | | |
---|
8 | 8 | | let isStoped = false |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func stake () = { |
---|
| 11 | + | func deposit () = { |
---|
12 | 12 | | let pmt = value(i.payments[0]) |
---|
13 | 13 | | let am = pmt.amount |
---|
14 | 14 | | if ((pmt.assetId != USDN)) |
---|
15 | 15 | | then throw("Invalid token") |
---|
16 | 16 | | else if (isStoped) |
---|
17 | 17 | | then throw("dApp is stopped") |
---|
18 | 18 | | else { |
---|
19 | | - | let r = Reissue(etUSDN, am, true) |
---|
20 | | - | let trx = ScriptTransfer(i.caller, am, etUSDN) |
---|
| 19 | + | let toIss = (am * 100) |
---|
| 20 | + | let r = Reissue(etUSDN, toIss, true) |
---|
| 21 | + | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
21 | 22 | | [r, trx] |
---|
22 | 23 | | } |
---|
23 | 24 | | } |
---|
24 | 25 | | |
---|
25 | 26 | | |
---|
26 | 27 | | @Verifier(tx) |
---|
27 | 28 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
28 | 29 | | |
---|