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

Refactor #13

Merged
merged 1 commit into from
Mar 30, 2022
Merged

Refactor #13

merged 1 commit into from
Mar 30, 2022

Conversation

heyaibi
Copy link
Contributor

@heyaibi heyaibi commented Mar 30, 2022

  • Added functions addContractWithKey, upgradeContractWithKey, and grantRoles to Protocol
  • Refactored cxToken constructor to fix Etherscan verification issue. Refactored cxTokenFactory and ICxTokenFactory accordingly.
  • Removed the requirement of cxToken being a member of the protocol
  • Refactored VaultDelegateBase
  • Fixed solhint and slither issues
  • Refactored removeLiquidity of the Vault contract to only emit NPMUnstaken when the value is greater than zero
  • Renamed the function getStablecoinBalanceOfCoverPoolInternal and getCoverPoolLiquidity to getStablecoinOwnedByVaultInternal
  • Renamed the function getCoverLiquidityCommitted to getActiveLiquidityUnderProtection
  • Dropped obsolete contract interface ICommission
  • Moved addContractInternal, upgradeContractInternal, addMemberInternal, removeMemberInternal to AccessControlLibV1 from ProtoUtilV1
  • To avoid confusion, refactored BondPool’s function _getCommitment to _getBondCommitment
  • Refactored PolicyHelperV1 and dropped obsolete functions _setCommitments, getCommitmentInternal, and getStablecoinBalanceOfCoverPoolInternal
  • Added function deleteAddressByKeys to StoreKeyUtil
  • Added a check to ensure that calculatePodsInternal is not called during flash lending transactions
  • Refactored unit tests
  • Refactored deployment script, composer, and utils
  • Updated ABIs
  • Updated documentation
  • Updated keys

- Added functions `addContractWithKey`, `upgradeContractWithKey`, and `grantRoles` to Protocol
- Refactored `cxToken` constructor to fix Etherscan verification issue. Refactored `cxTokenFactory` and `ICxTokenFactory` accordingly.
- Removed the requirement of `cxToken` being a member of the protocol
- Refactored `VaultDelegateBase`
- Fixed solhint and slither issues
- Refactored `removeLiquidity` of the Vault contract to only emit `NPMUnstaken` when the value is greater than zero
- Renamed the function `getStablecoinBalanceOfCoverPoolInternal` and `getCoverPoolLiquidity` to `getStablecoinOwnedByVaultInternal`
- Renamed the function `getCoverLiquidityCommitted` to `getActiveLiquidityUnderProtection`
- Dropped obsolete contract interface `ICommission`
- Moved `addContractInternal`, `upgradeContractInternal`, `addMemberInternal`, `removeMemberInternal` to `AccessControlLibV1` from `ProtoUtilV1`
- To avoid confusion, refactored BondPool’s function `_getCommitment` to `_getBondCommitment`
- Refactored `PolicyHelperV1` and dropped obsolete functions `_setCommitments`, `getCommitmentInternal`, and `getStablecoinBalanceOfCoverPoolInternal`
- Added function `deleteAddressByKeys` to `StoreKeyUtil`
- Added a check to ensure that `calculatePodsInternal` is not called during flash lending transactions
- Refactored unit tests
- Refactored deployment script, composer, and utils
- Updated ABIs
- Updated documentation
- Updated keys
@heyaibi heyaibi merged commit 84be84a into develop Mar 30, 2022
@heyaibi heyaibi deleted the refactor branch March 30, 2022 06:04
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.

1 participant