Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@dydxprotocol/perpetual
Advanced tools
Ethereum Smart Contracts and TypeScript library used for the dYdX Perpetual Contracts
Ethereum Smart Contracts and TypeScript client library for the dYdX Perpetual Contracts Protocol. Currently used by trade.dydx.exchange.
Full Documentation at docs.dydx.exchange.
Check out our full documentation at docs.dydx.exchange:
npm i -s @dydxprotocol/perpetual
Contract Name | Description | Address |
---|---|---|
PerpetualProxy | Proxy contract and entrypoint for the core protocol | 0x07aBe965500A49370D331eCD613c7AC47dD6e547 |
PerpetualV1 | Upgradeable logic contract for the core protocol | 0xE883b3efdaE637fC599b467478a23199778F2cCf |
P1FundingOracle | Funding rate oracle | 0x4525D2B71f7f018c9EBddFcD336852A85404e75B |
P1MakerOracle | Price oracle | 0x538038E526517680735568f9C5342c6E68bbDA12 |
P1Orders | Trader contract for limit and stop-limit orders | 0x3ea6F88eC8F7b24Bb3Ad206fa80124210e8e28F3 |
P1Liquidation | Trader contract for liquidations | 0x18Ba3F12f9d3699dE7D451cA97ED55Cd33DD0f80 |
P1LiquidationProxy | Proxy contract for doing liquidations that contribute to an insurance fund | 0x51C72bEfAe54D365A9D0C08C486aee4F99285e08 |
P1Deleveraging | Trader contract for deleveraging | 0xa4e4A9ae84882BE5049E450A3500ba1CD012F0C5 |
The smart contracts were audited independently by
Zeppelin Solutions at commit c5e2b0e
, excluding P1Orders.sol
.
Zeppelin Solutions Audit Report
All production smart contracts are tested and have 100% line and branch coverage.
The disclosure of security vulnerabilities helps us ensure the security of our users.
How to report a security vulnerability?
If you believe you’ve found a security vulnerability in one of our contracts or platforms, send it to us by emailing security@dydx.exchange. Please include the following details with your report:
A description of the location and potential impact of the vulnerability.
A detailed description of the steps required to reproduce the vulnerability.
Scope
Any vulnerability not previously disclosed by us or our independent auditors in their reports.
Guidelines
We require that all reporters:
Make every effort to avoid privacy violations, degradation of user experience, disruption to production systems, and destruction of data during security testing.
Use the identified communication channels to report vulnerability information to us.
Keep information about any vulnerabilities you’ve discovered confidential between yourself and dYdX until we’ve had 30 days to resolve the issue.
If you follow these guidelines when reporting an issue to us, we commit to:
Not pursue or support any legal action related to your findings.
Work with you to understand and resolve the issue quickly (including an initial confirmation of your report within 72 hours of submission).
Grant a monetary reward based on the OWASP risk assessment methodology.
Requires a running docker engine.
npm run build
npm run build:js
Requires a running docker engine.
Start test node:
docker-compose up
Deploy contracts to test node & run tests:
npm test
Just run tests (contracts must already be deployed to test node):
npm run test_only
Just deploy contracts to test node:
npm run deploy_test
Brendan Chou
@brendanchou
brendan@dydx.exchange
Ken Schiller
@kenadia
ken@dydx.exchange
FAQs
Ethereum Smart Contracts and TypeScript library used for the dYdX Perpetual Contracts
The npm package @dydxprotocol/perpetual receives a total of 37 weekly downloads. As such, @dydxprotocol/perpetual popularity was classified as not popular.
We found that @dydxprotocol/perpetual demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.