Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

D3m bar #89

Merged
merged 12 commits into from
Dec 1, 2021
Merged

D3m bar #89

merged 12 commits into from
Dec 1, 2021

Conversation

brianmcmichael
Copy link
Contributor

Adds function for setting D3M bar to the DssExecLib

Copy link
Contributor

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor changes, but otherwise looks good.

README.md Outdated Show resolved Hide resolved

/**
@dev Sets the target rate threshold for a dai direct deposit module (d3m)
@dev Aave: Targets the variable borrow rate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. Let's leave this generic to both Aave/Compound and whoever else in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a line for Compound later. This is to specifically point out that for Aave, we're targeting the borrow rate (and not the lending rate). Every protocol is going to be different.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it will be the same. Really we could pick either in every lending market, but we are interested in the borrow rate as that is what is competitive with Maker.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay if you want to add a comment for every D3M type though.

src/test/DssAction.t.sol Outdated Show resolved Hide resolved
src/test/DssAction.t.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@naszam naszam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked:

  • lib/dss-direct-deposit points to 773069 (not latest on master)
  • README Changes Look Good
  • DssExecLib D3M Action Looks Good
  • Aave Mock Looks Good
  • Tests Look Good
  • Tests PASS

nit: noticed a recent commit on the d3m repo, we could consider to dapp upgrade dss-direct-deposit to latest on master and eventually consider to release a new d3m version @hexonaut (as some minor changes in code have been introduced since the first release) and point to the release tag.

LGTM 👍

Copy link
Contributor

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Noted about the dss-direct-deposit version @naszam

Copy link
Contributor

@naszam naszam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brianmcmichael
Copy link
Contributor Author

Latest master on D3M is just a little change I made to README. No functional difference.

@brianmcmichael brianmcmichael merged commit e0846fe into master Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants