Skip to content

Commit f5c526b

Browse files
committed
fix: add missing price feed and adapter types
1 parent 32b260b commit f5c526b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

contracts/compressors/AdapterCompressor.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ contract AdapterCompressor is IAdapterCompressor {
5555
contractTypes[uint8(AdapterType.SYMBIOTIC_DEFAULT_COLLATERAL)] = "AD_SYMBIOTIC_DEFAULT_COLLATERAL";
5656
contractTypes[uint8(AdapterType.MELLOW_LRT_VAULT)] = "AD_MELLOW_LRT_VAULT";
5757
contractTypes[uint8(AdapterType.PENDLE_ROUTER)] = "AD_PENDLE_ROUTER";
58+
contractTypes[uint8(AdapterType.DAI_USDS_EXCHANGE)] = "AD_DAI_USDS_EXCHANGE";
59+
contractTypes[uint8(AdapterType.MELLOW_ERC4626_VAULT)] = "AD_MELLOW_ERC4626_VAULT";
60+
contractTypes[uint8(AdapterType.STAKING_REWARDS)] = "AD_STAKING_REWARDS";
5861
}
5962

6063
function getContractAdapters(address creditManager) external view returns (ContractAdapter[] memory adapters) {

contracts/compressors/PriceFeedCompressor.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ contract PriceFeedCompressor is IPriceFeedCompressor {
7373
contractTypes[uint8(PriceFeedType.WSTETH_ORACLE)] = "PF_WSTETH_ORACLE";
7474
contractTypes[uint8(PriceFeedType.YEARN_ORACLE)] = "PF_YEARN_ORACLE";
7575
contractTypes[uint8(PriceFeedType.MELLOW_LRT_ORACLE)] = "PF_MELLOW_LRT_ORACLE";
76+
contractTypes[uint8(PriceFeedType.PENDLE_PT_TWAP_ORACLE)] = "PF_PENDLE_PT_TWAP_ORACLE";
7677

7778
// these types need special serialization
7879
contractTypes[uint8(PriceFeedType.BALANCER_WEIGHTED_LP_ORACLE)] = "PF_BALANCER_WEIGHTED_LP_ORACLE";

lib/@gearbox-protocol/sdk-gov

Submodule sdk-gov updated 68 files

0 commit comments

Comments
 (0)