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:
Old | New | | Differences |
---|
15 | 15 | | let euroPriceList = split(euroPrice, ".") |
---|
16 | 16 | | let euroPrice2 = (euroPriceList[0] + euroPriceList[1]) |
---|
17 | 17 | | 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)]) |
---|
20 | 21 | | } |
---|
21 | 22 | | |
---|
22 | 23 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func a () = { |
---|
8 | 8 | | let oracleAddress = "3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq" |
---|
9 | 9 | | let euroPrice = match getString(addressFromStringValue(oracleAddress), "EUR") { |
---|
10 | 10 | | case a: String => |
---|
11 | 11 | | a |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | throw("Couldn't find Euro Price") |
---|
14 | 14 | | } |
---|
15 | 15 | | let euroPriceList = split(euroPrice, ".") |
---|
16 | 16 | | let euroPrice2 = (euroPriceList[0] + euroPriceList[1]) |
---|
17 | 17 | | 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)]) |
---|
20 | 21 | | } |
---|
21 | 22 | | |
---|
22 | 23 | | |
---|
23 | 24 | | |
---|
24 | 25 | | @Callable(i) |
---|
25 | 26 | | func b (cousre) = WriteSet([DataEntry("EUR", cousre)]) |
---|
26 | 27 | | |
---|
27 | 28 | | |
---|