This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
generate new fork #56
Open
MostafaSaadatnia
wants to merge
81
commits into
release/1.1.4
Choose a base branch
from
main
base: release/1.1.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
* Aquafarm withdraw/deposit support * ignore when user farm is not initialized * @orca-so/aquafarm version bump to ^0.0.12 * extract aquafarm as a separate api * comment todos * variable name changes
* update README with farm info * Bump to 1.1.5
Co-authored-by: meep <[email protected]>
* Add DoubleDip, SingleStake farms; Update pools, tokens * double-dips-only
* Farm getHarvestableAmount and harvest api's * Farm harvest, getHarvestableAmount api * add comments * use getCurrentHarvestableAmount
* Pool add getDepositQuote, getWithdrawQuote api's * remove unused functions * getQuote slippage should be optional * percentage input, constraint token * comments update * change types * special case: handle SOL in getUserTokenCount * decimal bug fix * address comments * comment update
* Update Usage section of readme * update with new api
* Add new pools * add SOCN
* Farm getWeeklyEmissions api * add rewardTokenDecimals field * getDailyEmissions * comment update * rewardTokenDecimals for new pools
Co-authored-by: Arrowana <[email protected]>
* Add devnet * fix sol token equality check
* Exclude revoke instruction for one-off wsol account * Revert "Exclude revoke instruction for one-off wsol account" This reverts commit 626321a. * cleanupInstructions execute in reverse order * remove comment
* Sync token list to SDK * Update .gitignore
Bug Details: calculate_fee function of spl-token-swap includes a process to set the fee to 1 if it is truncated to 0. https://github.com/solana-labs/solana-program-library/blob/813aa3304022528cbf3cf7a3d32bca339194a492/token-swap/program/src/curve/fees.rs#L56 The SDK's fee calculation does not have this logic, so if the amount of input is small, fee calculation results in zero. As a result, on-chain, the amount of input is less than the amount of fee and the output is lower than expected. Fixes: - Change to the same fee calculation logic as spl-token-swap - Added test cases to constant-product-quote.test.ts and stable-quote.test.ts Note: To avoid exceptions when obtaining estimates, if the fees is greater than the input, the input is treated as zero.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request triggered because we want to generate new fork from this codebase