tx · APNjv8r9xysozwwBtyYAaW9Uby88uFoDBHY29Bkh881U
3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm: -1.00000000 Waves
2019.01.30 11:20 [472741] smart asset 3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm > SELF 0.00000000 OracleCoin
{
"type": 15,
"id": "APNjv8r9xysozwwBtyYAaW9Uby88uFoDBHY29Bkh881U",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1548836427734,
"version": 1,
"sender": "3MwZW2qaipEauHPa4kVKtXcciYPtKGYL1Hm",
"senderPublicKey": "PYLg2tgZFWvcDNA9xnroZWxSwjNbc1TM6Bik8Mq2qjw",
"proofs": [
"3WUMUcK4HojJsYu5sQc8cctsWCeewvUuV6ykUpci2uiPMrW1L5qB7HnAVVNsB8zmMzN2WmiGE7Dr6ACEnMxF26E2"
],
"assetId": "Bq6g8sSzGHES35EjTki3cXSKoaZ2P5BRcBC22fUtxF3o",
"script": "base64:AQQAAAAEYWRkcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVK4aUf/QxlY6SdRtxnAvXdTBrxtg8alX6QQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAADXByaWNlQXNzZXRLZXkJAAEsAAAAAgkAASwAAAACAgAAAAhzdGF0dXNfPAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AgAAAAE+BAAAABJwcmljZUFzc2V0SW5PcmFjbGUJAAAAAAAAAgkABBoAAAACBQAAAARhZGRyBQAAAA1wcmljZUFzc2V0S2V5AAAAAAAAAAACBAAAAA5hbW91bnRBc3NldEtleQkAASwAAAACCQABLAAAAAICAAAACHN0YXR1c188CQACWAAAAAEJAQAAAAdleHRyYWN0AAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AgAAAAE+BAAAABNhbW91bnRBc3NldEluT3JhY2xlCQAAAAAAAAIJAAQaAAAAAgUAAAAEYWRkcgUAAAANcHJpY2VBc3NldEtleQAAAAAAAAAAAgMFAAAAEnByaWNlQXNzZXRJbk9yYWNsZQYFAAAAE2Ftb3VudEFzc2V0SW5PcmFjbGUGZuXSxA==",
"chainId": 84,
"height": 472741,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 5Z7TGYQiPcyXpdNW9vtJKQBhizHPRC5sMQiC1eekHUd7
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let addr = Address(base58'3N5net4nzSeeqxPfGZrvVvnGavsinipQHbE') |
---|
| 4 | + | match tx { |
---|
| 5 | + | case e: ExchangeTransaction => |
---|
| 6 | + | let priceAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.priceAsset))) + ">") |
---|
| 7 | + | let priceAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 8 | + | let amountAssetKey = (("status_<" + toBase58String(extract(e.sellOrder.assetPair.amountAsset))) + ">") |
---|
| 9 | + | let amountAssetInOracle = (getInteger(addr, priceAssetKey) == 2) |
---|
| 10 | + | if (priceAssetInOracle) |
---|
| 11 | + | then true |
---|
| 12 | + | else amountAssetInOracle |
---|
| 13 | + | case _ => |
---|
| 14 | + | true |
---|
| 15 | + | } |
---|