tx · Uweb62BE8nyR5CdxBREUg6iAFNC7dWLpCDeb7WTubFd
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.17 17:14 [2582065] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "Uweb62BE8nyR5CdxBREUg6iAFNC7dWLpCDeb7WTubFd",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684332971327,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"4JodycndqTNcnvzTvKZvaurZh2DBC6T73Hb2e5cvwWh9KJYpqCz88Ex1A97W7zV5TGE9k343Vt9qnC3VcoKUBik7"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAQZGVmaW5lZExpcXVpZGl0eQAAAAAEAAAACXRva2VuTmFtZQIAAAAPTGlxdWlkaXR5IFRva2VuBAAAAAt0b2tlblN5bWJvbAIAAAADTFFUBAAAAAhkZWNpbWFscwAAAAAAAAAACAQAAAANaW5pdGlhbFN1cHBseQAAAAAAO5rKAAQAAAAJJHQwMzM2NDM4CQAFFAAAAAIJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAZhc3NldDAIBQAAAAkkdDAzMzY0MzgAAAACXzEEAAAAB2Ftb3VudDAIBQAAAAkkdDAzMzY0MzgAAAACXzIEAAAACSR0MDQzOTU2OAkABRQAAAACCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAA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mVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXngV2VX",
"height": 2582065,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6nGreWjVzHWQjw1UPdk8GhnNwKVZgfrVbZ4ccypUGAkf
Next: F2QYekQkKhncyXz8SKqjfGa6SvG7NhV4S3QHGDh3e4aG
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 6 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func f () = nil |
---|
| 7 | + | func definedLiquidity () = { |
---|
| 8 | + | let b = "Liquidity Token" |
---|
| 9 | + | let c = "LQT" |
---|
| 10 | + | let d = 8 |
---|
| 11 | + | let e = 1000000000 |
---|
| 12 | + | let f = $Tuple2(toBase58String(value(a.payments[0].assetId)), value(a.payments[0].amount)) |
---|
| 13 | + | let g = f._1 |
---|
| 14 | + | let h = f._2 |
---|
| 15 | + | let i = $Tuple2(toBase58String(value(a.payments[1].assetId)), value(a.payments[1].amount)) |
---|
| 16 | + | let j = i._1 |
---|
| 17 | + | let k = i._2 |
---|
| 18 | + | let l = assetBalance(this, value(a.payments[0].assetId)) |
---|
| 19 | + | let m = assetBalance(this, value(a.payments[1].assetId)) |
---|
| 20 | + | let n = if (if ((h != 0)) |
---|
| 21 | + | then true |
---|
| 22 | + | else (k != 0)) |
---|
| 23 | + | then (l * m) |
---|
| 24 | + | else throw("liquidity undifined") |
---|
| 25 | + | let o = if (if ((h == 0)) |
---|
| 26 | + | then true |
---|
| 27 | + | else (k == 0)) |
---|
| 28 | + | then 0 |
---|
| 29 | + | else ((h * k) / n) |
---|
| 30 | + | let p = [Issue(b, c, o, d, true)] |
---|
| 31 | + | nil |
---|
| 32 | + | } |
---|
8 | 33 | | |
---|
9 | 34 | | |
---|
10 | | - | @Verifier(b) |
---|
11 | | - | func c () = sigVerify(b.bodyBytes, b.proofs[0], b.senderPublicKey) |
---|
| 35 | + | @Verifier(q) |
---|
| 36 | + | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
12 | 37 | | |
---|