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:
OldNewDifferences
1919 if (if (if ((i.caller != this))
2020 then (i.caller != boss)
2121 else false)
22- then true
23- else (ownit == 0))
22+ then (ownit == 0)
23+ else false)
2424 then throw("you are not allowed to arb!")
2525 else {
2626 let caller_addr = toBase58String(i.caller.bytes)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let arb_asset = base58'Dd4YekCgh1aPsAAqkZLGTMNkQcmvix1SQd8W6UNZqKft'
55
66 let boss = addressFromStringValue("3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx")
77
88 func getBalance (assetId,addr) = match assetId {
99 case b: ByteVector =>
1010 valueOrElse(assetBalance(addr, b), 0)
1111 case _ =>
1212 wavesBalance(addr).available
1313 }
1414
1515
1616 @Callable(i)
1717 func y (data) = {
1818 let ownit = getBalance(arb_asset, i.caller)
1919 if (if (if ((i.caller != this))
2020 then (i.caller != boss)
2121 else false)
22- then true
23- else (ownit == 0))
22+ then (ownit == 0)
23+ else false)
2424 then throw("you are not allowed to arb!")
2525 else {
2626 let caller_addr = toBase58String(i.caller.bytes)
2727 let call_id = toBase58String(i.transactionId)
2828 [IntegerEntry((((caller_addr + "_") + call_id) + "balance"), ownit)]
2929 }
3030 }
3131
3232

github/deemru/w8io/169f3d6 
50.00 ms