Skip to content

Commit

Permalink
fix: Fix some comments on contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Sep 21, 2021
1 parent ad92076 commit 973e644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contracts/misc/AaveProtocolDataProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ contract AaveProtocolDataProvider {
* @return The unbacked mint cap of the reserve
**/
function getUnbackedMintCap(address asset) external view returns (uint256) {
return
IPool(ADDRESSES_PROVIDER.getPool()).getConfiguration(asset).getUnbackedMintCapMemory();
return IPool(ADDRESSES_PROVIDER.getPool()).getConfiguration(asset).getUnbackedMintCapMemory();
}

/**
Expand Down
7 changes: 6 additions & 1 deletion contracts/protocol/libraries/types/DataTypes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ library DataTypes {
uint8 id;
//the current treasury balance, scaled
uint256 accruedToTreasury;
//the quicikwithdraw balance waiting for underlying to be backed
//the quickwithdraw balance waiting for underlying to be backed
uint256 unbacked;
}

Expand All @@ -45,6 +45,11 @@ library DataTypes {
//bit 64-79: reserve factor
//bit 80-115 borrow cap, borrowCap == 0 => disabled
//bit 116-151 supply cap, supplyCap == 0 => disabled
//bit 80-115 borrow cap, borrowCap == 0 => disabled
//bit 116-151 supply cap, supplyCap == 0 => disabled
//bit 152-167 liquidation protocol fee
//bit 168-175 eMode category
//bit 176-211 unbacked mint cap, unbackedMintCap == 0 => disabled
uint256 data;
}

Expand Down

0 comments on commit 973e644

Please sign in to comment.