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

fix: send token adapter fees #154

Merged
merged 2 commits into from
Sep 18, 2024
Merged

fix: send token adapter fees #154

merged 2 commits into from
Sep 18, 2024

Conversation

palace22
Copy link
Collaborator

@palace22 palace22 commented Sep 18, 2024

Updated send token adapter fees by 1%

Copy link

changeset-bot bot commented Sep 18, 2024

🦋 Changeset detected

Latest commit: 5d778ca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@folks-finance/xchain-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 18, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@folks-finance/xchain-sdk@154

commit: 5d778ca

// get return adapter fee
return await hubBridgeRouter.read.getSendFee([returnMessage]);
// get return adapter fee increased by 1%
return increaseByPercent(await hubBridgeRouter.read.getSendFee([returnMessage]), 0.01);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define constant RECEIVER_VALUE_SLIPPAGE

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, 5d778ca

@palace22 palace22 merged commit 32b44f5 into main Sep 18, 2024
5 checks passed
@palace22 palace22 deleted the fix/send-token-adapter-fees branch September 18, 2024 09:57
gidonkatten pushed a commit that referenced this pull request Sep 20, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @folks-finance/xchain-sdk@0.0.28

### Patch Changes

-
[#151](#151)
[`965b38e`](965b38e)
Thanks [@gidonkatten](https://github.com/gidonkatten)! - Fixed BTCb ava
spoke token

-
[#151](#151)
[`965b38e`](965b38e)
Thanks [@gidonkatten](https://github.com/gidonkatten)! - deploy mainnet

-
[#159](#159)
[`8854ef7`](8854ef7)
Thanks [@gidonkatten](https://github.com/gidonkatten)! - add addresses
to fee data

-
[#151](#151)
[`965b38e`](965b38e)
Thanks [@gidonkatten](https://github.com/gidonkatten)! - fix precision
of price formulae

-
[#154](#154)
[`32b44f5`](32b44f5)
Thanks [@palace22](https://github.com/palace22)! - increased send token
adapter fees by 1%

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants