mirror of
https://github.com/Instadapp/dsa-connectors-2.0.git
synced 2024-07-29 21:57:39 +00:00
27 lines
840 B
Solidity
27 lines
840 B
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.19;
|
|
|
|
import "./helpers.sol";
|
|
import "./events.sol";
|
|
|
|
contract MakerImport is Helpers, Events {
|
|
function transferMakerToFluid(
|
|
uint256 vaultId
|
|
) public payable returns (string memory _eventName, bytes memory _eventParam) {
|
|
uint256 _vault = getVault(vaultId);
|
|
(bytes32 ilk,) = getVaultData(_vault);
|
|
|
|
require(managerContract.owns(_vault) == address(this), "not-owner");
|
|
|
|
address fluidAddress = fluidWalletFactory.computeWallet(msg.sender);
|
|
managerContract.give(_vault, fluidAddress);
|
|
|
|
_eventName = "LogTransferToAvo(uint256,bytes32,address)";
|
|
_eventParam = abi.encode(_vault, ilk, fluidAddress);
|
|
}
|
|
}
|
|
|
|
contract ConnectV2FluidMakerImport is MakerImport {
|
|
string public constant name = "Fluid-Maker-Import-v1.0";
|
|
}
|