
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@getsafle/quickswap-controller
Advanced tools
This SDK houses the functions to interact with the Quickswap Contracts.
To install this SDK,
npm install --save @getsafle/quickswap-controller
Initialize the constructor,
const Quickswap = require('@getsafle/quickswap-controller');
const controller = new Quickswap(chain);
Get supported tokens
This function will give us the list of all tokens supported by Quickswap.
await controller.getSupportedTokens()
Get Exchange Rate
This will give us the exchange rate of 2 tokens.
Amount of fromContractAddress the user will receive for fromQuantity of toContractAddress.
await controller.getExchangeRate({ toContractAddress, toContractDecimal, fromContractAddress, fromContractDecimal, fromQuantity, slippageTolerance, walletAddress })
Get Estimated gas
This will give us the estimated amount of gas needed to do the swap.
await controller.getEstimatedGas({ toContractAddress, toContractDecimal, fromContractAddress, fromContractDecimal, fromQuantity, slippageTolerance, walletAddress })
Get Raw Transaction
This will give us the raw transaction to swap the tokens on quickswap.
await controller.getRawTransaction({ walletAddress, toContractAddress, toContractDecimal, fromContractAddress, fromContractDecimal, toQuantity, fromQuantity, slippageTolerance })
Get Approval Transaction
This function will call the approval smart contract function to approve spending fromQuantity for the fromContractAddress from the walletAddress.
await controller.approvalRawTransaction({ fromContractAddress, walletAddress, fromQuantity })
FAQs
Quickswap controller for safle token swaps
The npm package @getsafle/quickswap-controller receives a total of 3 weekly downloads. As such, @getsafle/quickswap-controller popularity was classified as not popular.
We found that @getsafle/quickswap-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.