ChainSecurity audited the Oasis “Multiply” smart contracts.
Oasis provides a frontend for interacting with the Maker system which allows users to easily open a vault, deposit collateral and generate DAI backed by the locked collateral. Each user first deploys a DSProxy contract which is used to interact with the functionality provided. The proxy allows the user to execute code of the Oasis smart contracts aggregating functionality to perform certain actions wrapped in one transaction.
Like leverage trading that creates a larger position from a smaller investment amount, it is possible to use borrowed DAI from locked collateral to buy more collateral and use this collateral to borrow more DAI. By doing this repeatedly, long chains of exposure to the collateral can be generated. The new MultiplyProxyActions introduces the support for leverage actions while reducing the number of total transactions to one and the total number of transfers to the vault to one deposit by leveraging flash loans. Oasis’ new MultiplyProxyActions contract contains functionality allowing users to easily increase and decrease the multiply factor and, thus, simplifies actions for creating, withdrawing and modifying leveraged positions.