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

App connected to V1 y V2 of the Xocolatl Contracts #44

Open
0xdcota opened this issue Dec 26, 2022 · 0 comments
Open

App connected to V1 y V2 of the Xocolatl Contracts #44

0xdcota opened this issue Dec 26, 2022 · 0 comments
Assignees
Labels

Comments

@0xdcota
Copy link
Member

0xdcota commented Dec 26, 2022

After Cyberscope audit new contracts for HouseOfReserve, HouseOfCoin, and AssetsAccountant, are required to be deployed.
This will require the front-end to handle both v1 contracts and v2 contracts.

The changes also introduced abi updates that should be considered:

  • ReserveIds in Assets accountant now returns an array:

    'function reservesIds(address, address) view returns (uint256)',

  • checkRemainingMintingPower now takes the house of reserve address as an input instead of reserve asset.

    'function checkRemainingMintingPower(address user, address reserveAsset) view returns (uint256)',

  • computeUserHealthRatio now takes the house of reserve address as an input instead of reserve asset.

    'function computeUserHealthRatio(address user, address reserveAsset) view returns (uint256)',

  • getBackedTokenID was removed from HouseOfCoin.

    'function getBackedTokenID(address _reserveAsset) view returns (uint256)',

@0xdcota 0xdcota self-assigned this Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant