generated from auditless/cairo-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. moved types to standalone file 2. passed account to wrap function as parameters 3. removed some useless code
- Loading branch information
Showing
6 changed files
with
165 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { Decimal } from 'decimal.js-light'; | ||
// import JSBI from 'jsbi'; | ||
|
||
|
||
export abstract class TickMath { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {AccountInterface, BigNumberish, Provider} from "starknet"; | ||
import {FeeAmount} from "./constants"; | ||
|
||
export type Config = { | ||
erc1155Address: string; | ||
werc20Address:string; | ||
erc20Address:string; | ||
ekuboPositionAddress:string; | ||
ekuboCoreAddress:string; | ||
account:AccountInterface | undefined; | ||
provider?:Provider; | ||
}; | ||
|
||
|
||
export type LiquidityParams = { | ||
erc1155Amount: BigNumberish; | ||
erc20Amount: BigNumberish; | ||
fee: FeeAmount; | ||
lowerPrice: number; | ||
upperPrice: number; | ||
} | ||
|
||
|
||
export type AVNUSwapParams = SwapParams & { | ||
erc1155AmountIn: BigNumberish; | ||
aggregatorAddress: string; | ||
} | ||
|
||
export type SimpleSwapParams = SwapParams & { | ||
simpleSwapperAddress: string; | ||
amountIn: BigNumberish; | ||
} | ||
|
||
|
||
type SwapParams = { | ||
minERC20AmountOut: BigNumberish; | ||
userAddress: string; | ||
fee: FeeAmount; | ||
slippage: number; | ||
} |
Oops, something went wrong.