
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@stove-labs/arbitrage-bot-accountant
Advanced tools
This repository is related to the core library of the arbitrage bot.
The accountant is a plugin that retrieves balances for any given native or token contract. This is used to keep track of balance changes before and after arbitrage is performed.
Every token contract follows its own implementation of a token standard. Therefore it is not a viable approach to read the account ballance entry from a ledger Big_map
, because we would need to be aware of each and every token implementation.
Tezos token FA1.2 TZIP-7 and FA2TZIP-12 have on-chain view entrypoints
that usually get called by other smart contracts to get the total_supply
of token_balance
for a given account address. The result is returned through an operation as callback to the caller.
Fortunately, recent protocol upgrades on Tezos have provided a way to call those view entrypoints
through the node without the need of injecting any on-chain operation when using the run_view
endpoint. Taquito SDK
abstracts this and makes this feature easily available to dApp developers.
// src/accountant.ts
// FA1.2 getBalance as defined in TZIP-7
await tokenContractInstance.views.getBalance(botAddress).read()
// FA2 balance_of as defined in TZIP-12
await tokenContractInstance.views.balance_of(
[
{ owner: botAddress, token_id: tokenId },
]
).read()
FAQs
accounting for tezos balances
We found that @stove-labs/arbitrage-bot-accountant demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.