Required KAP20 Functions for SDK system
The contract that can be used with the SDK system as KAP20 must have two important functions as follows:
Function approveBySDK
This function acts like function approve(address spender, uint256 amount) external returns (bool), where _owner
is User to be performed by the system.
Function transferFromBySDK
This function performs as transferFrom(
address sender,
address recipient,
uint256 amount
external
returns (bool) _sender
is the User the system will work on. The Allowance is not checked in the contract we give as an example.
The basic functions that the SDK system expects a contract to have when they added are:
The onlyExecutor modifier is responsible for allowing addresses generated by the SDK system to call the function to which the modifier is attached. And to prevent being called by an address that doesn't have permission to use.
Last updated
Was this helpful?