Integrations

Guide to connect your smart contracts and application to Owy contracts.

circle-exclamation
circle-info

At the moment, there is only one contract from Owy, the Owy Token contract, and it is only launched on the Sepolia Testnet. You may want to recheck the mainnet version again after the official document release. However, this guide now should give you the sense what is possible with Owy Token contract because all or majority of the code will remain the same on the mainnet.

Called by an external address. Required allowance value more than zero. Sender the funds from from to to with the amount value (with 18 decimals). If successful, return true. Anything else beyond this, it works similar to transfer. Sender will pay the required tax amount.

function transferFromWithSlippage(
        address from,
        address to,
        uint256 value,
        uint256 maxTax
    ) external returns (bool);

Called by an external address. Required allowance value more than zero. Sender the funds from from to to with the amount value (with 18 decimals). If successful, return true. Anything else beyond this, it works similar to transferWithSlippage. Sender will pay the required tax amount.

function transferFromFixedAmouunt(
        address from,
        address to,
        uint256 value,
        uint256 taxOffer
    ) external returns (bool, uint256);

Called by an external address. Required allowance value more than zero. Sender the funds from from to to with the amount value (with 18 decimals). If successful, return true. Anything else beyond this, it works similar to transferFixedAmount. Sender will pay the offered tax amount.


Events

Emit this event whenever any transfer or transferFrom functions succeed.

Emit this event whnever any approval functions succeed.


Errors

Below is the list of errors in Owy Token contract. You may need to go through the Owy.sol contract to find out more where each of the error will be raised.

Last updated