tx · CAEtwt5ZoDXBsLrTSYrFnyqyX77wBNU53GcrjersMhsb

3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w:  -1.00400000 Waves

2019.02.11 23:08 [490949] smart asset 3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w > SELF 0.00000000 mytest1

{ "type": 15, "id": "CAEtwt5ZoDXBsLrTSYrFnyqyX77wBNU53GcrjersMhsb", "fee": 100400000, "feeAssetId": null, "timestamp": 1549915686985, "version": 1, "sender": "3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w", "senderPublicKey": "5NKM8mtxgaEeB89FzmujLBdJrJXkYBkftRoTffUS53f", "proofs": [ "5SNNyvSHY5n9LBBJntjkj2rVCt2rCEUGFPJxyTvwh1efcprsE7UmZQfis4QRUShJFdFteYxuYPkxHJ6mZYZnTvZx", "2vSahiZ661DLAJzsEG7zJQ6UJYwoukyGW1kx4JPyWCAQxoKyGS31Vao57bp66amCy8i39e8DqttWmg6bD8EyZ3JA", "27RSGx4pJino9tteuib6FFn5BKurN1GAs9gAezreaH8vhmkjCWgFV7cwGBRhqZQrKAEDEs7VQXYzstBdkxhgGApR", "4ESWEtM8BaAABjFnE7R884kGj9TtBiUfTahgfZva5SvNjqG8pdoXHNtryJ4BUhTKVryRiN5P3w5ek547Dbmh5aw7" ], "assetId": "FivmKRkvFdVhSHBtxQ1UFj4EmbAd87pk2hKenwnbdwsK", "script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUatQCCuE3RLHy+k6O3owtbPTUFUwOIaG2BAAAAAZzZW5kZXIJAAJYAAAAAQgJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkAAAAFYnl0ZXMEAAAACGlzRnJvemVuCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAGaXNzdWVyAgAAAAtUb2tlbkZyb3plbgQAAAANaXNPbkJsY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CQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABcgUAAAAHJG1hdGNoMAcGlJmQOg==", "chainId": 84, "height": 490949, "spentComplexity": 0 } View: original | compacted Prev: JA5saJFBVNuAGoJHRad8fm7AAGGVwiPTJCDbJs6axHct Next: 8hBSKjpfftz9xoiDoH8uLQyKdQ8KQvDSsojsiZ5KsFRk Diff:
OldNewDifferences
1717 let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000)))
1818 throw(WAVerrStr)
1919 }
20- else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'))
20+ else if ((e.sellOrder.assetPair.priceAsset == base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'))
2121 then if ((e.sellOrder.price >= MinBtcPrice))
2222 then true
2323 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w')
44 let sender = toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes)
55 let isFrozen = extract(getBoolean(issuer, "TokenFrozen"))
66 let isOnBlacklist = isDefined(getBoolean(issuer, sender))
77 let MinWavesPrice = extract(getInteger(issuer, "MinWavesPrice"))
88 let MinBtcPrice = extract(getInteger(issuer, "MinBtcPrice"))
99 let MinEthPrice = extract(getInteger(issuer, "MinEthPrice"))
1010 if ((issuer == tx.sender))
1111 then match tx {
1212 case e: ExchangeTransaction =>
1313 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
1414 then if ((e.sellOrder.price >= MinWavesPrice))
1515 then true
1616 else {
1717 let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000)))
1818 throw(WAVerrStr)
1919 }
20- else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'))
20+ else if ((e.sellOrder.assetPair.priceAsset == base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'))
2121 then if ((e.sellOrder.price >= MinBtcPrice))
2222 then true
2323 else {
2424 let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000)))
2525 throw(BTCerrStr)
2626 }
2727 else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'))
2828 then if ((e.sellOrder.price >= MinEthPrice))
2929 then true
3030 else {
3131 let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000)))
3232 throw(ETHerrStr)
3333 }
3434 else throw("Only WAVES, BTC and ETH pairs allowed")
3535 case _ =>
3636 true
3737 }
3838 else if (isFrozen)
3939 then match tx {
4040 case _ =>
4141 false
4242 }
4343 else if (isOnBlacklist)
4444 then {
4545 let isBlocked = extract(getBoolean(issuer, sender))
4646 if (isBlocked)
4747 then match tx {
4848 case _ =>
4949 false
5050 }
5151 else match tx {
5252 case e: ExchangeTransaction =>
5353 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
5454 then if ((e.sellOrder.price >= MinWavesPrice))
5555 then true
5656 else {
5757 let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000)))
5858 throw(WAVerrStr)
5959 }
6060 else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'))
6161 then if ((e.sellOrder.price >= MinBtcPrice))
6262 then true
6363 else {
6464 let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000)))
6565 throw(BTCerrStr)
6666 }
6767 else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'))
6868 then if ((e.sellOrder.price >= MinEthPrice))
6969 then true
7070 else {
7171 let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000)))
7272 throw(ETHerrStr)
7373 }
7474 else throw("Only WAVES, BTC and ETH pairs allowed")
7575 case b: BurnTransaction =>
7676 false
7777 case s: SetAssetScriptTransaction =>
7878 false
7979 case r: ReissueTransaction =>
8080 false
8181 case _ =>
8282 true
8383 }
8484 }
8585 else match tx {
8686 case e: ExchangeTransaction =>
8787 if (!(isDefined(e.sellOrder.assetPair.priceAsset)))
8888 then if ((e.sellOrder.price >= MinWavesPrice))
8989 then true
9090 else {
9191 let WAVerrStr = ((("Minimal WAVES price = " + toString((MinWavesPrice / 100000000))) + ".") + toString((MinWavesPrice % 100000000)))
9292 throw(WAVerrStr)
9393 }
9494 else if ((e.sellOrder.assetPair.priceAsset == base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'))
9595 then if ((e.sellOrder.price >= MinBtcPrice))
9696 then true
9797 else {
9898 let BTCerrStr = ((("Minimal BTC price = " + toString((MinBtcPrice / 100000000))) + ".") + toString((MinBtcPrice % 100000000)))
9999 throw(BTCerrStr)
100100 }
101101 else if ((e.sellOrder.assetPair.priceAsset == base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'))
102102 then if ((e.sellOrder.price >= MinEthPrice))
103103 then true
104104 else {
105105 let ETHerrStr = ((("Minimal ETH price = " + toString((MinEthPrice / 100000000))) + ".") + toString((MinEthPrice % 100000000)))
106106 throw(ETHerrStr)
107107 }
108108 else throw("Only WAVES, BTC and ETH pairs allowed")
109109 case b: BurnTransaction =>
110110 false
111111 case s: SetAssetScriptTransaction =>
112112 false
113113 case r: ReissueTransaction =>
114114 false
115115 case _ =>
116116 true
117117 }

github/deemru/w8io/026f985 
42.58 ms