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:
OldNewDifferences
77 func test () = {
88 let Scale8 = 100000000
99 let AmountIn = 9800000
10- let BalanceIn = 336064781
11- let BalanceOut = 20582766100
12- let weight_in = 200
13- let weight_out = 4900
10+ let BalanceIn = 872638192
11+ let BalanceOut = 12750476
12+ let weight_in = 6300
13+ let weight_out = 200
1414 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)
1515 throw(toString(a))
1616 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func test () = {
88 let Scale8 = 100000000
99 let AmountIn = 9800000
10- let BalanceIn = 336064781
11- let BalanceOut = 20582766100
12- let weight_in = 200
13- let weight_out = 4900
10+ let BalanceIn = 872638192
11+ let BalanceOut = 12750476
12+ let weight_in = 6300
13+ let weight_out = 200
1414 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)
1515 throw(toString(a))
1616 }
1717
1818

github/deemru/w8io/026f985 
28.42 ms