tx · C7EPVqSSvcAYKTb9svKfhxLHrXxda1h2WLESu1Q9MmzJ
3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq: -0.01000000 Waves
2023.10.02 09:47 [2780675] smart account 3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq > SELF 0.00000000 Waves
{
"type": 13,
"id": "C7EPVqSSvcAYKTb9svKfhxLHrXxda1h2WLESu1Q9MmzJ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1696229278272,
"version": 2,
"chainId": 84,
"sender": "3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq",
"senderPublicKey": "HdwFH8HPYu3HG27yK6bszu1CdR4uik4HgzyTimeSfcYf",
"proofs": [
"4JAReHJkuB712JjX8E6Hs73LujxxPXMdSJKKArbgCEAKfT9miJ4UvMHCL37G88Pce6N7QARADEb5a3Jszkzqdz7p"
],
"script": "base64:BgIKCAISBgoECAEIAQIAA1NFUAICX18BCmtleUJhbGFuY2UBB2Fzc2V0SWQJALkJAgkAzAgCAgMlcyUJAMwIAgIDYmFsCQDMCAIFB2Fzc2V0SWQFA25pbAUDU0VQAQFpAQNwdXQEDWFtb3VudEFzc2V0SWQRYW1vdW50QXNzZXRBbW91bnQMcHJpY2VBc3NldElkEHByaWNlQXNzZXRBbW91bnQEC3Bvb2xBZGRyZXNzCAUBaQZjYWxsZXIEBnJlc3VsdAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBCmtleUJhbGFuY2UBBQ1hbW91bnRBc3NldElkBRFhbW91bnRBc3NldEFtb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBCmtleUJhbGFuY2UBBQxwcmljZUFzc2V0SWQFEHByaWNlQXNzZXRBbW91bnQFA25pbAkAlAoCBQNuaWwFBnJlc3VsdABsErg7",
"height": 2780675,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: DZqKsbo7ptiXiZg3nv4mFYDDmivReXwyZDBYBT4PkDoY
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let SEP = "__" |
---|
| 5 | + | |
---|
| 6 | + | func keyBalance (assetId) = makeString(["%s%", "bal", assetId], SEP) |
---|
| 7 | + | |
---|
| 8 | + | |
---|
| 9 | + | @Callable(i) |
---|
| 10 | + | func put (amountAssetId,amountAssetAmount,priceAssetId,priceAssetAmount) = { |
---|
| 11 | + | let poolAddress = i.caller |
---|
| 12 | + | let result = [IntegerEntry(keyBalance(amountAssetId), amountAssetAmount), IntegerEntry(keyBalance(priceAssetId), priceAssetAmount)] |
---|
| 13 | + | $Tuple2(nil, result) |
---|
| 14 | + | } |
---|
| 15 | + | |
---|
| 16 | + | |
---|