mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
242826ded6
Complete with unit tests (using a mock AugustusSwapper contract). Has similar functionality/tests as for existing Uniswap adapter. Fixed a couple bugs in tests for Uniswap adapters.
18 lines
484 B
Solidity
18 lines
484 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity 0.6.12;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import {Ownable} from '../../dependencies/openzeppelin/contracts/Ownable.sol';
|
|
import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol';
|
|
|
|
contract MockParaSwapTokenTransferProxy is Ownable {
|
|
function transferFrom(
|
|
address token,
|
|
address from,
|
|
address to,
|
|
uint256 amount
|
|
) external onlyOwner {
|
|
IERC20(token).transferFrom(from, to, amount);
|
|
}
|
|
}
|