We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01edac2 commit c76b7ffCopy full SHA for c76b7ff
common/src/vault.rs
@@ -556,6 +556,19 @@ pub enum Event {
556
DepositRejectedZeroAmount { sender: AccountId },
557
}
558
559
+// simple delta enum to describe per-market actions.
560
+//
561
+// + Supply: forward-supply idle assets to a market (no withdrawals executed).
562
+// - Withdraw: ONLY creates a supply-withdrawal request in the market; does not execute it.
563
564
+// Amounts are U128 for clean JSON ABI; conversion to u128 happens internally.
565
+#[derive(Debug, Clone)]
566
+#[near(serializers = [borsh, json])]
567
+pub enum AllocationDelta {
568
+ Supply { market: AccountId, amount: U128 },
569
+ Withdraw { market: AccountId, amount: U128 },
570
+}
571
+
572
#[cfg(test)]
573
mod tests {
574
use super::*;
0 commit comments