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