-
Notifications
You must be signed in to change notification settings - Fork 1
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
update to support SafeERC20 #2
Conversation
contracts/BadgerYieldSource.sol
Outdated
@@ -3,6 +3,8 @@ | |||
pragma solidity 0.6.12; | |||
|
|||
import { IYieldSource } from "@pooltogether/yield-source-interface/contracts/IYieldSource.sol"; | |||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |||
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; | |||
import "@openzeppelin/contracts/math/SafeMath.sol"; | |||
import "./IBadgerSett.sol"; | |||
import "./IBadger.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line and the file in the repo.
contracts/BadgerYieldSource.sol
Outdated
constructor(IBadgerSett badgerSettAddr, IERC20 badgerAddr) public { | ||
badgerSett = badgerSettAddr; | ||
badger = badgerAddr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be more readable if it was written this way:
constructor(IBadgerSett badgerSettAddr, IERC20 badgerAddr) public { | |
badgerSett = badgerSettAddr; | |
badger = badgerAddr; | |
constructor(IBadgerSett _badgerSettAddr, IERC20 _badgerAddr) public { | |
badgerSett = _badgerSettAddr; | |
badger = _badgerAddr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that. It's also consistent with our convention of using _ for function args
Pull Request Test Coverage Report for Build 994694853
💛 - Coveralls |
code-423n4/2021-06-pooltogether-findings#112