Skip to content

Commit

Permalink
Update 8453-andromeda (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
synthetixio-team authored Oct 8, 2024
1 parent 79bce13 commit 8b00cea
Show file tree
Hide file tree
Showing 7 changed files with 11,386 additions and 12,821 deletions.
102 changes: 85 additions & 17 deletions 8453-andromeda/AllErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@
"inputs": [
{
"type": "uint128",
"name": "synthMarketId"
"name": "collateralId"
},
{
"type": "uint256",
Expand All @@ -1286,12 +1286,12 @@
"name": "InsufficientCollateralAvailableForWithdraw",
"inputs": [
{
"type": "uint256",
"name": "availableUsdDenominated"
"type": "int256",
"name": "withdrawableMarginUsd"
},
{
"type": "uint256",
"name": "requiredUsdDenominated"
"name": "requestedMarginUsd"
}
]
},
Expand All @@ -1301,7 +1301,7 @@
"inputs": [
{
"type": "uint128",
"name": "synthMarketId"
"name": "collateralId"
},
{
"type": "uint256",
Expand All @@ -1323,6 +1323,16 @@
}
]
},
{
"type": "error",
"name": "InvalidId",
"inputs": [
{
"type": "uint128",
"name": "id"
}
]
},
{
"type": "error",
"name": "KeeperCostsNotSet",
Expand All @@ -1334,7 +1344,7 @@
"inputs": [
{
"type": "uint128",
"name": "synthMarketId"
"name": "collateralId"
},
{
"type": "uint256",
Expand All @@ -1360,6 +1370,16 @@
}
]
},
{
"type": "error",
"name": "NonexistentDebt",
"inputs": [
{
"type": "uint128",
"name": "accountId"
}
]
},
{
"type": "error",
"name": "PendingOrderExists",
Expand All @@ -1381,7 +1401,21 @@
"inputs": [
{
"type": "uint128",
"name": "synthMarketId"
"name": "collateralId"
}
]
},
{
"type": "error",
"name": "ExceedsMarketCreditCapacity",
"inputs": [
{
"type": "int256",
"name": "delegatedCollateral"
},
{
"type": "int256",
"name": "newLockedCredit"
}
]
},
Expand Down Expand Up @@ -1468,16 +1502,6 @@
}
]
},
{
"type": "error",
"name": "InsufficientAccountMargin",
"inputs": [
{
"type": "uint256",
"name": "leftover"
}
]
},
{
"type": "error",
"name": "OrderNotValid",
Expand Down Expand Up @@ -1529,6 +1553,30 @@
}
]
},
{
"type": "error",
"name": "AccountHasOpenPositions",
"inputs": [
{
"type": "uint128",
"name": "accountId"
}
]
},
{
"type": "error",
"name": "InvalidDistributor",
"inputs": [
{
"type": "uint128",
"name": "id"
},
{
"type": "address",
"name": "distributor"
}
]
},
{
"type": "error",
"name": "NotEligibleForLiquidation",
Expand All @@ -1539,6 +1587,26 @@
}
]
},
{
"type": "error",
"name": "NotEligibleForMarginLiquidation",
"inputs": [
{
"type": "uint128",
"name": "accountId"
}
]
},
{
"type": "error",
"name": "InvalidDistributorContract",
"inputs": [
{
"type": "address",
"name": "distributor"
}
]
},
{
"type": "error",
"name": "InvalidInterestRateParameters",
Expand Down
18 changes: 12 additions & 6 deletions 8453-andromeda/AllErrors.readable.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,28 +122,34 @@
"error PerpsMarketAlreadyInitialized()",
"error PerpsMarketNotInitialized()",
"error AccountLiquidatable(uint128 accountId)",
"error InsufficientCollateral(uint128 synthMarketId, uint256 collateralAmount, uint256 withdrawAmount)",
"error InsufficientCollateralAvailableForWithdraw(uint256 availableUsdDenominated, uint256 requiredUsdDenominated)",
"error InsufficientSynthCollateral(uint128 synthMarketId, uint256 collateralAmount, uint256 withdrawAmount)",
"error InsufficientCollateral(uint128 collateralId, uint256 collateralAmount, uint256 withdrawAmount)",
"error InsufficientCollateralAvailableForWithdraw(int256 withdrawableMarginUsd, uint256 requestedMarginUsd)",
"error InsufficientSynthCollateral(uint128 collateralId, uint256 collateralAmount, uint256 withdrawAmount)",
"error InvalidAmountDelta(int256 amountDelta)",
"error InvalidId(uint128 id)",
"error KeeperCostsNotSet()",
"error MaxCollateralExceeded(uint128 synthMarketId, uint256 maxAmount, uint256 collateralAmount, uint256 depositAmount)",
"error MaxCollateralExceeded(uint128 collateralId, uint256 maxAmount, uint256 collateralAmount, uint256 depositAmount)",
"error MaxCollateralsPerAccountReached(uint128 maxCollateralsPerAccount)",
"error NonexistentDebt(uint128 accountId)",
"error PendingOrderExists()",
"error PriceFeedNotSet(uint128 marketId)",
"error SynthNotEnabledForCollateral(uint128 synthMarketId)",
"error SynthNotEnabledForCollateral(uint128 collateralId)",
"error ExceedsMarketCreditCapacity(int256 delegatedCollateral, int256 newLockedCredit)",
"error InsufficientMargin(int256 availableMargin, uint256 minMargin)",
"error MaxOpenInterestReached(uint128 marketId, uint256 maxMarketSize, int256 newSideSize)",
"error MaxPositionsPerAccountReached(uint128 maxPositionsPerAccount)",
"error MaxUSDOpenInterestReached(uint128 marketId, uint256 maxMarketValue, int256 newSideSize, uint256 price)",
"error ZeroSizeOrder()",
"error AcceptablePriceExceeded(uint256 fillPrice, uint256 acceptablePrice)",
"error InsufficientAccountMargin(uint256 leftover)",
"error OrderNotValid()",
"error SettlementWindowExpired(uint256 timestamp, uint256 settlementTime, uint256 settlementExpiration)",
"error SettlementWindowNotOpen(uint256 timestamp, uint256 settlementTime)",
"error AcceptablePriceNotExceeded(uint256 fillPrice, uint256 acceptablePrice)",
"error AccountHasOpenPositions(uint128 accountId)",
"error InvalidDistributor(uint128 id, address distributor)",
"error NotEligibleForLiquidation(uint128 accountId)",
"error NotEligibleForMarginLiquidation(uint128 accountId)",
"error InvalidDistributorContract(address distributor)",
"error InvalidInterestRateParameters(uint128 lowUtilizationInterestRateGradient, uint128 highUtilizationInterestRateGradient)",
"error InvalidReferrerShareRatio(uint256 shareRatioD18)",
"error FeeRequired(uint256 amount)",
Expand Down
Loading

0 comments on commit 8b00cea

Please sign in to comment.