tx · 81e4Gtet1Y441sNrCHBTSb8THfNyNdhy1W91pLxRJMD7
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00500000 Waves
2022.09.29 16:15 [2250443] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "81e4Gtet1Y441sNrCHBTSb8THfNyNdhy1W91pLxRJMD7",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1664457359349,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"3PpwsD42H3TUG5HTeZMMQPoMJxhuLcUcFbg9Z8jhiWKhrDHdZUoBqV2YTBAMhgJwTqPNHEhncPhgwcmPDrH4fwvG"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAEAAAAABXJ1bGVyAgAAACxCZ3hwQ200d3hiVzhTS0xQS1puZjRLVTJENlpVMjlvdjhNZ1pya2FTQXFwWQAAAAEAAAABaQEAAAAEc3dhcAAAAAIAAAAIYXNzZXRPdXQAAAAHbWluaW11bQQAAAAGY2FsbGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAJY2FsbGVyUGJrCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAJY2FsbGVyUGJrBQAAAAVydWxlcgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJTm8tbm8tbm8gBQAAAAljYWxsZXJQYmsCAAAAAiwgBQAAAAVydWxlcgIAAAACLCAFAAAABmNhbGxlcgQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAdhc3NldEluCQEAAAAFdmFsdWUAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQEAAAACGFtb3VudEluCQEAAAAFdmFsdWUAAAABCAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAACb3AAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5uGGHJg==",
"height": 2250443,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6frUCXny2wPGe4wGx37imT49mfAJp9xb1LTba1kVMsbu
Next: 6vVHmgqPevTKeDZUg8j8CKm6MrUqptfsDDJVz2gVyM28
Diff:
Old | New | | Differences |
---|
7 | 7 | | func swap (assetOut,minimum) = { |
---|
8 | 8 | | let caller = toString(i.caller) |
---|
9 | 9 | | let callerPbk = toBase58String(i.callerPublicKey) |
---|
10 | | - | if ((callerPbk != ruler)) |
---|
| 10 | + | if ((callerPbk == ruler)) |
---|
11 | 11 | | then throw(((((("No-no-no " + callerPbk) + ", ") + ruler) + ", ") + caller)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let pmt = i.payments[0] |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let ruler = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func swap (assetOut,minimum) = { |
---|
8 | 8 | | let caller = toString(i.caller) |
---|
9 | 9 | | let callerPbk = toBase58String(i.callerPublicKey) |
---|
10 | | - | if ((callerPbk != ruler)) |
---|
| 10 | + | if ((callerPbk == ruler)) |
---|
11 | 11 | | then throw(((((("No-no-no " + callerPbk) + ", ") + ruler) + ", ") + caller)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let pmt = i.payments[0] |
---|
14 | 14 | | let assetIn = value(pmt.assetId) |
---|
15 | 15 | | let amountIn = value(pmt.amount) |
---|
16 | 16 | | [IntegerEntry("op", 1)] |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Verifier(tx) |
---|
22 | 22 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
23 | 23 | | |
---|