tx · 58mbF5BEx7mQ41LDZPu6t7zUnyJmpevBr2uUH1xSBJXU
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.30 14:05 [653900] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.00000000 AAAAAA Smart
{
"type": 15,
"id": "58mbF5BEx7mQ41LDZPu6t7zUnyJmpevBr2uUH1xSBJXU",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1567163130667,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"3QdqcDDSui3L5RDfBjU3eaUe533PqCYVqYaXGhSd5FReYyUUBb1nyMUCh1c5L5CV4iM4P8aJfvTf3V1LWJVASbGc"
],
"assetId": "BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3",
"script": "base64:AwQAAAAFUkZCSWQBAAAAIAMz/gGnCcUK/p+p0VnirlfSe3D1csGqcNtLG5ZdEgaWBAAAABNtaW5pbWFsQW1vdW50VG9CdXJuCQAAaQAAAAIIBQAAAAR0aGlzAAAACHF1YW50aXR5AAAAAAAAAABkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAARidXJuBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAABNtaW5pbWFsQW1vdW50VG9CdXJuCAUAAAAEYnVybgAAAAhxdWFudGl0eQkAAAIAAAABAgAAAD1Zb3UgY2FuIGJ1cm4gb25seSAxIHBlcmNlbnQgKG9yIG1vcmUpIG9mIGN1cnJlbnQgdG90YWwgc3VwcGx5BgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAHcmF0ZU1pbgkAAGsAAAADAAAAAAAF9eEACAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABVJGQklkAAAACHF1YW50aXR5CAUAAAAEdGhpcwAAAAhxdWFudGl0eQQAAAAIcmF0ZURpZmYJAABlAAAAAgUAAAAHcmF0ZU1pbggFAAAAAWUAAAAFcHJpY2UDAwMDCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAVSRkJJZAYJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAVSRkJJZAkAAGYAAAACBQAAAAhyYXRlRGlmZgD/////////9gcJAABnAAAAAgAAAAAAAAAAAAUAAAAIcmF0ZURpZmYHBgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAB6VGhpcyB0b2tlbiBjYW4gYmUgdHJhZGVkIHdpdGggUkZCIFRva2VuIG9ubHkgYXQgcmF0ZSBjYWxjdWxhdGVkIHdpdGggZm9ybXVsYTogUkZCIFRvdGFsIFN1cHBseSAvIFJGQiBTbWFydCBUb3RhbCBTdXBwbHkgPSAJAQAAAAlkcm9wUmlnaHQAAAACCQABpAAAAAEFAAAAB3JhdGVNaW4AAAAAAAAAAAcCAAAAAS4JAQAAAAl0YWtlUmlnaHQAAAACCQABpAAAAAEFAAAAB3JhdGVNaW4AAAAAAAAAAAcCAAAADiwgcmF0ZSBkaWZmIGlzCQABpAAAAAEFAAAACHJhdGVEaWZmBjDNJf8=",
"chainId": 84,
"height": 653900,
"spentComplexity": 0
}
View: original | compacted
Prev: 73RPgNRytNxTUpjYKHYnUKCbbmMu9ZPujDfh3nZcbN8K
Next: 9z53iU1NnVXZooevpQvd63QVJ5oaQ9od72XbXf7grgQu
Diff:
Old | New | | Differences |
---|
15 | 15 | | else (e.sellOrder.assetPair.amountAsset == RFBId)) |
---|
16 | 16 | | then (rateDiff > -10) |
---|
17 | 17 | | else false) |
---|
18 | | - | then (0 > rateDiff) |
---|
| 18 | + | then (0 >= rateDiff) |
---|
19 | 19 | | else false) |
---|
20 | 20 | | then true |
---|
21 | | - | else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateDiff))) |
---|
| 21 | + | else throw(((((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + dropRight(toString(rateMin), 7)) + ".") + takeRight(toString(rateMin), 7)) + ", rate diff is") + toString(rateDiff))) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | true |
---|
24 | 24 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let RFBId = base58'DWCuXbcXtrCkSKNX3D2uxh7zHh72SN7tC5eQXK92tC5' |
---|
4 | 4 | | let minimalAmountToBurn = (this.quantity / 100) |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case burn: BurnTransaction => |
---|
7 | 7 | | if ((minimalAmountToBurn > burn.quantity)) |
---|
8 | 8 | | then throw("You can burn only 1 percent (or more) of current total supply") |
---|
9 | 9 | | else true |
---|
10 | 10 | | case e: ExchangeTransaction => |
---|
11 | 11 | | let rateMin = fraction(100000000, extract(assetInfo(RFBId)).quantity, this.quantity) |
---|
12 | 12 | | let rateDiff = (rateMin - e.price) |
---|
13 | 13 | | if (if (if (if ((e.sellOrder.assetPair.priceAsset == RFBId)) |
---|
14 | 14 | | then true |
---|
15 | 15 | | else (e.sellOrder.assetPair.amountAsset == RFBId)) |
---|
16 | 16 | | then (rateDiff > -10) |
---|
17 | 17 | | else false) |
---|
18 | | - | then (0 > rateDiff) |
---|
| 18 | + | then (0 >= rateDiff) |
---|
19 | 19 | | else false) |
---|
20 | 20 | | then true |
---|
21 | | - | else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateDiff))) |
---|
| 21 | + | else throw(((((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + dropRight(toString(rateMin), 7)) + ".") + takeRight(toString(rateMin), 7)) + ", rate diff is") + toString(rateDiff))) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | true |
---|
24 | 24 | | } |
---|