New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@synthetixio/bfp-market

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synthetixio/bfp-market - npm Package Compare versions

Comparing version 0.0.0-dev.87e877bd8 to 0.0.0-dev.b5c915697

14

package.json
{
"name": "@synthetixio/bfp-market",
"version": "0.0.0-dev.87e877bd8",
"version": "0.0.0-dev.b5c915697",
"description": "L1 perp market implementation",

@@ -40,11 +40,11 @@ "publishConfig": {

"@openzeppelin/contracts": "4.9.3",
"@synthetixio/common-config": "0.0.0-dev.87e877bd8",
"@synthetixio/core-utils": "0.0.0-dev.87e877bd8",
"@synthetixio/common-config": "0.0.0-dev.b5c915697",
"@synthetixio/core-utils": "0.0.0-dev.b5c915697",
"@synthetixio/docgen": "1.0.0",
"@synthetixio/main": "0.0.0-dev.87e877bd8",
"@synthetixio/oracle-manager": "0.0.0-dev.87e877bd8",
"@synthetixio/main": "0.0.0-dev.b5c915697",
"@synthetixio/oracle-manager": "0.0.0-dev.b5c915697",
"@synthetixio/wei": "^2.74.4",
"@types/lodash": "^4.14.199",
"@types/mocha-each": "^2.0.1",
"@usecannon/cli": "2.17.1",
"@usecannon/cli": "2.20.1",
"ethers": "^5.7.2",

@@ -62,3 +62,3 @@ "hardhat": "^2.19.5",

},
"gitHead": "87e877bd8c59e3cbc0d7fea63aaac43b499ba1e1"
"gitHead": "b5c915697e1fb1f528b9908203a00f1e58cfd169"
}

@@ -1,4 +0,4 @@

# bfp-market
# BFP Market
**Welcome to bfp-market!**
### Intro

@@ -9,8 +9,8 @@ The _big ~~fucking~~ freaking perp market_ (or just BFP-Market) is a perpetual swap market, leveraging the capabilities of Synthetix v3 as its underlying infrastructure. bfp-market inherits core features from [v2x](https://github.com/Synthetixio/synthetix/tree/develop/contracts), such as dynamic funding rates, PD (Premium/Discount) adjusted market prices, and asynchronous hybrid oracle-based order executions through [Pyth](https://pyth.network/).

bfp-market's primary use case is to allow stable coin issuers, vaults, and other defi protocols to create a delta neutral perp, utilizing ETH and ETH LSTs as collateral. The end result is a new defi primitive that's yield bearing (through positive funding) and hyper-stable. All of this done completely decentralised and onchain.
bfp-market's primary use case is to allow stable coin issuers, vaults, and other DeFi protocols to create a delta neutral perp, utilizing ETH and ETH LSTs as collateral. The end result is a new defi primitive that's yield bearing (through positive funding) and hyper-stable. All of this done completely decentralised and onchain.
<p align="center">
<img src="./assets/overview.png">
</p>
### Docs
To find more information on how to integrate BFP you can check out the docs here: [L1 Perp (BFP) docs](https://docs.synthetix.io/v3/for-perp-integrators/l1-perp-bfp)
## Development

@@ -32,1 +32,8 @@

```
### Architecture
<p align="center">
<img src="./assets/overview.png" alt="Overview">
<img src="./assets/diagram.png" alt="Diagram">
</p>

@@ -230,2 +230,71 @@ {

}
],
"Runtime_cancelOrder": [
{
"type": "uint128",
"name": "accountId",
"size": 16,
"slot": "0",
"offset": 0
},
{
"type": "uint128",
"name": "marketId",
"size": 16,
"slot": "0",
"offset": 16
},
{
"type": "bool",
"name": "isStale",
"size": 1,
"slot": "1",
"offset": 0
},
{
"type": "bool",
"name": "isReady",
"size": 1,
"slot": "1",
"offset": 1
},
{
"type": "bool",
"name": "isMarketSolvent",
"size": 1,
"slot": "1",
"offset": 2
},
{
"type": "struct",
"name": "order",
"members": [
{
"type": "int128",
"name": "sizeDelta"
},
{
"type": "uint64",
"name": "commitmentTime"
},
{
"type": "uint256",
"name": "limitPrice"
},
{
"type": "uint128",
"name": "keeperFeeBufferUsd"
},
{
"type": "array",
"name": "hooks",
"value": {
"type": "address"
}
}
],
"size": 128,
"slot": "2",
"offset": 0
}
]

@@ -232,0 +301,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc