Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StataGSM #612

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

StataGSM #612

wants to merge 16 commits into from

Conversation

efecarranza
Copy link
Contributor

In order to earn yield on the assets held on the GSM, upgrade from a native token GSM to a stataGSM.

CHANGELOG

Upgrade GSM implementation to new stataGSM and migrate liquidity.
Add tests for GSM functionality and set up.

* - Discussion: https://governance.aave.com/t/arfc-deploy-statausdc-and-statausdt-gsms-on-ethereum/20682
*/
contract AaveV3Ethereum_GSMsMigrationToGSM4626_20250114 is IProposalGenericExecutor {
using SafeERC20 for IERC20;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently not needed. import neither

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's used in forceApprove()

Comment on lines 419 to 435
interface IFeeStrategy {
function getBuyFee(uint256 grossAmount) external view returns (uint256);
function getSellFee(uint256 grossAmount) external view returns (uint256);
}

interface IOracleSwapFreezer {
function getCanUnfreeze() external view returns (bool);
function getFreezeBound() external view returns (uint128, uint128);
function getUnfreezeBound() external view returns (uint128, uint128);
function checkUpkeep(bytes calldata) external view returns (bool, bytes memory);
function performUpkeep(bytes calldata) external;
}

interface IFixedPriceStrategy4626 {
function getAssetPriceInGho(uint256 assetAmount, bool roundUp) external view returns (uint256);
function getGhoPriceInAsset(uint256 ghoAmount, bool roundUp) external view returns (uint256);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these be moved to src/interfaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think they'll be used too often so didn't want to pollute the interfaces folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants