tx · 9DcfFWSQyViAzkAAiUUFU9YvXYGYLaPktVAsk6i5bFWT
3MuvvkBGK5JGJLAZRy9oSxbYu8QLXC3LwJy: -0.01000000 Waves
2023.12.14 06:11 [2885831] smart account 3MuvvkBGK5JGJLAZRy9oSxbYu8QLXC3LwJy > SELF 0.00000000 Waves
{
"type": 13,
"id": "9DcfFWSQyViAzkAAiUUFU9YvXYGYLaPktVAsk6i5bFWT",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1702523519890,
"version": 2,
"chainId": 84,
"sender": "3MuvvkBGK5JGJLAZRy9oSxbYu8QLXC3LwJy",
"senderPublicKey": "CcvY8rT7TDVC9wF59sHFdEjHTzq8dDTkung8TazwC9zB",
"proofs": [
"5yePP7ZK8bWsB7NZDB4KespoHtg9Ab44zVSSjEgfChdDrFkfERr6LT2iqi4bywtvbwMgk6ajzZqqjqtoBuMtByDn"
],
"script": "base64:BgIHCAISAwoBCAMACWFyYl9hc3NldAEgu4kpUFYEor0eYBTJ0JnRzosJOBXxisrcQGKgbzmVTTcABGJvc3MJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOQlU4VFRoSEg1WVVTazI2aUdFR1UxakhNN3ZTUjNaVFB4AQpnZXRCYWxhbmNlAgdhc3NldElkBGFkZHIEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQBYgUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkA8AcCBQRhZGRyBQFiAAAICQDvBwEFBGFkZHIJYXZhaWxhYmxlAQFpAQF5AQRkYXRhBAVvd25pdAkBCmdldEJhbGFuY2UCBQlhcmJfYXNzZXQIBQFpBmNhbGxlcgMDAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQECIT0CCAUBaQZjYWxsZXIFBGJvc3MHCQAAAgUFb3duaXQAAAcJAAIBAht5b3UgYXJlIG5vdCBhbGxvd2VkIHRvIGFyYiEEC2NhbGxlcl9hZGRyCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEB2NhbGxfaWQJANgEAQgFAWkNdHJhbnNhY3Rpb25JZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKwCAgULY2FsbGVyX2FkZHICAV8FB2NhbGxfaWQCB2JhbGFuY2UFBW93bml0BQNuaWwAnqHoBQ==",
"height": 2885831,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5zgVnWnhiP9tXfrb8UhgbeCBXJvCCMuYegYJxkiAPV5m
Next: none
Diff:
Old | New | | Differences |
---|
19 | 19 | | if (if (if ((i.caller != this)) |
---|
20 | 20 | | then (i.caller != boss) |
---|
21 | 21 | | else false) |
---|
22 | | - | then true |
---|
23 | | - | else (ownit == 0)) |
---|
| 22 | + | then (ownit == 0) |
---|
| 23 | + | else false) |
---|
24 | 24 | | then throw("you are not allowed to arb!") |
---|
25 | 25 | | else { |
---|
26 | 26 | | let caller_addr = toBase58String(i.caller.bytes) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let arb_asset = base58'Dd4YekCgh1aPsAAqkZLGTMNkQcmvix1SQd8W6UNZqKft' |
---|
5 | 5 | | |
---|
6 | 6 | | let boss = addressFromStringValue("3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx") |
---|
7 | 7 | | |
---|
8 | 8 | | func getBalance (assetId,addr) = match assetId { |
---|
9 | 9 | | case b: ByteVector => |
---|
10 | 10 | | valueOrElse(assetBalance(addr, b), 0) |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | wavesBalance(addr).available |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func y (data) = { |
---|
18 | 18 | | let ownit = getBalance(arb_asset, i.caller) |
---|
19 | 19 | | if (if (if ((i.caller != this)) |
---|
20 | 20 | | then (i.caller != boss) |
---|
21 | 21 | | else false) |
---|
22 | | - | then true |
---|
23 | | - | else (ownit == 0)) |
---|
| 22 | + | then (ownit == 0) |
---|
| 23 | + | else false) |
---|
24 | 24 | | then throw("you are not allowed to arb!") |
---|
25 | 25 | | else { |
---|
26 | 26 | | let caller_addr = toBase58String(i.caller.bytes) |
---|
27 | 27 | | let call_id = toBase58String(i.transactionId) |
---|
28 | 28 | | [IntegerEntry((((caller_addr + "_") + call_id) + "balance"), ownit)] |
---|
29 | 29 | | } |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|