tx · 2cEZpQiYAQMWBBGi6i2e9LBG53y4HGQcxS8RwxWKF9cU 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves 2023.04.27 17:37 [2553099] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{ "type": 13, "id": "2cEZpQiYAQMWBBGi6i2e9LBG53y4HGQcxS8RwxWKF9cU", "fee": 100000, "feeAssetId": null, "timestamp": 1682606259937, "version": 2, "chainId": 84, "sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat", "senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR", "proofs": [ "2NkjqR44V69yMN9ELGwGburB7MFtJa5GX6bb2DnhMCLy1wHHTvAhwV87xEb1hPUTRoTgmqNRfgtUSmrh2Zk7Y4qY" ], "script": "base64:BgIECAISAAABAWkBBHRlc3QABAZTY2FsZTgAgMLXLwQIQW1vdW50SW4AwJLWBAQJQmFsYW5jZUluAI3in6ABBApCYWxhbmNlT3V0AJSs0NZMBAl3ZWlnaHRfaW4AyAEECndlaWdodF9vdXQApCYEAWEJAG4EBQpCYWxhbmNlT3V0CQBlAgkAaAIFBlNjYWxlOAUGU2NhbGU4CQCgAwEJAHYGCQC9AgQJALYCAQUJQmFsYW5jZUluCQC2AgEJAGgCBQZTY2FsZTgFBlNjYWxlOAkAtgIBCQBkAgUJQmFsYW5jZUluBQhBbW91bnRJbgUGSEFMRlVQABAJALYCAQkAawMFCXdlaWdodF9pbgCQTgUKd2VpZ2h0X291dAAEABAFB0NFSUxJTkcJAGgCBQZTY2FsZTgFBlNjYWxlOAUERE9XTgkAAgEJAKQDAQUBYQDwyGEC", "height": 2553099, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EBPuhDnMYRgC3sMxtZVVTpTGULtQSf3wVPDXx7BUqtYR Next: DULhEepqHPeDVuZk5Wsy1PbcB9FjpbiKLZhztYG9BkVE Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | @Callable(i) | |
7 | 7 | func test () = { | |
8 | 8 | let Scale8 = 100000000 | |
9 | - | let AmountIn = | |
9 | + | let AmountIn = 9800000 | |
10 | 10 | let BalanceIn = 336064781 | |
11 | 11 | let BalanceOut = 20582766100 | |
12 | 12 | let weight_in = 200 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func test () = { | |
8 | 8 | let Scale8 = 100000000 | |
9 | - | let AmountIn = | |
9 | + | let AmountIn = 9800000 | |
10 | 10 | let BalanceIn = 336064781 | |
11 | 11 | let BalanceOut = 20582766100 | |
12 | 12 | let weight_in = 200 | |
13 | 13 | let weight_out = 4900 | |
14 | 14 | let a = fraction(BalanceOut, ((Scale8 * Scale8) - toInt(pow(fraction(toBigInt(BalanceIn), toBigInt((Scale8 * Scale8)), toBigInt((BalanceIn + AmountIn)), HALFUP), 16, toBigInt(fraction(weight_in, 10000, weight_out)), 4, 16, CEILING))), (Scale8 * Scale8), DOWN) | |
15 | 15 | throw(toString(a)) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 |
github/deemru/w8io/169f3d6 24.71 ms ◑