Vectorized / solady

Optimized Solidity snippets.
MIT License
2.29k stars 306 forks source link

✨ Add Lifebouy contract #961

Closed wh173-c47 closed 2 weeks ago

wh173-c47 commented 2 weeks ago

Description

Added Lifebouy contract, sending all ETH during construction, to rather msg.sender or tx.origin as fallback. It also store the deployer and allows it, among with contract owner (if implementing Ownable) to rescue locked ETH, ERC20, ERC721 in the contract (feature can be renounced).

Checklist

Ensure you completed all of the steps below before submitting your pull request:

Pull requests with an incomplete checklist will be thrown out.

Vectorized commented 2 weeks ago

I'll merge this into a PR and edit from there. Then merge.