tx · BfxJfGYewidcwUbVyzCZVShpwbHhJZZUrLZBPu8WpbUT

3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9:  -0.01500000 Waves

2019.10.02 11:58 [701883] smart account 3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9 > SELF 0.00000000 Waves

{ "type": 13, "id": "BfxJfGYewidcwUbVyzCZVShpwbHhJZZUrLZBPu8WpbUT", "fee": 1500000, "feeAssetId": null, "timestamp": 1570006772045, "version": 1, "sender": "3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9", "senderPublicKey": "363h6VTsArjVJ2RLmjkjSyB3txqWfhGT3t7sUqwqT5e6", "proofs": [ "3oRVh79Cyf3JKiqUAgDfP3PvH2tyGVonZtgUks6eAM4LjR8FSXGXS9py5jM3Y1DmFFtBioJ977eWfbXcDDMN86ww" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAFhAAAAAAQAAAANb3JhY2xlQWRkcmVzcwIAAAAjM040VzcxZjhCaURFSDk2RlNteEhINkdCb0FtUmh3OUFFcnEEAAAACWV1cm9QcmljZQQAAAAHJG1hdGNoMAkABB0AAAACCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAADW9yYWNsZUFkZHJlc3MCAAAAA0VVUgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAGENvdWxkbid0IGZpbmQgRXVybyBQcmljZQQAAAANZXVyb1ByaWNlTGlzdAkABLUAAAACBQAAAAlldXJvUHJpY2UCAAAAAS4EAAAACmV1cm9QcmljZTIJAAEsAAAAAgkAAZEAAAACBQAAAA1ldXJvUHJpY2VMaXN0AAAAAAAAAAAACQABkQAAAAIFAAAADWV1cm9QcmljZUxpc3QAAAAAAAAAAAEEAAAACmV1cm9QcmljZTMJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAS8AAAACBQAAAApldXJvUHJpY2UyAAAAAAAAAAAEBAAAAAdhbW91bnQxCQAAaAAAAAIAAAAAAAX14QAAAAAAAAX14QAEAAAAAWEJAABlAAAAAgAAAAAAC+vCAAkAAGkAAAACBQAAAAdhbW91bnQxAAAAAAAEgukOCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAlldXJvUHJpY2UFAAAACWV1cm9QcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKZXVyb1ByaWNlMgUAAAAKZXVyb1ByaWNlMgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKZXVyb1ByaWNlMwUAAAAKZXVyb1ByaWNlMwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAHQW1vdW50MQUAAAABYQUAAAADbmlsAAAAAWkBAAAAAWIAAAABAAAABmNvdXNyZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAADRVVSBQAAAAZjb3VzcmUFAAAAA25pbAAAAAB2uydc", "chainId": 84, "height": 701883, "spentComplexity": 0 } View: original | compacted Prev: ENx5WxuqCzZ9TvVoKJhrwkGGxtYSQ3VQpL2x1y86a2M3 Next: 7DYQs3LzevxT5BXZ1BUCD6bkapdaQL4pmTDxDPxRAeMF Diff:
OldNewDifferences
1515 let euroPriceList = split(euroPrice, ".")
1616 let euroPrice2 = (euroPriceList[0] + euroPriceList[1])
1717 let euroPrice3 = parseIntValue(take(euroPrice2, 4))
18- let amount1 = (120000000 * 100000000)
19- WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2), DataEntry("euroPrice3", euroPrice3), DataEntry("Amount1", amount1)])
18+ let amount1 = (100000000 * 100000000)
19+ let a = (200000000 - (amount1 / 75688206))
20+ WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2), DataEntry("euroPrice3", euroPrice3), DataEntry("Amount1", a)])
2021 }
2122
2223
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func a () = {
88 let oracleAddress = "3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq"
99 let euroPrice = match getString(addressFromStringValue(oracleAddress), "EUR") {
1010 case a: String =>
1111 a
1212 case _ =>
1313 throw("Couldn't find Euro Price")
1414 }
1515 let euroPriceList = split(euroPrice, ".")
1616 let euroPrice2 = (euroPriceList[0] + euroPriceList[1])
1717 let euroPrice3 = parseIntValue(take(euroPrice2, 4))
18- let amount1 = (120000000 * 100000000)
19- WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2), DataEntry("euroPrice3", euroPrice3), DataEntry("Amount1", amount1)])
18+ let amount1 = (100000000 * 100000000)
19+ let a = (200000000 - (amount1 / 75688206))
20+ WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2), DataEntry("euroPrice3", euroPrice3), DataEntry("Amount1", a)])
2021 }
2122
2223
2324
2425 @Callable(i)
2526 func b (cousre) = WriteSet([DataEntry("EUR", cousre)])
2627
2728

github/deemru/w8io/026f985 
21.49 ms