Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gearbox-protocol/integrations-v3

Package Overview
Dependencies
Maintainers
10
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gearbox-protocol/integrations-v3 - npm Package Compare versions

Comparing version 1.36.0 to 1.37.0

contracts/adapters/camelot/CamelotV3Adapter.sol

537

dist/test_usdcConfigMainnet.js

@@ -6,93 +6,28 @@ "use strict";

const POOL_DIVIDER = BigInt(1);
const levUniV2Config = {
contract: "UNISWAP_V2_ROUTER",
allowed: [
{ token0: "WETH", token1: "USDT" },
{ token0: "USDC", token1: "WETH" },
{ token0: "USDC", token1: "USDT" },
{ token0: "DAI", token1: "USDC" },
{ token0: "DAI", token1: "WETH" },
{ token0: "FXS", token1: "FRAX" },
{ token0: "WBTC", token1: "WETH" },
],
};
const levUniV3Config = {
contract: "UNISWAP_V3_ROUTER",
allowed: [
{ token0: "SNX", token1: "WETH", fee: 3000 },
{ token0: "WBTC", token1: "WETH", fee: 500 },
{ token0: "DAI", token1: "WETH", fee: 500 },
{ token0: "WBTC", token1: "WETH", fee: 3000 },
{ token0: "DAI", token1: "WETH", fee: 3000 },
{ token0: "USDC", token1: "WETH", fee: 500 },
{ token0: "LDO", token1: "WETH", fee: 3000 },
{ token0: "USDC", token1: "WETH", fee: 10000 },
{ token0: "LDO", token1: "WETH", fee: 10000 },
{ token0: "LQTY", token1: "WETH", fee: 3000 },
{ token0: "FXS", token1: "WETH", fee: 10000 },
{ token0: "USDC", token1: "WETH", fee: 3000 },
{ token0: "DAI", token1: "WETH", fee: 10000 },
{ token0: "WETH", token1: "USDT", fee: 3000 },
{ token0: "FRAX", token1: "USDT", fee: 500 },
{ token0: "WETH", token1: "USDT", fee: 500 },
{ token0: "USDC", token1: "USDT", fee: 500 },
{ token0: "WBTC", token1: "USDT", fee: 3000 },
{ token0: "WETH", token1: "USDT", fee: 10000 },
{ token0: "DAI", token1: "USDT", fee: 100 },
{ token0: "USDC", token1: "USDT", fee: 10000 },
{ token0: "USDC", token1: "USDT", fee: 3000 },
{ token0: "FXS", token1: "USDT", fee: 3000 },
{ token0: "USDC", token1: "USDT", fee: 100 },
{ token0: "LUSD", token1: "USDC", fee: 500 },
{ token0: "FRAX", token1: "USDC", fee: 100 },
{ token0: "LUSD", token1: "USDC", fee: 3000 },
{ token0: "FRAX", token1: "USDC", fee: 500 },
{ token0: "DAI", token1: "USDC", fee: 500 },
{ token0: "WBTC", token1: "USDC", fee: 3000 },
{ token0: "LDO", token1: "USDC", fee: 10000 },
{ token0: "WBTC", token1: "USDC", fee: 10000 },
{ token0: "WBTC", token1: "USDC", fee: 500 },
{ token0: "DAI", token1: "USDC", fee: 100 },
{ token0: "WBTC", token1: "LQTY", fee: 10000 },
{ token0: "DAI", token1: "FRAX", fee: 500 },
{ token0: "FXS", token1: "FRAX", fee: 10000 },
{ token0: "WBTC", token1: "DAI", fee: 3000 },
{ token0: "FXS", token1: "CVX", fee: 3000 },
{ token0: "CVX", token1: "CRV", fee: 10000 },
{ token0: "WETH", token1: "CRV", fee: 3000 },
{ token0: "WETH", token1: "CRV", fee: 10000 },
{ token0: "WETH", token1: "CVX", fee: 10000 },
{ token0: "SNX", token1: "USDC", fee: 10000 },
{ token0: "OHM", token1: "USDC", fee: 3000 },
{ token0: "WETH", token1: "LINK", fee: 3000 },
],
};
const levSushiswapConfig = {
contract: "SUSHISWAP_ROUTER",
allowed: [
{ token0: "WBTC", token1: "WETH" },
{ token0: "WETH", token1: "USDT" },
{ token0: "USDC", token1: "WETH" },
{ token0: "DAI", token1: "WETH" },
{ token0: "WETH", token1: "FXS" },
{ token0: "LDO", token1: "WETH" },
{ token0: "CVX", token1: "WETH" },
{ token0: "CRV", token1: "WETH" },
{ token0: "SNX", token1: "WETH" },
],
};
const levBalancerConfig = {
contract: "BALANCER_VAULT",
allowed: [
const levCreditManager = {
name: "Test Credit Manager",
degenNft: false,
expirationDate: undefined,
minDebt: (BigInt(5e4) * POOL_DECIMALS) / POOL_DIVIDER,
maxDebt: (BigInt(1e6) * POOL_DECIMALS) / POOL_DIVIDER,
feeInterest: 2500,
feeLiquidation: 150,
liquidationPremium: 400,
feeLiquidationExpired: 100,
liquidationPremiumExpired: 200,
poolLimit: (BigInt(5e6) * POOL_DECIMALS) / POOL_DIVIDER,
collateralTokens: [
{
pool: "50OHM_50DAI",
status: 2,
token: "USDe",
lt: 9000,
},
// Compatibility
{
pool: "B_rETH_STABLE",
status: 1,
token: "USDeUSDC",
lt: 0,
},
],
adapters: [
{
pool: "USDC_DAI_USDT",
status: 1,
contract: "CURVE_USDE_USDC_POOL",
},

@@ -107,3 +42,3 @@ ],

underlying: "USDC",
accountAmount: BigInt(1000000) * POOL_DECIMALS,
accountAmount: BigInt(100000) * POOL_DECIMALS,
withdrawalFee: 0,

@@ -115,4 +50,4 @@ totalDebtLimit: BigInt(100000000) * POOL_DECIMALS,

Rbase: 0,
Rslope1: 150,
Rslope2: 400,
Rslope1: 100,
Rslope2: 125,
Rslope3: 10000,

@@ -122,423 +57,11 @@ isBorrowingMoreU2Forbidden: true,

ratesAndLimits: {
WETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
USDe: {
minRate: 4,
maxRate: 1500,
quotaIncreaseFee: 1,
limit: (BigInt(10e6) * POOL_DECIMALS) / POOL_DIVIDER,
},
STETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
wstETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
rETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
WBTC: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
LINK: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
aDAI: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cLINK: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
sDAI: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
YieldETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
DAI: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
USDT: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
FRAX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
GUSD: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
LUSD: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
rETH_f: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
steCRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvxsteCRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvxsteCRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
"3Crv": {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvx3Crv: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvx3Crv: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
FRAX3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvxFRAX3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvxFRAX3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
LUSD3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvxLUSD3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvxLUSD3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
gusd3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvxgusd3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvxgusd3CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
crvFRAX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
cvxcrvFRAX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
stkcvxcrvFRAX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
USDC_DAI_USDT: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
B_rETH_STABLE: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
auraB_rETH_STABLE: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
auraB_rETH_STABLE_vault: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvDAI: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvUSDC: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvWETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvWBTC: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvCurve_stETH: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
yvCurve_FRAX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
CVX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
FXS: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
LQTY: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
CRV: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
LDO: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
SNX: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
BAL: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
AURA: {
minRate: 1,
maxRate: 3000,
quotaIncreaseFee: 25,
limit: (BigInt(1e7) * POOL_DECIMALS) / POOL_DIVIDER,
},
},
creditManagers: [
{
name: "Farm USDC v3",
degenNft: false,
expirationDate: undefined,
minDebt: (BigInt(1e4) * POOL_DECIMALS) / POOL_DIVIDER,
maxDebt: (BigInt(1e6) * POOL_DECIMALS) / POOL_DIVIDER,
feeInterest: 2500,
feeLiquidation: 150,
liquidationPremium: 400,
feeLiquidationExpired: 100,
liquidationPremiumExpired: 200,
poolLimit: (BigInt(20000000) * POOL_DECIMALS) / POOL_DIVIDER,
collateralTokens: [
{ token: "WETH", lt: 8500 },
{ token: "STETH", lt: 8250 },
{ token: "wstETH", lt: 8250 },
{ token: "rETH", lt: 8250 },
{ token: "WBTC", lt: 8500 },
{ token: "LINK", lt: 8000 },
{ token: "aDAI", lt: 9200 },
{ token: "cLINK", lt: 8500 },
{ token: "sDAI", lt: 9200 },
{ token: "OHM", lt: 8250 },
{ token: "DAI", lt: 9200 },
{ token: "USDT", lt: 9000 },
{ token: "FRAX", lt: 9000 },
{ token: "LUSD", lt: 9000 },
{ token: "rETH_f", lt: 8250 },
{ token: "crvUSDTWBTCWETH", lt: 8250 },
{ token: "steCRV", lt: 8250 },
{ token: "cvxsteCRV", lt: 8250 },
{ token: "stkcvxsteCRV", lt: 8250 },
{ token: "3Crv", lt: 9000 },
{ token: "cvx3Crv", lt: 9000 },
{ token: "stkcvx3Crv", lt: 9000 },
{ token: "FRAX3CRV", lt: 9000 },
{ token: "cvxFRAX3CRV", lt: 9000 },
{ token: "stkcvxFRAX3CRV", lt: 9000 },
{ token: "LUSD3CRV", lt: 9000 },
{ token: "cvxLUSD3CRV", lt: 9000 },
{ token: "stkcvxLUSD3CRV", lt: 9000 },
{ token: "gusd3CRV", lt: 9000 },
{ token: "cvxgusd3CRV", lt: 9000 },
{ token: "stkcvxgusd3CRV", lt: 9000 },
{ token: "crvFRAX", lt: 9000 },
{ token: "cvxcrvFRAX", lt: 9000 },
{ token: "stkcvxcrvFRAX", lt: 9000 },
{ token: "USDC_DAI_USDT", lt: 8200 },
{ token: "B_rETH_STABLE", lt: 8200 },
{ token: "auraB_rETH_STABLE", lt: 8200 },
{ token: "auraB_rETH_STABLE_vault", lt: 8200 },
{ token: "yvDAI", lt: 9000 },
{ token: "yvUSDC", lt: 9000 },
{ token: "yvWETH", lt: 8250 },
{ token: "yvWBTC", lt: 8250 },
{ token: "yvCurve_stETH", lt: 8250 },
{ token: "yvCurve_FRAX", lt: 9000 },
{ token: "CVX", lt: 0 },
{ token: "FXS", lt: 0 },
{ token: "LQTY", lt: 0 },
{ token: "CRV", lt: 2500 },
{ token: "LDO", lt: 0 },
{ token: "SNX", lt: 2500 },
{ token: "BAL", lt: 2500 },
{ token: "AURA", lt: 0 },
],
adapters: [
// SWAPPERS
levUniV3Config,
levUniV2Config,
levSushiswapConfig,
levBalancerConfig,
// CURVE
{ contract: "CURVE_3CRV_POOL" },
{ contract: "CURVE_FRAX_USDC_POOL" },
{ contract: "CURVE_STETH_GATEWAY" },
{ contract: "CURVE_FRAX_POOL" },
{ contract: "CURVE_LUSD_POOL" },
{ contract: "CURVE_RETH_ETH_POOL" },
{ contract: "CURVE_3CRYPTO_POOL" },
// YEARN
{ contract: "YEARN_DAI_VAULT" },
{ contract: "YEARN_USDC_VAULT" },
{ contract: "YEARN_WETH_VAULT" },
{ contract: "YEARN_WBTC_VAULT" },
{ contract: "YEARN_CURVE_FRAX_VAULT" },
{ contract: "YEARN_CURVE_STETH_VAULT" },
// CONVEX
{ contract: "CONVEX_FRAX3CRV_POOL" },
{ contract: "CONVEX_LUSD3CRV_POOL" },
{ contract: "CONVEX_3CRV_POOL" },
{ contract: "CONVEX_FRAX_USDC_POOL" },
{ contract: "CONVEX_STECRV_POOL" },
{ contract: "CONVEX_BOOSTER" },
// LIDO
{ contract: "LIDO_STETH_GATEWAY" },
// NEW PROTOCOLS
{ contract: "LIDO_WSTETH" },
{ contract: "AAVE_V2_LENDING_POOL" },
{ contract: "COMPOUND_V2_LINK_POOL" },
{ contract: "MAKER_DSR_VAULT" },
{ contract: "AURA_BOOSTER" },
{ contract: "AURA_B_RETH_STABLE_POOL" },
],
},
],
creditManagers: [levCreditManager],
supportsQuotas: true,
};

@@ -50,7 +50,7 @@ "use strict";

token: "USDC_e",
lt: 9600,
lt: 9400,
},
{
token: "USDC",
lt: 9600,
lt: 9400,
},

@@ -57,0 +57,0 @@ {

{
"name": "@gearbox-protocol/integrations-v3",
"description": "Integration contracts for Gearbox V3",
"version": "1.36.0",
"version": "1.37.0",
"homepage": "https://gearbox.fi",

@@ -38,7 +38,7 @@ "main": "./npm-root/index.js",

"@gearbox-protocol/core-v2": "1.19.0-base.10",
"@gearbox-protocol/core-v3": "^1.47.1",
"@gearbox-protocol/core-v3": "^1.48.0",
"@gearbox-protocol/eslint-config": "^1.6.1",
"@gearbox-protocol/oracles-v3": "^1.9.1",
"@gearbox-protocol/oracles-v3": "^1.10.3",
"@gearbox-protocol/prettier-config": "^1.5.0",
"@gearbox-protocol/sdk-gov": "^1.32.0",
"@gearbox-protocol/sdk-gov": "^1.39.0",
"@openzeppelin/contracts": "4.9.3",

@@ -45,0 +45,0 @@ "@redstone-finance/evm-connector": "0.2.5",

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

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