tx · Drm3ukJsw6AKa56BCTWSAeokrwpY8Gwdg8NnLGc9424f 3MrCh7arDXhf7B967wMDud6qaeeLf2Mana8: -0.05000000 Waves 2020.02.02 00:33 [880619] smart account 3MrCh7arDXhf7B967wMDud6qaeeLf2Mana8 > SELF 0.00000000 Waves
{ "type": 13, "id": "Drm3ukJsw6AKa56BCTWSAeokrwpY8Gwdg8NnLGc9424f", "fee": 5000000, "feeAssetId": null, "timestamp": 1580592789787, "version": 1, "sender": "3MrCh7arDXhf7B967wMDud6qaeeLf2Mana8", "senderPublicKey": "AVP3j2WmPWHj4RDXmKpm5JCbSq8Wys8NWUa3qubqebS3", "proofs": [ "4kBygtKZLNnJLmJhwdrwFjwsb48pfFXhfh1x4TU3GupRntWvJAtbiA8kbjMe8ebnk44xVcerbTvddCrXtZ6SPAah" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAgAAAAALZGlic3Rva2VuSWQBAAAAIEBdurtkLKjLQerG4jpOLJrLr9aO21xFm3uBnEzknEC4AAAAAApkaWJzY29pbklkAQAAACAU3FPdwoCecqegVKSV1mDcnCuq86X7nnAsf3qiMEfH9wAAAAEAAAABaQEAAAAKYXRvbWljU3dhcAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAZzZW5kVG8IBQAAAAFpAAAABmNhbGxlcgQAAAAMYW1vdW50VG9TZW5kCQAAaAAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAF9eEABAAAAA9kaWJzY29pbkJhbGFuY2UJAAPrAAAAAgUAAAAEdGhpcwUAAAAKZGlic2NvaW5JZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALZGlic3Rva2VuSWQJAAACAAAAAQIAAAAfU8OzIHBlcm1pdGltb3MgdHJvY2FyIERpYnN0b2tlbgMJAAAAAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAAAJAAACAAAAAQIAAAAVTmVuaHVtIHZhbG9yIGEgdHJvY2FyAwkAAGYAAAACBQAAAAxhbW91bnRUb1NlbmQFAAAAD2RpYnNjb2luQmFsYW5jZQkAAAIAAAABAgAAADtOw6NvIGjDoSBzYWxkbyBkZSBEaWJzY29pbiBzdWZpY2llbnRlIHBhcmEgcmVhbGl6YXIgYSB0cm9jYQkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAZzZW5kVG8FAAAADGFtb3VudFRvU2VuZAUAAAAKZGlic2NvaW5JZAUAAAADbmlsAAAAAIWuGs8=", "chainId": 84, "height": 880619, "spentComplexity": 0 } View: original | compacted Prev: 8AXCENwHfoyhkLsYuA6e8zF1DBAvfGbRYWBRfp9K4SjM Next: none Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | then throw("Nenhum valor a trocar") | |
18 | 18 | else if ((amountToSend > dibscoinBalance)) | |
19 | 19 | then throw("Não há saldo de Dibscoin suficiente para realizar a troca") | |
20 | - | else TransferSet([ScriptTransfer(sendTo, amountToSend, dibscoinId) | |
20 | + | else TransferSet([ScriptTransfer(sendTo, amountToSend, dibscoinId)]) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let dibstokenId = base58'5LFzGiwhBJNjhvQHspyVvHTVG2rGJ3B5qBtPWM1en98j' | |
5 | 5 | ||
6 | 6 | let dibscoinId = base58'2QS1k5BWepWDaxMiR8zb4tFG5mF1YngoHhDn6zVFWNs8' | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func atomicSwap () = { | |
10 | 10 | let pmt = extract(i.payment) | |
11 | 11 | let sendTo = i.caller | |
12 | 12 | let amountToSend = (pmt.amount * 100000000) | |
13 | 13 | let dibscoinBalance = assetBalance(this, dibscoinId) | |
14 | 14 | if ((pmt.assetId != dibstokenId)) | |
15 | 15 | then throw("Só permitimos trocar Dibstoken") | |
16 | 16 | else if ((pmt.amount == 0)) | |
17 | 17 | then throw("Nenhum valor a trocar") | |
18 | 18 | else if ((amountToSend > dibscoinBalance)) | |
19 | 19 | then throw("Não há saldo de Dibscoin suficiente para realizar a troca") | |
20 | - | else TransferSet([ScriptTransfer(sendTo, amountToSend, dibscoinId) | |
20 | + | else TransferSet([ScriptTransfer(sendTo, amountToSend, dibscoinId)]) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
github/deemru/w8io/169f3d6 35.93 ms ◑