tx · BXjnq6WGEmsAtWV4ZdkCro6t1a2SdQxpkenhiycYo5yw
3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq: -0.01000000 Waves
2024.03.04 10:40 [3002967] smart account 3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq > SELF 0.00000000 Waves
{
"type": 13,
"id": "BXjnq6WGEmsAtWV4ZdkCro6t1a2SdQxpkenhiycYo5yw",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1709538016570,
"version": 2,
"chainId": 84,
"sender": "3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq",
"senderPublicKey": "HdwFH8HPYu3HG27yK6bszu1CdR4uik4HgzyTimeSfcYf",
"proofs": [
"4MXZ9UBZqCJur4pRwQUaVkH834xVwfEsajLRNkTXVNqAMKdF2Pk4ph42s8k51tcKYNDCDBve8pUunWZk1gFCJG5r"
],
"script": "base64:BgIECAISAAcAEGFtb3VudEFzc2V0SWRLZXkCDWFtb3VudEFzc2V0SWQAD3ByaWNlQXNzZXRJZEtleQIMcHJpY2VBc3NldElkAA1hbW91bnRBc3NldElkCQDZBAEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMFEGFtb3VudEFzc2V0SWRLZXkADHByaWNlQXNzZXRJZAkA2QQBCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzBQ9wcmljZUFzc2V0SWRLZXkABlNDQUxFOACAwtcvAAlmZWVBbW91bnQJAGsDAAUFBlNDQUxFOABkAQNiYXIABQlmZWVBbW91bnQBAWkBA2ZvbwAJAJQKAgUDbmlsCQEDYmFyAAD4q334",
"height": 3002967,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DXzoptuEYy9ztdi1JdQdUswNYLumRT4jJcL8tUmz8n7d
Next: EHuEL5dcBNBhVagcpHh7GsSmdu4eusog8FgiuB7EvUw2
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = "__" |
---|
| 4 | + | let a = "amountAssetId" |
---|
5 | 5 | | |
---|
6 | | - | func b (c) = makeString(["%s%s", "bal", c], a) |
---|
| 6 | + | let b = "priceAssetId" |
---|
| 7 | + | |
---|
| 8 | + | let c = fromBase58String(getStringValue(this, a)) |
---|
| 9 | + | |
---|
| 10 | + | let d = fromBase58String(getStringValue(this, b)) |
---|
| 11 | + | |
---|
| 12 | + | let e = 100000000 |
---|
| 13 | + | |
---|
| 14 | + | let f = fraction(5, e, 100) |
---|
| 15 | + | |
---|
| 16 | + | func g () = f |
---|
7 | 17 | | |
---|
8 | 18 | | |
---|
9 | | - | @Callable(d) |
---|
10 | | - | func put (e,f,g,h) = { |
---|
11 | | - | let i = d.caller |
---|
12 | | - | let j = [invoke(i, "integerEntry", [b(e), f], nil), invoke(i, "integerEntry", [b(g), h], nil)] |
---|
13 | | - | if ((j == j)) |
---|
14 | | - | then $Tuple2(nil, nil) |
---|
15 | | - | else throw("Strict value is not equal to itself.") |
---|
16 | | - | } |
---|
| 19 | + | @Callable(h) |
---|
| 20 | + | func foo () = $Tuple2(nil, g()) |
---|
17 | 21 | | |
---|
18 | 22 | | |
---|