tx · HuCUCBYYyCU3rZDRRLsdA1g1Lq2qKcXHJNA9srF37iBh
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.17 01:50 [634265] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.0000000 smarty
{
"type": 15,
"id": "HuCUCBYYyCU3rZDRRLsdA1g1Lq2qKcXHJNA9srF37iBh",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565995803543,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"3rvkziMaMpVt8Ngj6RPN4E4t1roxmd2DXUT3jxEvHWP7WkMq2ESYBNLLAGkaMFkGwhM5X79tTtKPz9BznGyQkf6n"
],
"assetId": "9CB5r7EGCFwURNxDbT7oTGrEwWp9R5yAacD9sm5V7ryS",
"script": "base64:AwQAAAAGQUxBTElkAQAAACALeoOyaQfKiULr59otvDF3rQF3eK5MNPl/P2eTG9jHAQQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAB3JhdGVNaW4JAABkAAAAAgkAAGgAAAACCQAAaQAAAAIICQEAAAAHZXh0cmFjdAAAAAEJAAPsAAAAAQUAAAAGQUxBTElkAAAACHF1YW50aXR5CAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAO5rKAAkAAGoAAAACCAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABkFMQUxJZAAAAAhxdWFudGl0eQgFAAAABHRoaXMAAAAIcXVhbnRpdHkDAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAGQUxBTElkBgkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABkFMQUxJZAkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAHcmF0ZU1pbgcGhgAWTg==",
"chainId": 84,
"height": 634265,
"spentComplexity": 0
}
View: original | compacted
Prev: 5c8zfpAjP9txvFdpCCa78gC1mvDHwDJcHXHXXc3n69bo
Next: 82FUbgJknnjQHJrheTUkCEHyM7eDooD77m7yt4MYyAGT
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) * 1000000000) + ((extract(assetInfo(ALALId)).quantity * 1000000000) % this.quantity)) |
---|
| 11 | + | let rateMin = (((extract(assetInfo(ALALId)).quantity / this.quantity) * 1000000000) + (extract(assetInfo(ALALId)).quantity % this.quantity)) |
---|
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) * 1000000000) + ((extract(assetInfo(ALALId)).quantity * 1000000000) % this.quantity)) |
---|
| 11 | + | let rateMin = (((extract(assetInfo(ALALId)).quantity / this.quantity) * 1000000000) + (extract(assetInfo(ALALId)).quantity % this.quantity)) |
---|
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 | | } |
---|