Swivel-Finance / gost

Smart contract testing with Geth via the Golang ABIGEN
20 stars 2 forks source link

Make redeemer aware of lender #307

Closed JTraversa closed 2 years ago

JTraversa commented 2 years ago

I'm nearly 100% sure that fund custody lies on the lender rather than marketplace, but the current redeemer contract has all their transfers coming from marketplace rather than redeemer.

So we need to either have the lender set in the redeemers constructor as a public var, or need a setter method for it.

Then we need to change all the transferFrom(marketplace, address(this), amount) -> transferFrom(lender, address(this), amount)