https://github.com/openzeppelin/defi-summer-24-workshop-pub
https://github.com/openzeppelin/defi-summer-24-workshop-pub
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/openzeppelin/defi-summer-24-workshop-pub
- Owner: OpenZeppelin
- License: mit
- Created: 2024-11-09T04:30:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T07:03:38.000Z (over 1 year ago)
- Last Synced: 2024-11-09T07:18:23.715Z (over 1 year ago)
- Language: Solidity
- Size: 5.86 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeFi Security Summer 2024 <> Mastering Smart Contract Audits: A Comprehensive
We just developed a bug-free implementation of a staking contract that will invest your stablecoins (USDT & DAI supported for now) into profitable strategies. It is going to be deployed on Ethereum mainnet. In order to make sure we have equal balances of USDT and DAI, when depositing different amounts they will be auto-swapped so that the nominal value matches.
Every deposit needs to wait for 10 days before they can withdraw penalty-free (linear decay). Deposits move funds into the contract, but someone needs to call invest() so the funds are actually invested into the strategy.
This contract is meant to be upgradeable. It will leave behind a proxy that follows the transparent proxy pattern.
NOTE: Assume Strategy.sol exists and works, but treat it as a blackbox. It is supposed to do something with funds to generate yield automagically.