Low Tangerine Cod
Medium
The admin would not be able to pass ether to synthetixPerpsV2.executeOffchainDelayedOrder
Protocol liquidates user's positions by taking a short position in Synthetix. Later, admin should be able to execute those positions in Synthetix to maintain automint.
Admin calls executeOrdersInSynthetix
-> executeOrdersInSynthetix
executeOffchainDelayedOrder
passed 1 wei, but there is not receive
function in that contract. payable is not being imeplented which means gas will not be passed
function executeOrdersInSynthetix(
bytes[] calldata priceUpdateData
) external onlyBorrowingContract {
// Execute the submitted order
synthetixPerpsV2.executeOffchainDelayedOrder{value: 1}(address(this), priceUpdateData);
}
No response
No response
No response
protocol will not be able to executed orders to get profit. Profits or losses are realized only
when the order is executed.
No response
implement payable
function executeOrdersInSynthetix(
bytes[] calldata priceUpdateData
- ) external onlyAdmin {
+ ) external payable onlyAdmin {
// call executeOrdersInSynthetix in borrowLiquidation contract
- borrowLiquidation.executeOrdersInSynthetix(priceUpdateData);
+ borrowLiquidation.executeOrdersInSynthetix{value: msg.value}(priceUpdateData);
}
function executeOrdersInSynthetix(
bytes[] calldata priceUpdateData
- ) external onlyBorrowingContract {
+ ) external payable onlyBorrowingContract {
// Execute the submitted order
synthetixPerpsV2.executeOffchainDelayedOrder{value: 1}(address(this), priceUpdateData);
}