Yeti87803643 / blockchain-developer-bootcamp-final-project

MIT License
0 stars 0 forks source link

Project feedback #1

Open thedarkjester opened 2 years ago

thedarkjester commented 2 years ago

At the outset I would like to say that this is an interesting and ambitious project and you have done well to get to where you are.

There are a few things to note:

I can see where the project is headed and I wish you well.

jmcook1186 commented 2 years ago

Hello,

thanks a lot for this feedback - I am pushing some amends in a few minutes. The first point about the references is my oversight as there are copies of each of those imported contracts in the project repository and I neglected to update the references before submitting. Fixed in next commit. Also now see how the escapeHatch function and gas optimisation comments make a lot of sense.

Could you possibly explain the final comment about a smaller erc20 interface in a little more detail?

Thanks again!

thedarkjester commented 2 years ago

My comment on the IERC20.

If you see: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol

There are a few methods you don't use, so don't really need to use the entire interface.

If you declare your own IERC20.sol with just the approve and transfer functions, it should bring down the gas costs. Also, you get to remove the floating pragma on the interface.

thedarkjester commented 2 years ago

The feedback is more for future and your knowledge - don't need to do them now :)

jmcook1186 commented 2 years ago

Brilliant, thanks. Yes, np I just like to do these things while they are fresh!