Skip to content

Commit

Permalink
audit: replace deprecated collect fee functions (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Jan 29, 2024
1 parent ba4b4c2 commit ae858fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/src/exchanges/ekubo/launcher.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ mod EkuboLauncher {
use ekubo::interfaces::core::{ICoreDispatcher, ICoreDispatcherTrait, ILocker};
use ekubo::interfaces::core::{PoolKey};
use ekubo::interfaces::erc20::{IERC20Dispatcher, IERC20DispatcherTrait};
use ekubo::interfaces::positions::{IPositionsDispatcher, IPositionsDispatcherTrait};
use ekubo::types::bounds::{Bounds};
use ekubo::types::{i129::i129};
use openzeppelin::token::erc20::interface::{ERC20ABIDispatcher, ERC20ABIDispatcherTrait};
Expand All @@ -168,8 +169,7 @@ mod EkuboLauncher {
use unruggable::errors;
use unruggable::exchanges::ekubo::errors::{NOT_POSITION_OWNER};
use unruggable::exchanges::ekubo::interfaces::{
ITokenRegistryDispatcher, IPositionsDispatcher, IPositionsDispatcherTrait,
IOwnedNFTDispatcher, IOwnedNFTDispatcherTrait,
ITokenRegistryDispatcher, IOwnedNFTDispatcher, IOwnedNFTDispatcherTrait,
};
use unruggable::token::interface::{
IUnruggableMemecoinDispatcher, IUnruggableMemecoinDispatcherTrait
Expand Down Expand Up @@ -398,7 +398,7 @@ mod EkuboLauncher {
extension: pool_key.extension,
};
let bounds = Bounds { lower: bounds.lower, upper: bounds.upper, };
positions.withdraw(id, pool_key, bounds, 0, 0, 0, true);
positions.collect_fees(id, pool_key, bounds);

// Transfer to recipient
let mut return_data = Default::default();
Expand Down

0 comments on commit ae858fe

Please sign in to comment.