🎰 DeFi777🎰
Use DeFi protocols using simple token transfers.
Visit https://defi777.com for instructions
Developers
DeFi777 can be a great tool for smart contract & dapp developers to easily use DeFi protocols.
More documentation coming soon.
Contracts
protocols
aave
Aave777.sol
: Root contract, can create AToken777s and will forward received tokensAToken777.sol
: ERC777 wrapper for aTokens. Calculates balances using the Aave lending poolERC777WithoutBalance.sol
: Clone of the OpenZeppelin ERC777 contract, but does not store any token balancesWadRawMath.sol
: Math library copied from Aave repo
balancer
Balancer777
: Receives ERC777 tokens and swaps into destination token using BalancerBalancerHub
: Root contract, stores a mapping of tokens to pools, constructs Balancer777s
uniswap
UniswapWrapper.sol
: Receives 777 tokens and swaps into destination token using Uniswap V2UniswapWrapperFactory.sol
: Factory for UniswapWrappers
test
: Contracts used by unit teststokens
: ERC777 wrapper contractsERC777WithGranularity
: Clone of the OpenZeppelin ERC777 contract, but uses Granularity.solGranularity.sol
: Helper contract to convert between ERC20 decimals and ERC777 granularityIWrapped777.sol
: Interface for a ERC777 wrapperUnwrapper.sol
: Simple contract that unwraps 777 tokens and returns the wrapped ERC20. Deployed at defi777.ethWrapped777.sol
: ERC777 token that is minted when locking a ERC20 token. Also adds permit() and flashloansWrapperFactory.sol
: Factory to generate a Wrapped777 for any ERC20
Receiver.sol
: Helper contract for simplifying ERC777Recipient