You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will create the main part of contract logic by implementing close_position function, where we will put the debt token back in our pool and return to the user part they earned.
Check position is open
Write position as closed in the storage, save the needed values for later use in the current function
Add debt amount to the debt token pool
Swap debt amount on Ekubo using exact-output swap(from traded_token to debt_token)
Transfer to the user initial_amount + traded_amount - swapped_amount of the base token they opened position with
Write tests and docstrings
The text was updated successfully, but these errors were encountered:
GM, my name is covenant, a returning contributor on this platform, and i will love to take up this issue as i am very proficient in frontend and smart contract technologies.
I Like pineapple
Telegram handle: wisdom@704093
ETA: 12hrs
please let me take on this, I will implement the close_position function, ensuring proper position validation, debt repayment, token swaps on Ekubo, user fund returns, and storage updates. I will also write tests and documentation.
You will create the main part of contract logic by implementing
close_position
function, where we will put the debt token back in our pool and return to the user part they earned.traded_token
todebt_token
)initial_amount
+traded_amount
-swapped_amount
of the base token they opened position withThe text was updated successfully, but these errors were encountered: