@@ -25,6 +25,17 @@ pub struct FeeDetails {
2525 /// but excluding the commission.
2626 #[ schema( value_type = String ) ]
2727 pub relayer_cost_native : U256 ,
28+ /// The actual on-chain cost of the relay in fee token, including gas and pocket money,
29+ /// but excluding the commission.
30+ #[ schema( value_type = String ) ]
31+ pub relayer_cost_fee_token : U256 ,
32+
33+ /// The cost of pocket money in native.
34+ #[ schema( value_type = String ) ]
35+ pub pocket_money_native : U256 ,
36+ /// The cost of pocket money in fee token.
37+ #[ schema( value_type = String ) ]
38+ pub pocket_money_fee_token : U256 ,
2839
2940 /// Gas cost for relay call (in native token).
3041 #[ schema( value_type = String ) ]
@@ -85,6 +96,9 @@ pub fn compute_fee(
8596 total_cost_native,
8697 total_cost_fee_token : scale_u256 ( total_cost_native, native_to_fee_ratio) ?,
8798 relayer_cost_native,
99+ relayer_cost_fee_token : scale_u256 ( relayer_cost_native, native_to_fee_ratio) ?,
100+ pocket_money_native : pocket_money,
101+ pocket_money_fee_token : scale_u256 ( pocket_money, native_to_fee_ratio) ?,
88102 gas_cost_native,
89103 gas_cost_fee_token : scale_u256 ( gas_cost_native, native_to_fee_ratio) ?,
90104 commission_native,
0 commit comments