Skip to content

Commit

Permalink
LkMEX Transfer: Add energy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Jan 12, 2024
1 parent e4b95af commit 6a45832
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locked-asset/lkmex-transfer/src/energy_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub trait EnergyTransferModule:
let epoch_diff = current_epoch - attributes.unlock_epoch;
let simulated_deplete_amount = &token.amount * epoch_diff;
energy.remove_energy_raw(BigUint::zero(), simulated_deplete_amount);
energy.add_energy_raw(token.amount, BigInt::zero());
}
}

Expand Down

0 comments on commit 6a45832

Please sign in to comment.