Skip to content

Commit

Permalink
Merge pull request #11 from Ton-Dynasty/feat/decrease-fee
Browse files Browse the repository at this point in the history
chore: decrease fee
  • Loading branch information
alan890104 authored May 8, 2024
2 parents 4e4910f + 95191c8 commit 7bcf496
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/messages.tact
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const THUNDER_FEE: Int = ton("0.01"); // User have to pay the fee to Thunder
const ACC_PRECISION: Int = pow(10, 20); // Precision for the accumulated reward per share
const ZERO_ADDRESS: Address = address("0QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACkT");
const FEE_PERCENT_FOR_DEV: Int = 3; // 0.3% of the reward will be given to the ThunderMint
const MIN_GAS_FEE: Int = ton("0.05"); // Minimum gas fee for calling send ton
const MIN_GAS_FEE: Int = ton("0.005"); // Minimum gas fee for calling send ton
const GAS_CONSUMPTION: Int = ton("0.0065");
const KITCHEN_FEE: Int = ton("0.03"); // Fee for the Kitchen

Expand Down
2 changes: 1 addition & 1 deletion contracts/mini_chef.tact
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contract MiniChef with Deployable {
userInfo.rewardDebt = userInfo.rewardDebt + msg.rewardDebt;
self.userInfo.set(msg.lpTokenAddress, userInfo);
let ctx: Context = context();
let sendBackTon: Int = ctx.value - GAS_CONSUMPTION - MIN_GAS_FEE;
let sendBackTon: Int = ctx.value - GAS_CONSUMPTION;
// Send remain Ton to owner
send(SendParameters{
to: self.owner,
Expand Down
2 changes: 1 addition & 1 deletion contracts/ton_master_chef.tact
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ contract TonMasterChef with Deployable, MasterChef {
self.totalLpSupply = self.totalLpSupply - msg.withdrawAmount;
self.lastWithdrawTime = now();
self.pools.set(ctx.sender, pool);
self.sendJetton(pool.lpTokenAddress, sendTon - THUNDER_FEE, msg.withdrawAmount, msg.beneficiary, msg.beneficiary, SendIgnoreErrors);
self.sendJetton(pool.lpTokenAddress, sendTon, msg.withdrawAmount, msg.beneficiary, msg.beneficiary, SendIgnoreErrors);
}
}

Expand Down
4 changes: 2 additions & 2 deletions deployments/deployment.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"USDT": "EQBqSpvo4S87mX9tjHaG4zhYZeORhVhMapBJpnMZ64jhrEQK",
"AirdropFactory": "EQCKrD4mAxJ40TDCuylk2B2bTpCJVslwdE4MEWaMHa6f1x_1",
"Kitchen": "EQD_-V48IcbuLG52M_H-_R5teyXwHiY9wSxw0mppk5KHYAKN",
"MasterChef": "EQDV4lbPOghYwTQFgD4V7k8oT_gKT_O3e-Eycy3HdvcGUsml",
"Kitchen": "EQASAK9GNGXOSjnwMF1tOIIHO0m_T9ilcSK8YHfRhawII0pr",
"MasterChef": "EQAYyiN6o-Run28INOBeScSUCr0wVUcopZFljAisi9X34xIX",
"RewardJettonMaster": "kQDw2ioGUN5SHRV97e-U2b6vVHdYW4rH4d8oNl1vT_oU9Lfl",
"MerkleDistributor": {
"seed": "38435217033760998392163658086743783990464893960025036024613934316511459962221",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "SoulBlaze",
"name": "ThunderFinance",
"version": "0.0.1",
"scripts": {
"start": "blueprint run",
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildTonMasterChef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function run(provider: NetworkProvider) {
const kitchen = provider.open(Kitchen.fromAddress(Address.parse(deployment.Kitchen)));
const seed = BigInt(`0x${beginCell().storeUint(Date.now(), 64).endCell().hash().toString('hex')}`);
const masterchefAddress = await kitchen.getGetJettonMasterChefAddress(provider.sender().address!!, seed);
const totalReward = toNano("0.1")
const totalReward = toNano("2")
let sentAmount = (totalReward * 1003n) / 1000n;
const deadline = BigInt(Math.floor(Date.now() / 1000) + 60 * 60);
const startTime = BigInt(Math.floor(Date.now() / 1000)) + 10n;
Expand Down

0 comments on commit 7bcf496

Please sign in to comment.