Skip to content

Commit

Permalink
chore: add both spot & perp products
Browse files Browse the repository at this point in the history
Signed-off-by: GopherJ <[email protected]>
  • Loading branch information
0x8f701 committed Dec 5, 2023
1 parent 944b876 commit 54bdf36
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions scripts/deployments/steps/25_vertex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import {
deployVertexFeeCalculator,
deployVertexMockSanctionsList,
deployVertexOffchainBookWithoutInitializing,
deployVertexPerpEngineProxy,
deployVertexPerpEngineWithoutInitializing,
deployVertexSpotEngineProxy,
deployVertexSpotEngineWithoutInitializing,
} from "../../../helpers/contracts-deployments";
import {getAllTokens, getFirstSigner} from "../../../helpers/contracts-getters";
Expand Down Expand Up @@ -79,6 +77,35 @@ export const step_25 = async (verify = false) => {

const maxHealthGroup = await clearinghouse.getMaxHealthGroup();
const vertexConfigs: IVertexMarketConfig[] = [
// BTC-spot
{
healthGroup: maxHealthGroup.toString(),
riskStore: {
longWeightInitial: "900000000",
shortWeightInitial: "1100000000",
longWeightMaintenance: "950000000",
shortWeightMaintenance: "1050000000",
largePositionPenalty: "0",
},
interestRateConfig: {
token: allTokens[ERC20TokenContractId.WBTC].address,
interestInflectionUtilX18: "800000000000000000",
interestFloorX18: "10000000000000000",
interestSmallCapX18: "40000000000000000",
interestLargeCapX18: "1000000000000000000",
},
book: (
await deployVertexOffchainBookWithoutInitializing(
ZERO_ADDRESS,
verify
)
).address,
sizeIncrement: "1000000000000000",
priceIncrementX18: "1000000000000000000",
minSize: "0",
lpSpreadX18: "3000000000000000",
},
// BTC-perp
{
healthGroup: maxHealthGroup.toString(),
riskStore: {
Expand Down

0 comments on commit 54bdf36

Please sign in to comment.