From 6f356a3a46b3a3646beebfb61f3cc93591078164 Mon Sep 17 00:00:00 2001 From: yaron velner Date: Wed, 4 Aug 2021 00:44:18 +0300 Subject: [PATCH] b.protocol: deposit to cdp manager and not to vat directly --- .../mainnet/connectors/b.protocol/makerdao/main.sol | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/contracts/mainnet/connectors/b.protocol/makerdao/main.sol b/contracts/mainnet/connectors/b.protocol/makerdao/main.sol index 2f94c1e4..a839fb3a 100644 --- a/contracts/mainnet/connectors/b.protocol/makerdao/main.sol +++ b/contracts/mainnet/connectors/b.protocol/makerdao/main.sol @@ -97,13 +97,10 @@ abstract contract BMakerResolver is Helpers, Events { } approve(tokenContract, address(colAddr), _amt); - tokenJoinContract.join(address(this), _amt); + tokenJoinContract.join(urn, _amt); - VatLike(managerContract.vat()).frob( // TODO zelda - make manager.frob - ilk, - urn, - address(this), - address(this), + managerContract.frob( + _vault, toInt(convertTo18(tokenJoinContract.dec(), _amt)), 0 );