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:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let SEP = "__"
4+let amountAssetIdKey = "amountAssetId"
55
6-func keyBalance (assetId) = makeString(["%s%s", "bal", assetId], SEP)
6+let priceAssetIdKey = "priceAssetId"
7+
8+let amountAssetId = fromBase58String(getStringValue(this, amountAssetIdKey))
9+
10+let priceAssetId = fromBase58String(getStringValue(this, priceAssetIdKey))
11+
12+let SCALE8 = 100000000
13+
14+let feeAmount = fraction(5, SCALE8, 100)
15+
16+func bar () = feeAmount
717
818
919 @Callable(i)
10-func put (amountAssetId,amountAssetAmount,priceAssetId,priceAssetAmount) = {
11- let poolAddress = i.caller
12- let result = [invoke(poolAddress, "integerEntry", [keyBalance(amountAssetId), amountAssetAmount], nil), invoke(poolAddress, "integerEntry", [keyBalance(priceAssetId), priceAssetAmount], nil)]
13- if ((result == result))
14- then $Tuple2(nil, nil)
15- else throw("Strict value is not equal to itself.")
16- }
20+func foo () = $Tuple2(nil, bar())
1721
1822

github/deemru/w8io/169f3d6 
36.11 ms