mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Removed transfer function
This commit is contained in:
parent
955d57ae76
commit
29623faa32
|
@ -382,29 +382,6 @@ contract BasicResolver is MakerHelpers {
|
||||||
EventInterface(getEventAddr()).emitEvent(_type, _id, _eventCode, _eventParam);
|
EventInterface(getEventAddr()).emitEvent(_type, _id, _eventCode, _eventParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @dev Transfer Vault
|
|
||||||
* @param vault Vault ID to transfer.
|
|
||||||
*/
|
|
||||||
function transfer(uint vault, address nextOwner) external payable {
|
|
||||||
require(AccountInterface(address(this)).isAuth(nextOwner), "nextOwner-is-not-auth");
|
|
||||||
|
|
||||||
ManagerLike managerContract = ManagerLike(getMcdManager());
|
|
||||||
|
|
||||||
uint _vault = getVault(managerContract, vault);
|
|
||||||
(bytes32 ilk,) = getVaultData(managerContract, _vault);
|
|
||||||
|
|
||||||
require(managerContract.owns(_vault) == address(this), "not-owner");
|
|
||||||
|
|
||||||
managerContract.give(_vault, nextOwner);
|
|
||||||
|
|
||||||
emit LogTransfer(_vault, ilk, nextOwner);
|
|
||||||
bytes32 _eventCode = keccak256("LogTransfer(uint256,bytes32,address)");
|
|
||||||
bytes memory _eventParam = abi.encode(_vault, ilk, nextOwner);
|
|
||||||
(uint _type, uint _id) = connectorID();
|
|
||||||
EventInterface(getEventAddr()).emitEvent(_type, _id, _eventCode, _eventParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Deposit ETH/ERC20_Token Collateral.
|
* @dev Deposit ETH/ERC20_Token Collateral.
|
||||||
* @param vault Vault ID.
|
* @param vault Vault ID.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user