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 open_margin_position function, which allows our users to use our pools to open bigger positions.
Verify that tokens provided by user are on Pragma, validate allowance and amount, check that tokens have different addresses. User can't have more than one active position at once.
Calculate how much our user needs to borrow from our pools using appropriate internal function, if this amount is bigger than we have in our pools, throw an error.
Take calculated amount from the pool by subtracting it from the correct storage entry.
Transfer token from the user
Swap calculated amount on Ekubo
Write Position structure to the storage
Add reentrancy guard
Write tests and docstring
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 backend and smart contract technologies(solidity, cairo and rust).
I Like pineapple
Telegram handle: wisdom@704093
ETA: 12hrs
i will love to take on this, I will implement the open_margin_position function, ensuring proper validation, borrowing logic, token transfers, swaps, and storage updates while securing it with a reentrancy guard. I will also write comprehensive tests and documentation.
You will create the main part of contract logic by implementing
open_margin_position
function, which allows our users to use our pools to open bigger positions.Position
structure to the storageThe text was updated successfully, but these errors were encountered: