tx · BetErnQtvuV2VGihGaHyTiqo1ywUJUQdcrfSZdYBLnhH
3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3: -0.00100000 Waves
2022.08.08 23:29 [2175963] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BetErnQtvuV2VGihGaHyTiqo1ywUJUQdcrfSZdYBLnhH",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1659990644140,
"version": 2,
"chainId": 84,
"sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3",
"senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE",
"proofs": [
"2arLdgr97vXovpBqeMsWat4VuqsnwGtJ6YjjJy9in5x7M3fxaoFqe9HabZc8F4UFUFRb7gQLPuD7g734fQt1uqVu"
],
"script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBXByaWNlCQB2BgkAtgIBAAEAAAkAtgIBBQhNQVhfVElDSwAAABIFBkhBTEZVUAkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQICBHRlc3QJANoEAQkAnQMBBQVwcmljZQUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAan9Ub8",
"height": 2175963,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Hao2VRs3MkcUxuNLuRSteBZ8tWN73pnXu3k23qZS6GpY
Next: D6TwvKUrb5E4pqCxAzJcXdpCEex781XSLcNRP3WHxBnN
Diff:
Old | New | | Differences |
---|
15 | 15 | | else unit |
---|
16 | 16 | | if ((err == err)) |
---|
17 | 17 | | then { |
---|
18 | | - | let price = pow(toBigInt(1000100000000000000), 18, toBigInt(MAX_TICK), 0, 18, HALFUP) |
---|
| 18 | + | let price = pow(toBigInt(1), 0, toBigInt(MAX_TICK), 0, 18, HALFUP) |
---|
19 | 19 | | $Tuple2([StringEntry("test", toBase64String(toBytes(price)))], unit) |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Strict value is not equal to itself.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let MIN_TICK = -887272 |
---|
5 | 5 | | |
---|
6 | 6 | | let MAX_TICK = -(MIN_TICK) |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func getSqrtRatioAtTick (tick) = { |
---|
10 | 10 | | let absTick = if ((0 > tick)) |
---|
11 | 11 | | then (tick * -1) |
---|
12 | 12 | | else tick |
---|
13 | 13 | | let err = if ((tick > MAX_TICK)) |
---|
14 | 14 | | then throw("invalid tick") |
---|
15 | 15 | | else unit |
---|
16 | 16 | | if ((err == err)) |
---|
17 | 17 | | then { |
---|
18 | | - | let price = pow(toBigInt(1000100000000000000), 18, toBigInt(MAX_TICK), 0, 18, HALFUP) |
---|
| 18 | + | let price = pow(toBigInt(1), 0, toBigInt(MAX_TICK), 0, 18, HALFUP) |
---|
19 | 19 | | $Tuple2([StringEntry("test", toBase64String(toBytes(price)))], unit) |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Strict value is not equal to itself.") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = true |
---|
27 | 27 | | |
---|