How to delegate boost from locking veBAL on a standard EOA to a Gnosis Safe or similar contract wallet / mechanism.
A common obstacle faced by users of vote escrowed systems is the inability to lock their token in the time based veBAL contract. For safe users this would mean no access to veBAL governance or boosted liquidity pool incentives.
// code
_delegator = your address which has veBAL,
_receiver = your address you want to boost
_percentage = 5000 // 50% (10000 is 100% of your boost)
_cancel_time = 0 // allow yourself to cancel anytime
_expire_time = 1651363200 // unix timestamp for 1st
of may (Check this! Also your lock needs to last past this time)
_id = 0,
This is useful for situations where you are LP'ing from a contract like a gnosis safe which, because it's a contract, is incapable of locking of veBAL. Instead, you lock up veBAL from an EOA and delegate your boost to your gnosis safe.
Note that the percentage is flexible over the complete range of boost which you would like to delegate.