approve

function approve(
    address spender, 
    uint256 amount
) public virtual override returns (bool)

토큰 Approve ν•  λ•Œ μ‚¬μš©

Parameters

TypeValueDescription

address

spender

κΆŒν•œ 쀄 μ£Όμ†Œ(eoa, ca)

uint256

amount

κΆŒν•œ μˆ˜λŸ‰

Example

// 토큰 ν—ˆμš©
await mockToken0Contract.approve(
    stakingRouterContract.address, 
    MaxUint256
)

2022.12.28

Last updated