Platform: Code4rena
Start Date: 29/04/2021
End Date: 04/05/2021
Period: 6 days
Status: Completed
Reporters: ninek, sock
Pot Size: $30,000 USDC
Participants: 6
Reporters: ninek, sock
Judge: cemozer
Id: 7
League: ETH
This repo will be made public before the start of the contest.
Based Loans is fork of Compound. In theory it should inherit Compound's security. However, any change made to smart contracts can introduce a critical bug. To make it easier for auditors, below is a summary of changes. Be aware that these are not all changes. Do code diff with compound contract to see all changes made.
If you are not familiar with Compound, feel free to read their documentation https://compound.finance/docs Compound's original code is here: https://github.com/compound-finance/compound-protocol/tree/master
Changelog:
doTransferOut
function in CEther.sol
Comp.sol
to Blo.sol
. Be aware that renaming was made only in few places. Across the code, you'll see variables and functions referencing blo
and comp
so keep in mind, it means the same thing (token).UniswapAnchoredView.sol
contractUniswapConfig.sol
contractCErc20Immutable.sol
and CToken.sol
contracts - mostly function visibility to accommodate new TWAP oracle with on-fly price updates_setCompAddress
function in Comptroller.sol
- new setter and corresponding storage changes in ComptrollerStorage
doTransferOut
after storage update in CToken.sol
for:
_reduceReservesFresh
redeemFresh
borrowFresh