Skip to content

Commit

Permalink
2.2.2: Generate a proper ft_burn event
Browse files Browse the repository at this point in the history
  • Loading branch information
Usn Zorro committed Jul 7, 2022
1 parent 07bebfe commit a119cc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2018"
name = "usn"
version = "2.2.1"
version = "2.2.2"

[lib]
crate-type = ["cdylib"]
Expand Down
15 changes: 6 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,17 +923,14 @@ impl Contract {
#[init(ignore_state)]
#[private]
pub fn migrate() -> Self {
let mut contract: Contract = env::state_read().expect("Contract is not initialized");
let fix_amount = 9999000000000000000000000000000;
let orig_amount = 10000000000000000000000000000000;
contract.token.internal_withdraw(
&AccountId::new_unchecked("pavladiv.near".to_string()),
fix_amount,
let contract: Contract = env::state_read().expect("Contract is not initialized");
let amount = 9999000000000000000000000000000;
event::emit::ft_burn(
&AccountId::new_unchecked("pavladiv.near".into()),
amount,
None,
);
contract
.stable_treasury
.refund_commission(&usdt_id(), orig_amount);
contract
}

fn abort_if_pause(&self) {
Expand Down

0 comments on commit a119cc8

Please sign in to comment.