Closed HAOYUatHZ closed 2 years ago
add old_balance and new_balance
old_balance
new_balance
https://github.com/fluidex/rollup-state-manager/issues/132
pub struct DepositTx { pub account_id: u32, pub token_id: u32, pub amount: AmountType, pub old_balance: AmountType, pub new_balance: AmountType, }
pub struct WithdrawTx { pub account_id: u32, pub token_id: u32, pub amount: AmountType, pub old_balance: AmountType, pub new_balance: AmountType, }
pub struct TransferTx { pub from: u32, pub to: u32, pub token_id: u32, pub amount: AmountType, pub old_balance: AmountType, pub new_balance: AmountType, }
spot trade is a bit complicated. we will do that later
add
old_balance
andnew_balance
previously
https://github.com/fluidex/rollup-state-manager/issues/132
now
deposit
withdraw
transfer
spot trade
spot trade is a bit complicated. we will do that later