tx · E3FserXEE7iVfx91oTaQjkvqSVNMiBiMXnc2cgx6QLUD
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.16 19:14 [633858] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.0000000 smarty
{
"type": 15,
"id": "E3FserXEE7iVfx91oTaQjkvqSVNMiBiMXnc2cgx6QLUD",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565972070810,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"5L3dxVKhS6pczRBWq2DzpdU7QDHp3b1e7K3tQBn5tFCrG8RMnJND2i1AP3NNDKCAxw5Rbydp5ahZ4jGxdCmEVSYD"
],
"assetId": "9CB5r7EGCFwURNxDbT7oTGrEwWp9R5yAacD9sm5V7ryS",
"script": "base64:AwQAAAAGQUxBTElkAQAAACALeoOyaQfKiULr59otvDF3rQF3eK5MNPl/P2eTG9jHAQQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAB3JhdGVNaW4JAABpAAAAAgkAAGQAAAACCQAAaAAAAAIJAABpAAAAAggJAQAAAAdleHRyYWN0AAAAAQkAA+wAAAABBQAAAAZBTEFMSWQAAAAIcXVhbnRpdHkIBQAAAAR0aGlzAAAACHF1YW50aXR5AAAAAAAF9eEACQAAawAAAAMAAAAAAAX14QAICQEAAAAHZXh0cmFjdAAAAAEJAAPsAAAAAQUAAAAGQUxBTElkAAAACHF1YW50aXR5CAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAAgMDCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAZBTEFMSWQGCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAGQUxBTElkCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlBQAAAAdyYXRlTWluBwYnNBo5",
"chainId": 84,
"height": 633858,
"spentComplexity": 0
}
View: original | compacted
Prev: BTaYQukpwviSPZJ624Wv5vfDqZpckmRNCmk7QtBu2jxt
Next: 8ms73Hzw3Cec5GAF5hHXmw63gV2ExAH4s39ogSTp6C5g
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) + fraction(100000000, extract(assetInfo(ALALId)).quantity, this.quantity)) / 2) |
---|
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) + fraction(100000000, extract(assetInfo(ALALId)).quantity, this.quantity)) / 2) |
---|
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 | | } |
---|