MCPcopy Create free account
hub / github.com/cowprotocol/services / TokenAmount

Class TokenAmount

crates/shared/src/http_solver.rs:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7 #[derive(Clone, Debug, Default, Eq, PartialEq)]
8 pub struct TokenAmount {
9 pub amount: U256,
10 pub token: Address,
11 }
12
13 impl TokenAmount {
14 pub fn new<T: Into<U256>>(token: Address, amount: T) -> Self {

Callers 10

txFunction · 0.50
sell_amountMethod · 0.50
buy_amountMethod · 0.50
scoreMethod · 0.50
newMethod · 0.50
surplus_in_etherMethod · 0.50
fee_in_etherMethod · 0.50
protocol_feesMethod · 0.50

Calls

no outgoing calls

Tested by 3

newMethod · 0.40