From c75996895ae95d447036a74253b0aacb0f38e7fe Mon Sep 17 00:00:00 2001 From: Scott Silver Date: Thu, 21 Mar 2024 18:23:54 -0700 Subject: [PATCH 1/2] add AbsorbCollateral to IComet --- src/legend-scripts/src/interfaces/IComet.sol | 2 ++ test/quark-core-scripts/interfaces/IComet.sol | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/legend-scripts/src/interfaces/IComet.sol b/src/legend-scripts/src/interfaces/IComet.sol index 49e9bf86..c84a886a 100644 --- a/src/legend-scripts/src/interfaces/IComet.sol +++ b/src/legend-scripts/src/interfaces/IComet.sol @@ -2,6 +2,8 @@ pragma solidity 0.8.23; interface IComet { + event AbsorbCollateral(address indexed absorber, address indexed borrower, address indexed asset, uint collateralAbsorbed, uint usdValue); + function getAssetInfo(uint8 i) external view returns (AssetInfo memory); function baseToken() external view returns (address); diff --git a/test/quark-core-scripts/interfaces/IComet.sol b/test/quark-core-scripts/interfaces/IComet.sol index babfdc9c..d348dee0 100644 --- a/test/quark-core-scripts/interfaces/IComet.sol +++ b/test/quark-core-scripts/interfaces/IComet.sol @@ -2,6 +2,8 @@ pragma solidity 0.8.23; interface IComet { + event AbsorbCollateral(address indexed absorber, address indexed borrower, address indexed asset, uint collateralAbsorbed, uint usdValue); + function getAssetInfo(uint8 i) external view returns (AssetInfo memory); function baseToken() external view returns (address); From 1a2dc90e45c24bafdd50d175914d0759edd94960 Mon Sep 17 00:00:00 2001 From: Scott Silver Date: Fri, 22 Mar 2024 13:28:18 -0700 Subject: [PATCH 2/2] format --- src/legend-scripts/src/interfaces/IComet.sol | 8 +++++++- test/quark-core-scripts/interfaces/IComet.sol | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/legend-scripts/src/interfaces/IComet.sol b/src/legend-scripts/src/interfaces/IComet.sol index c84a886a..9e7170fa 100644 --- a/src/legend-scripts/src/interfaces/IComet.sol +++ b/src/legend-scripts/src/interfaces/IComet.sol @@ -2,7 +2,13 @@ pragma solidity 0.8.23; interface IComet { - event AbsorbCollateral(address indexed absorber, address indexed borrower, address indexed asset, uint collateralAbsorbed, uint usdValue); + event AbsorbCollateral( + address indexed absorber, + address indexed borrower, + address indexed asset, + uint256 collateralAbsorbed, + uint256 usdValue + ); function getAssetInfo(uint8 i) external view returns (AssetInfo memory); diff --git a/test/quark-core-scripts/interfaces/IComet.sol b/test/quark-core-scripts/interfaces/IComet.sol index d348dee0..ec1ca515 100644 --- a/test/quark-core-scripts/interfaces/IComet.sol +++ b/test/quark-core-scripts/interfaces/IComet.sol @@ -2,7 +2,13 @@ pragma solidity 0.8.23; interface IComet { - event AbsorbCollateral(address indexed absorber, address indexed borrower, address indexed asset, uint collateralAbsorbed, uint usdValue); + event AbsorbCollateral( + address indexed absorber, + address indexed borrower, + address indexed asset, + uint256 collateralAbsorbed, + uint256 usdValue + ); function getAssetInfo(uint8 i) external view returns (AssetInfo memory);