tx · CnwLU8AS1u2XoBdXJ7rXVSG1yg78q9UyWnzYVHPPyQm4
3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk: -0.05000000 Waves
2022.05.20 19:03 [2060215] smart account 3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk > SELF 0.00000000 Waves
{
"type": 13,
"id": "CnwLU8AS1u2XoBdXJ7rXVSG1yg78q9UyWnzYVHPPyQm4",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1653062592427,
"version": 2,
"chainId": 84,
"sender": "3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk",
"senderPublicKey": "D4dyMjKAuQNHUBbJs8ygZdsYar9CmF2X3uTXtMkH5F2e",
"proofs": [
"gjVriJk7nL2HVioLweRDc6ix2aqcRHSiKRhWUJsVd141zR5VGCN1U1HtjESwf5HFStdy57pUYft62zVr2iYAnea"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAABmV0VVNETgEAAAAgDYX0ECghlXnCpRueVLUITdJs62OWdYaQ++yMaV6po6gAAAAACGlzU3RvcGVkBwAAAAEAAAABaQEAAAAFc3Rha2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAAmFtCAUAAAADcG10AAAABmFtb3VudAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAEVVNETgkAAAIAAAABAgAAAA1JbnZhbGlkIHRva2VuAwUAAAAIaXNTdG9wZWQJAAACAAAAAQIAAAAPZEFwcCBpcyBzdG9wcGVkBAAAAAV0b0lzcwkAAGgAAAACBQAAAAJhbQAAAAAAAAAAZAQAAAABcgkBAAAAB1JlaXNzdWUAAAADBQAAAAZldFVTRE4FAAAABXRvSXNzBgQAAAADdHJ4CQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABXRvSXNzBQAAAAZldFVTRE4JAARMAAAAAgUAAAABcgkABEwAAAACBQAAAAN0cngFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5dvYdwA==",
"height": 2060215,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9qn8BFReWVFSvyUoraHFrUYms5G52PPDFN3v75UaVA6Q
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | let isStoped = false |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | | - | func deposit () = { |
---|
| 11 | + | func stake () = { |
---|
12 | 12 | | let pmt = value(i.payments[0]) |
---|
13 | 13 | | let am = pmt.amount |
---|
14 | 14 | | if ((pmt.assetId != USDN)) |
---|
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 deposit () = { |
---|
| 11 | + | func stake () = { |
---|
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 | 19 | | let toIss = (am * 100) |
---|
20 | 20 | | let r = Reissue(etUSDN, toIss, true) |
---|
21 | 21 | | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
22 | 22 | | [r, trx] |
---|
23 | 23 | | } |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Verifier(tx) |
---|
28 | 28 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 29 | | |
---|