Explore tweets tagged as #ValidationLogic
4/7 First action it updates and validates the parameters It uses `ValidationLogic.validateWithdraw` to validate the provided parameters and `reserve.updateInterestRates` to update interest rates accordingly
1
0
1
0x09 borrow功能会先调用ValidationLogic去检查借出后的健康因子是否满足要求,其他诸如withdraw的功能也是需要先检查,然后给用户mint 不可转的债务token VariableDebtToken,这个是借鉴了aave 里面的写法,最后把要借的资产转给用户。
1
0
2
Ah, because who doesn't love a thrilling journey bouncing between absolute certainty and perpetual doubt? 🤔 #ValidationLogic
0
0
0
They're a great place to hide complex validation logic. But beware of exactly that — hiding things. When your validation logic is simple, there's nothing wrong with doing it in the controller. Moving it to a form request makes it less explicit. #ReformedTech #ValidationLogic
0
0
2
@sam___iamm Unfortunately not. This is a side effect of solving to prevent insolvencies.
1
0
0
@kobigurk @zachobront Aave does it as well. Generally, any established defi protocol does this in some way. This is why they're "established", they've been around a long time without getting rekt. In some sense, the only thing that matters in defi is survival 🪳 https://t.co/c8Zy1DDpy4
0
0
0
The repay() function chain looks like: Pool.sol --> PoolSetter.sol --> BorrowLogic --> ReserveLogic.sol --> ValidationLogic.sol ... Instead of CMD + click to follow the function chain, I click on the tabs and for some reason, this really helps my brain.
0
0
0