Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ function MobileAccount(props: any) {
newCross ? 'cross' : 'normal'
);
}
// seleced tab
// selected tab
setActiveTab('near');
if (newCross && mapOver) {
setActiveTab('aurora');
Expand Down
2 changes: 1 addition & 1 deletion src/services/parallelSwapLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function formatPoolNew(

/** solveForMuFloat
* This function takes the set of token pools, the total input of inputToken, and the names of inputToken and outputToken and
* solves for the Lagrange Multiplier "mu". Note that mu must be allowed to be aritrary precision floating point number. Mu will
* solves for the Lagrange Multiplier "mu". Note that mu must be allowed to be arbitrary precision floating point number. Mu will
* be used in subsequent function calls to determine the best allocations of intputToken to be made per pool.
* For more detailed math on how this function was derived, please see the white paper:
* https://github.com/giddyphysicist/ParallelSwapForRefFinance/blob/main/ParallelSwapWhitePaper.pdf
Expand Down
2 changes: 1 addition & 1 deletion src/services/smartRouteLogic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ function getGraphFromPoolList(poolList) {

//TODO -- need the right API / hooks for GETSTABLESWAPACTION function and GETPARALLELSWAPACTIONS functions.

//TODO -- transform the actions generated in this function into tranaction to execute.
//TODO -- transform the actions generated in this function into transaction to execute.

//TRYING: GETSTABLESWAPACTION <==> instantSwapGetTransactions

Expand Down
2 changes: 1 addition & 1 deletion src/services/swapV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface UserOrderInfo {
swap_earn_amount: string;
buy_token: string;
unclaimed_amount: string; // claim will push it to inner account
bought_amount: string; // accumalated amount into inner account
bought_amount: string; // accumulated amount into inner account
}
export const quote = async ({
pool_ids,
Expand Down