Reya-Labs / voltz-core

Core smart contracts of Voltz v1
https://www.voltz.xyz/
64 stars 15 forks source link

Margin Updates in the Aave FCM. #66

Open reyalabs opened 2 years ago

reyalabs commented 2 years ago

Make a decision on the introduction of an updateMarginInATokens function in the AaveFCM

CyclopsRex commented 2 years ago

I don't know much about this issue but if we are writing new solidity code we should do it sooner rather than later.

reyalabs commented 2 years ago

We need to add an option for a trader to update their margin in terms of aTokens, this function should only support a top-up (e.g. a position margin delta). Rationale behind this function is to let traders perform out-of-money unwinds.