tx · DMK9QaV1t97FpusVfYyumBZw6rXL3R44iqTcDJGRGhPd
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.17 01:20 [634238] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.0000000 smarty
{
"type": 15,
"id": "DMK9QaV1t97FpusVfYyumBZw6rXL3R44iqTcDJGRGhPd",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565994028712,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"5q8d41SSWcLqfGudWLzZKNb1ZaXn69Ny5LhTVQCczTbPoTqjmiRqTcKxet9xqvLuQeqpNwp6s71maq44TE7wiA5U"
],
"assetId": "9CB5r7EGCFwURNxDbT7oTGrEwWp9R5yAacD9sm5V7ryS",
"script": "base64:AwQAAAAGQUxBTElkAQAAACALeoOyaQfKiULr59otvDF3rQF3eK5MNPl/P2eTG9jHAQQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAB3JhdGVNaW4JAABoAAAAAgkAAGkAAAACCAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABkFMQUxJZAAAAAhxdWFudGl0eQgFAAAABHRoaXMAAAAIcXVhbnRpdHkAAAAAAAX14QADAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAGQUxBTElkBgkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABkFMQUxJZAkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAHcmF0ZU1pbgcGaMR06A==",
"chainId": 84,
"height": 634238,
"spentComplexity": 0
}
View: original | compacted
Prev: 8ms73Hzw3Cec5GAF5hHXmw63gV2ExAH4s39ogSTp6C5g
Next: 57NXceP3zYT65thwR1J6sNSFHYq3Ji1hn3mnjkbW2mA9
Diff:
Old | New | | Differences |
---|
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 | | - | let rateMin = (((extract(assetInfo(ALALId)).quantity / this.quantity) * 100000000) + fraction(100000000, extract(assetInfo(ALALId)).quantity, this.quantity)) |
---|
| 11 | + | let rateMin = ((extract(assetInfo(ALALId)).quantity / this.quantity) * 100000000) |
---|
12 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ALALId = base58'moqYu3B2z5HGBMcEhKmkXkK8YseSkEGnWqStTya1Tda' |
---|
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 | | - | let rateMin = (((extract(assetInfo(ALALId)).quantity / this.quantity) * 100000000) + fraction(100000000, extract(assetInfo(ALALId)).quantity, this.quantity)) |
---|
| 11 | + | let rateMin = ((extract(assetInfo(ALALId)).quantity / this.quantity) * 100000000) |
---|
12 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
15 | 15 | | then (e.price >= rateMin) |
---|
16 | 16 | | else false |
---|
17 | 17 | | case _ => |
---|
18 | 18 | | true |
---|
19 | 19 | | } |
---|