tx · 245Zgqi48EM9x3hhYngypJJcLpkb8cYBDKYsnNGjVHmB

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.09 23:39 [1696003] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "245Zgqi48EM9x3hhYngypJJcLpkb8cYBDKYsnNGjVHmB", "fee": 1000000, "feeAssetId": null, "timestamp": 1631220032965, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "4fT8JagLtS5GQRJcDocARjJnF9p6uMZxmTRuLpcS45txPXByYXuLGbFQjS6wr62yY55zbFqi4SQZXXbTimPjAKWm" ], "script": "base64:AAIFAAAAAAAAA+EIAhIICgYYGBEYAgEaFQoCYTESD2NoZWNrUG9zc2liaWx0eRoPCgJhMhIJcG10QW1vdW50GhgKAmEzEhJtaW5BbW91bnRUb1JlY2VpdmUaEAoCYTQSCmV4Y2hhbmdlcnMaFAoCYTUSDmV4Y2hhbmdlcnNUeXBlGhcKAmE2EhFyb3V0aW5nQXNzZXRzS2V5cxoQCgJhNxIKY29tbWlzc2lvbhoeCgJhOBIYY29tbWlzc2lvblNjYWxlRGVsaW1pdGVyGhMKAmE5Eg1kQXBwMVRva2VuUGF5GhMKAmIxEg1kQXBwMVRva2VuR2V0GhMKAmIyEg1kQXBwMlRva2VuUGF5GhMKAmIzEg1kQXBwMlRva2VuR2V0GhMKAmI0Eg1nZXRGcm9tMVRyYWRlGhoKAmI1EhRnZXRGcm9tMVRyYWRlV2l0aEZlZRoTCgJiNhINZ2V0RnJvbTJUcmFkZRoaCgJiNxIUZ2V0RnJvbTJUcmFkZVdpdGhGZWUaBwoCYjgSAWkaCgoCYjkSBGFyZ3MaFAoCYzESDnJlY2VpdmVBc3NldElkGhEKAmMyEg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2AAAAAAAAAAABBQAAAAJlOAQAAAACZTkJAQAAAAJjNQAAAAIFAAAAAmU4CQABkQAAAAIFAAAAAmU1AAAAAAAAAAABAwkAAAAAAAACBQAAAAJlNgAAAAAAAAAAAgUAAAACZTkEAAAAAmYxCQEAAAACYzUAAAACBQAAAAJlOQkAAZEAAAACBQAAAAJlNQAAAAAAAAAAAgMJAAAAAAAAAgUAAAACZTYAAAAAAAAAAAMFAAAAAmYxBAAAAAJmMgkBAAAAAmM1AAAAAgUAAAACZjEJAAGRAAAAAgUAAAACZTUAAAAAAAAAAAMJAAACAAAAAQIAAAASTGlzdCBzaXplIGV4Y2VlZCAzBAAAAAJjOQgFAAAAAmU0AAAAAl8xBAAAAAJkMQgFAAAAAmU0AAAAAl8yBAAAAAJkMggFAAAAAmU0AAAAAl8zBAAAAAJmMwkAA/AAAAACBQAAAAR0aGlzBQAAAAJjMQMDCQAAAAAAAAIFAAAAAmM5BQAAAAJjNAkAAGcAAAACBQAAAAJmMwUAAAACYTMHCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJiOAAAAAZjYWxsZXIFAAAAAmYzBQAAAAJjMQUAAAADbmlsCQAAAgAAAAECAAAAPnJvdXRpbmcgIT0gcm91dGluZ1NpemUgb3IgYW1vdW50VG9SZWNpZXZlIDwgbWluQW1vdW50VG9SZWNlaXZlAAAAANZhrTU=", "height": 1696003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AFgjdJ8KPYJ1GxHUBzDr46QjQDmadxvV29n1ncVtt4eq Next: 9nRz3prEFDzBQh5ucKzU9hKDdxb8cFGJsRjtacjsum3 Diff:
OldNewDifferences
1313 let getFrom2Trade = fraction(dApp2TokenGet, getFrom1TradeWithFee, (getFrom1TradeWithFee + dApp2TokenPay))
1414 let getFrom2TradeWithFee = fraction(getFrom2Trade, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
1515 if (true)
16- then throw(toString(getFrom2TradeWithFee))
16+ then throw(((((((toString(dApp1TokenPay) + " ") + toString(dApp1TokenGet)) + " ") + toString(dApp2TokenPay)) + " ") + toString(dApp2TokenGet)))
1717 else if ((getFrom2TradeWithFee >= minAmountToReceive))
1818 then true
1919 else false
2222
2323 @Callable(i)
2424 func routingTrade (exchangers,exchangersType,args,routingAssetsKeys,receiveAssetId,minAmountToReceive) = {
25- let $t020252099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
26- let pmtAmount = $t020252099._1
27- let pmtAssetId = $t020252099._2
25+ let $t021192193 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
26+ let pmtAmount = $t021192193._1
27+ let pmtAssetId = $t021192193._2
2828 if (!(checkPossibilty(pmtAmount, minAmountToReceive, exchangers, exchangersType, routingAssetsKeys)))
2929 then throw("Check transaction possibilty: declined")
3030 else {
3131 let routingSize = size(exchangers)
3232 func exchangeFold (accumulated,exchanger) = {
33- let $t023892452 = accumulated
34- let exchangeCounter = $t023892452._1
35- let amountsWithFee = $t023892452._2
36- let assetsIdSend = $t023892452._3
33+ let $t024832546 = accumulated
34+ let exchangeCounter = $t024832546._1
35+ let amountsWithFee = $t024832546._2
36+ let assetsIdSend = $t024832546._3
3737 if ((exchangeCounter == 0))
3838 then {
3939 let exchangerAddress = addressFromStringValue(exchanger)
4141 if ((inv == inv))
4242 then match inv {
4343 case inv: (Int, ByteVector) =>
44- let $t027872825 = inv
45- let amountWithFee = $t027872825._1
46- let assetIdSend = $t027872825._2
44+ let $t028812919 = inv
45+ let amountWithFee = $t028812919._1
46+ let assetIdSend = $t028812919._2
4747 $Tuple3((exchangeCounter + 1), amountWithFee, assetIdSend)
4848 case _ =>
4949 throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
5555 else false)
5656 then {
5757 let exchangerAddress = addressFromStringValue(exchanger)
58- let $t031713237 = $Tuple2(assetsIdSend, amountsWithFee)
59- let pmtAssetIdRout = $t031713237._1
60- let pmtAmountRout = $t031713237._2
58+ let $t032653331 = $Tuple2(assetsIdSend, amountsWithFee)
59+ let pmtAssetIdRout = $t032653331._1
60+ let pmtAmountRout = $t032653331._2
6161 let inv = invoke(exchangerAddress, "exchange", [args[exchangeCounter]], [AttachedPayment(pmtAssetIdRout, pmtAmountRout)])
6262 if ((inv == inv))
6363 then match inv {
6464 case inv: (Int, ByteVector) =>
65- let $t034863524 = inv
66- let amountWithFee = $t034863524._1
67- let assetIdSend = $t034863524._2
65+ let $t035803618 = inv
66+ let amountWithFee = $t035803618._1
67+ let assetIdSend = $t035803618._2
6868 $Tuple3((exchangeCounter + 1), amountWithFee, assetIdSend)
6969 case _ =>
7070 throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
7474 else accumulated
7575 }
7676
77- let $t037623863 = {
78- let $list38143863 = exchangers
79- let $size38143863 = size($list38143863)
80- let $acc038143863 = $Tuple3(0, 0, base58'')
81- if (($size38143863 == 0))
82- then $acc038143863
77+ let $t038563957 = {
78+ let $list39083957 = exchangers
79+ let $size39083957 = size($list39083957)
80+ let $acc039083957 = $Tuple3(0, 0, base58'')
81+ if (($size39083957 == 0))
82+ then $acc039083957
8383 else {
84- let $acc138143863 = exchangeFold($acc038143863, $list38143863[0])
85- if (($size38143863 == 1))
86- then $acc138143863
84+ let $acc139083957 = exchangeFold($acc039083957, $list39083957[0])
85+ if (($size39083957 == 1))
86+ then $acc139083957
8787 else {
88- let $acc238143863 = exchangeFold($acc138143863, $list38143863[1])
89- if (($size38143863 == 2))
90- then $acc238143863
88+ let $acc239083957 = exchangeFold($acc139083957, $list39083957[1])
89+ if (($size39083957 == 2))
90+ then $acc239083957
9191 else {
92- let $acc338143863 = exchangeFold($acc238143863, $list38143863[2])
93- if (($size38143863 == 3))
94- then $acc338143863
92+ let $acc339083957 = exchangeFold($acc239083957, $list39083957[2])
93+ if (($size39083957 == 3))
94+ then $acc339083957
9595 else {
96- let $acc438143863 = exchangeFold($acc338143863, $list38143863[3])
96+ let $acc439083957 = exchangeFold($acc339083957, $list39083957[3])
9797 throw("List size exceed 3")
9898 }
9999 }
100100 }
101101 }
102102 }
103- let exchangeCounter = $t037623863._1
104- let amountsWithFee = $t037623863._2
105- let assetsIdSend = $t037623863._3
103+ let exchangeCounter = $t038563957._1
104+ let amountsWithFee = $t038563957._2
105+ let assetsIdSend = $t038563957._3
106106 let amountToRecieve = assetBalance(this, receiveAssetId)
107107 if (if ((exchangeCounter == routingSize))
108108 then (amountToRecieve >= minAmountToReceive)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func checkPossibilty (pmtAmount,minAmountToReceive,exchangers,exchangersType,routingAssetsKeys) = {
55 let commission = 3000
66 let commissionScaleDelimiter = 1000000
77 let dApp1TokenPay = getIntegerValue(addressFromStringValue(exchangers[0]), routingAssetsKeys[0])
88 let dApp1TokenGet = getIntegerValue(addressFromStringValue(exchangers[0]), routingAssetsKeys[1])
99 let dApp2TokenPay = getIntegerValue(addressFromStringValue(exchangers[1]), routingAssetsKeys[2])
1010 let dApp2TokenGet = getIntegerValue(addressFromStringValue(exchangers[1]), routingAssetsKeys[3])
1111 let getFrom1Trade = fraction(dApp1TokenGet, pmtAmount, (pmtAmount + dApp1TokenPay))
1212 let getFrom1TradeWithFee = fraction(getFrom1Trade, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
1313 let getFrom2Trade = fraction(dApp2TokenGet, getFrom1TradeWithFee, (getFrom1TradeWithFee + dApp2TokenPay))
1414 let getFrom2TradeWithFee = fraction(getFrom2Trade, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
1515 if (true)
16- then throw(toString(getFrom2TradeWithFee))
16+ then throw(((((((toString(dApp1TokenPay) + " ") + toString(dApp1TokenGet)) + " ") + toString(dApp2TokenPay)) + " ") + toString(dApp2TokenGet)))
1717 else if ((getFrom2TradeWithFee >= minAmountToReceive))
1818 then true
1919 else false
2020 }
2121
2222
2323 @Callable(i)
2424 func routingTrade (exchangers,exchangersType,args,routingAssetsKeys,receiveAssetId,minAmountToReceive) = {
25- let $t020252099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
26- let pmtAmount = $t020252099._1
27- let pmtAssetId = $t020252099._2
25+ let $t021192193 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
26+ let pmtAmount = $t021192193._1
27+ let pmtAssetId = $t021192193._2
2828 if (!(checkPossibilty(pmtAmount, minAmountToReceive, exchangers, exchangersType, routingAssetsKeys)))
2929 then throw("Check transaction possibilty: declined")
3030 else {
3131 let routingSize = size(exchangers)
3232 func exchangeFold (accumulated,exchanger) = {
33- let $t023892452 = accumulated
34- let exchangeCounter = $t023892452._1
35- let amountsWithFee = $t023892452._2
36- let assetsIdSend = $t023892452._3
33+ let $t024832546 = accumulated
34+ let exchangeCounter = $t024832546._1
35+ let amountsWithFee = $t024832546._2
36+ let assetsIdSend = $t024832546._3
3737 if ((exchangeCounter == 0))
3838 then {
3939 let exchangerAddress = addressFromStringValue(exchanger)
4040 let inv = invoke(exchangerAddress, "exchange", [args[exchangeCounter]], [AttachedPayment(pmtAssetId, pmtAmount)])
4141 if ((inv == inv))
4242 then match inv {
4343 case inv: (Int, ByteVector) =>
44- let $t027872825 = inv
45- let amountWithFee = $t027872825._1
46- let assetIdSend = $t027872825._2
44+ let $t028812919 = inv
45+ let amountWithFee = $t028812919._1
46+ let assetIdSend = $t028812919._2
4747 $Tuple3((exchangeCounter + 1), amountWithFee, assetIdSend)
4848 case _ =>
4949 throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
5050 }
5151 else throw("Strict value is not equal to itself.")
5252 }
5353 else if (if ((exchangeCounter > 0))
5454 then (routingSize > exchangeCounter)
5555 else false)
5656 then {
5757 let exchangerAddress = addressFromStringValue(exchanger)
58- let $t031713237 = $Tuple2(assetsIdSend, amountsWithFee)
59- let pmtAssetIdRout = $t031713237._1
60- let pmtAmountRout = $t031713237._2
58+ let $t032653331 = $Tuple2(assetsIdSend, amountsWithFee)
59+ let pmtAssetIdRout = $t032653331._1
60+ let pmtAmountRout = $t032653331._2
6161 let inv = invoke(exchangerAddress, "exchange", [args[exchangeCounter]], [AttachedPayment(pmtAssetIdRout, pmtAmountRout)])
6262 if ((inv == inv))
6363 then match inv {
6464 case inv: (Int, ByteVector) =>
65- let $t034863524 = inv
66- let amountWithFee = $t034863524._1
67- let assetIdSend = $t034863524._2
65+ let $t035803618 = inv
66+ let amountWithFee = $t035803618._1
67+ let assetIdSend = $t035803618._2
6868 $Tuple3((exchangeCounter + 1), amountWithFee, assetIdSend)
6969 case _ =>
7070 throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
7171 }
7272 else throw("Strict value is not equal to itself.")
7373 }
7474 else accumulated
7575 }
7676
77- let $t037623863 = {
78- let $list38143863 = exchangers
79- let $size38143863 = size($list38143863)
80- let $acc038143863 = $Tuple3(0, 0, base58'')
81- if (($size38143863 == 0))
82- then $acc038143863
77+ let $t038563957 = {
78+ let $list39083957 = exchangers
79+ let $size39083957 = size($list39083957)
80+ let $acc039083957 = $Tuple3(0, 0, base58'')
81+ if (($size39083957 == 0))
82+ then $acc039083957
8383 else {
84- let $acc138143863 = exchangeFold($acc038143863, $list38143863[0])
85- if (($size38143863 == 1))
86- then $acc138143863
84+ let $acc139083957 = exchangeFold($acc039083957, $list39083957[0])
85+ if (($size39083957 == 1))
86+ then $acc139083957
8787 else {
88- let $acc238143863 = exchangeFold($acc138143863, $list38143863[1])
89- if (($size38143863 == 2))
90- then $acc238143863
88+ let $acc239083957 = exchangeFold($acc139083957, $list39083957[1])
89+ if (($size39083957 == 2))
90+ then $acc239083957
9191 else {
92- let $acc338143863 = exchangeFold($acc238143863, $list38143863[2])
93- if (($size38143863 == 3))
94- then $acc338143863
92+ let $acc339083957 = exchangeFold($acc239083957, $list39083957[2])
93+ if (($size39083957 == 3))
94+ then $acc339083957
9595 else {
96- let $acc438143863 = exchangeFold($acc338143863, $list38143863[3])
96+ let $acc439083957 = exchangeFold($acc339083957, $list39083957[3])
9797 throw("List size exceed 3")
9898 }
9999 }
100100 }
101101 }
102102 }
103- let exchangeCounter = $t037623863._1
104- let amountsWithFee = $t037623863._2
105- let assetsIdSend = $t037623863._3
103+ let exchangeCounter = $t038563957._1
104+ let amountsWithFee = $t038563957._2
105+ let assetsIdSend = $t038563957._3
106106 let amountToRecieve = assetBalance(this, receiveAssetId)
107107 if (if ((exchangeCounter == routingSize))
108108 then (amountToRecieve >= minAmountToReceive)
109109 else false)
110110 then [ScriptTransfer(i.caller, amountToRecieve, receiveAssetId)]
111111 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
112112 }
113113 }
114114
115115

github/deemru/w8io/026f985 
60.18 ms