tx · DULhEepqHPeDVuZk5Wsy1PbcB9FjpbiKLZhztYG9BkVE 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves 2023.04.27 17:46 [2553105] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{ "type": 13, "id": "DULhEepqHPeDVuZk5Wsy1PbcB9FjpbiKLZhztYG9BkVE", "fee": 100000, "feeAssetId": null, "timestamp": 1682606809584, "version": 2, "chainId": 84, "sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat", "senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR", "proofs": [ "32BDiDdNpcNLJUhAiCFQwBPDi8chkFo77iRhshUhENVZc6PU9PcRT8s8pj3SirN1SXeXrpJJ3qa2CSJx4WAnwR9s" ], "script": "base64:BgIECAISAAABAWkBBHRlc3QABAZTY2FsZTgAgMLXLwQIQW1vdW50SW4AwJLWBAQJQmFsYW5jZUluAPDNjaADBApCYWxhbmNlT3V0AIydigYECXdlaWdodF9pbgCcMQQKd2VpZ2h0X291dADIAQQBYQkAbgQFCkJhbGFuY2VPdXQJAGUCCQBoAgUGU2NhbGU4BQZTY2FsZTgJAKADAQkAdgYJAL0CBAkAtgIBBQlCYWxhbmNlSW4JALYCAQkAaAIFBlNjYWxlOAUGU2NhbGU4CQC2AgEJAGQCBQlCYWxhbmNlSW4FCEFtb3VudEluBQZIQUxGVVAAEAkAtgIBCQBrAwUJd2VpZ2h0X2luAJBOBQp3ZWlnaHRfb3V0AAQAEAUHQ0VJTElORwkAaAIFBlNjYWxlOAUGU2NhbGU4BQRET1dOCQACAQkApAMBBQFhAM5QFcs=", "height": 2553105, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2cEZpQiYAQMWBBGi6i2e9LBG53y4HGQcxS8RwxWKF9cU Next: G58DYaNJy9NfB3zghV5NxKP1hL5Es1Uu4Fz4XUbZMpgX Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func test () = { | |
8 | 8 | let Scale8 = 100000000 | |
9 | 9 | let AmountIn = 9800000 | |
10 | - | let BalanceIn = | |
11 | - | let BalanceOut = | |
12 | - | let weight_in = | |
13 | - | let weight_out = | |
10 | + | let BalanceIn = 872638192 | |
11 | + | let BalanceOut = 12750476 | |
12 | + | let weight_in = 6300 | |
13 | + | let weight_out = 200 | |
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 | } |
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 | 9 | let AmountIn = 9800000 | |
10 | - | let BalanceIn = | |
11 | - | let BalanceOut = | |
12 | - | let weight_in = | |
13 | - | let weight_out = | |
10 | + | let BalanceIn = 872638192 | |
11 | + | let BalanceOut = 12750476 | |
12 | + | let weight_in = 6300 | |
13 | + | let weight_out = 200 | |
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/026f985 28.42 ms ◑