-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from oraichain/develop
Feature: Add check minimum bridge fee and update contracts
- Loading branch information
Showing
14 changed files
with
164 additions
and
147 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 +1,15 @@ | ||
import { toNano } from "@ton/core"; | ||
|
||
const FWD_AMOUNT = toNano(0.1); | ||
const FWD_AMOUNT = toNano(0.15); | ||
const TON_MESSAGE_VALID_UNTIL = 100000; | ||
const BRIDGE_TON_TO_ORAI_MINIMUM_GAS = toNano(1); | ||
const EXTERNAL_MESSAGE_FEE = toNano(0.01); | ||
const MINIMUM_BRIDGE_PER_USD = 0.001; | ||
|
||
export { | ||
FWD_AMOUNT, | ||
TON_MESSAGE_VALID_UNTIL, | ||
BRIDGE_TON_TO_ORAI_MINIMUM_GAS, | ||
EXTERNAL_MESSAGE_FEE, | ||
MINIMUM_BRIDGE_PER_USD, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { TonNetwork } from "./ton"; | ||
|
||
export const TonInteractionContract = { | ||
[TonNetwork.Mainnet]: { | ||
lightClient: "EQDzy_POlimFDyzrHd3OQsb9sZCngyG3O7Za4GRFzM-rrO93", | ||
whitelist: "EQATDM6mfPZjPDMD9TVa6D9dlbmAKY5w6xOJiTXJ9Nqj_dsu", | ||
bridgeAdapter: "EQC-aFP0rJXwTgKZQJPbPfTSpBFc8wxOgKHWD9cPvOl_DnaY", | ||
}, | ||
[TonNetwork.Testnet]: { | ||
lightClient: "", | ||
whitelist: "EQD2xPIqdeggqtP3q852Y-7yD-RRHi12Zy7M4iUx4-7q0E1", | ||
bridgeAdapter: "EQDZfQX89gMo3HAiW1tSK9visb2gouUvDCt6PODo3qkXKeox", | ||
}, | ||
}; | ||
|
||
export const TON_ZERO_ADDRESS = | ||
"EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c"; | ||
|
||
export const TonTokensContract = { | ||
[TonNetwork.Mainnet]: { | ||
usdt: "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs", | ||
ton: TON_ZERO_ADDRESS, | ||
}, | ||
[TonNetwork.Testnet]: { | ||
usdt: "EQA5FnPP13uZPJQq7aj6UHLEukJJZSZW053cU1Wu6R6BpYYB", | ||
ton: TON_ZERO_ADDRESS, | ||
}, | ||
}; | ||
|
||
export const CW_TON_BRIDGE = | ||
"orai159l8l9c5ckhqpuwdfgs9p4v599nqt3cjlfahalmtrhfuncnec2ms5mz60e"; | ||
export const TOKEN_FACTORY = | ||
"orai1wuvhex9xqs3r539mvc6mtm7n20fcj3qr2m0y9khx6n5vtlngfzes3k0rq9"; |
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
Oops, something went wrong.