b.protocol: deposit to cdp manager and not to vat directly

This commit is contained in:
yaron velner 2021-08-04 00:44:18 +03:00
parent 8a70ccddff
commit 6f356a3a46

View File

@ -97,13 +97,10 @@ abstract contract BMakerResolver is Helpers, Events {
} }
approve(tokenContract, address(colAddr), _amt); approve(tokenContract, address(colAddr), _amt);
tokenJoinContract.join(address(this), _amt); tokenJoinContract.join(urn, _amt);
VatLike(managerContract.vat()).frob( // TODO zelda - make manager.frob managerContract.frob(
ilk, _vault,
urn,
address(this),
address(this),
toInt(convertTo18(tokenJoinContract.dec(), _amt)), toInt(convertTo18(tokenJoinContract.dec(), _amt)),
0 0
); );