tx · 6YcR27CptyXxqr7GxFUNuTM8g9Ss5Qvbki3Fno95Ndew 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves 2023.05.18 22:20 [2583799] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{ "type": 13, "id": "6YcR27CptyXxqr7GxFUNuTM8g9Ss5Qvbki3Fno95Ndew", "fee": 100000, "feeAssetId": null, "timestamp": 1684437637413, "version": 2, "chainId": 84, "sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat", "senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR", "proofs": [ "2SYs3xbsKg2uGJL3WDvE7FnxuNgfiPnjC7M8uijQPqQCyxNR3DESDwGeEVsSHSvLDEZkdWQ4MrNiZjGcXPqzA78g" ], "script": "base64:BgIECAISAAABAWkBB2RlZmF1bHQACQDMCAIJAQtTdHJpbmdFbnRyeQICBEJ1YmkCBEd1ZmkFA25pbACtOrqy", "height": 2583799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G58DYaNJy9NfB3zghV5NxKP1hL5Es1Uu4Fz4XUbZMpgX Next: 8XoxPNd4zk2JFwVwHooxVvi1br84SQpvzLbg9DjQ7hZc Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func test () = { | |
8 | - | let Scale8 = 100000000 | |
9 | - | let AmountIn = 9800000 | |
10 | - | let BalanceIn = 336064781 | |
11 | - | let BalanceOut = 20582766100 | |
12 | - | let weight_in = 200 | |
13 | - | let weight_out = 4900 | |
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 | - | } | |
17 | - | ||
18 | - | ||
19 | - | ||
20 | - | @Callable(i) | |
21 | - | func test2 () = { | |
22 | - | let weight_in = 200 | |
23 | - | let weight_out = 4900 | |
24 | - | let res = fraction(weight_in, 10000, weight_out) | |
25 | - | throw(toString(res)) | |
26 | - | } | |
7 | + | func default () = [StringEntry("Bubi", "Gufi")] | |
27 | 8 | ||
28 | 9 |
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 test () = { | |
8 | - | let Scale8 = 100000000 | |
9 | - | let AmountIn = 9800000 | |
10 | - | let BalanceIn = 336064781 | |
11 | - | let BalanceOut = 20582766100 | |
12 | - | let weight_in = 200 | |
13 | - | let weight_out = 4900 | |
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 | - | } | |
17 | - | ||
18 | - | ||
19 | - | ||
20 | - | @Callable(i) | |
21 | - | func test2 () = { | |
22 | - | let weight_in = 200 | |
23 | - | let weight_out = 4900 | |
24 | - | let res = fraction(weight_in, 10000, weight_out) | |
25 | - | throw(toString(res)) | |
26 | - | } | |
7 | + | func default () = [StringEntry("Bubi", "Gufi")] | |
27 | 8 | ||
28 | 9 |
github/deemru/w8io/026f985 25.93 ms ◑