tx · 5k1eLhPys22frWwHscFoJTVBeAoUUdFLGHdZzemhKK67 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves 2023.04.27 17:34 [2553096] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{ "type": 13, "id": "5k1eLhPys22frWwHscFoJTVBeAoUUdFLGHdZzemhKK67", "fee": 100000, "feeAssetId": null, "timestamp": 1682606047928, "version": 2, "chainId": 84, "sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat", "senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR", "proofs": [ "2FB3LwVRm3dHDRLjqFFXEi36c3wfn4PQUjgdvtzEzNxshmQp7pKSEbCbVCZJirJ8TLmuXaEG4XiBESxZ1BUVaa1c" ], "script": "base64:BgIECAISAAABAWkBBHRlc3QABAZTY2FsZTgAgMLXLwQIQW1vdW50SW4AgK3iBAQJQmFsYW5jZUluAAAECkJhbGFuY2VPdXQAAAQJd2VpZ2h0X2luAAAECndlaWdodF9vdXQAAAQBYQkAbgQFCkJhbGFuY2VPdXQJAGUCCQBoAgUGU2NhbGU4BQZTY2FsZTgJAKADAQkAdgYJAL0CBAkAtgIBBQlCYWxhbmNlSW4JALYCAQkAaAIFBlNjYWxlOAUGU2NhbGU4CQC2AgEJAGQCBQlCYWxhbmNlSW4FCEFtb3VudEluBQZIQUxGVVAAEAkAtgIBCQBrAwUJd2VpZ2h0X2luAJBOBQp3ZWlnaHRfb3V0AAQAEAUHQ0VJTElORwkAaAIFBlNjYWxlOAUGU2NhbGU4BQRET1dOCQACAQkApAMBBQFhAAzWYk0=", "height": 2553096, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2schJ3BFWf1socztwrsHZqjzjrEnMZVTxeJe18TvA3nv Next: EBPuhDnMYRgC3sMxtZVVTpTGULtQSf3wVPDXx7BUqtYR Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func pay_tax () = nil | |
7 | + | func test () = { | |
8 | + | let Scale8 = 100000000 | |
9 | + | let AmountIn = 10000000 | |
10 | + | let BalanceIn = 0 | |
11 | + | let BalanceOut = 0 | |
12 | + | let weight_in = 0 | |
13 | + | let weight_out = 0 | |
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 | + | throw(toString(a)) | |
16 | + | } | |
8 | 17 | ||
9 | 18 |
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 | - | func pay_tax () = nil | |
7 | + | func test () = { | |
8 | + | let Scale8 = 100000000 | |
9 | + | let AmountIn = 10000000 | |
10 | + | let BalanceIn = 0 | |
11 | + | let BalanceOut = 0 | |
12 | + | let weight_in = 0 | |
13 | + | let weight_out = 0 | |
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 | + | throw(toString(a)) | |
16 | + | } | |
8 | 17 | ||
9 | 18 |
github/deemru/w8io/169f3d6 22.51 ms ◑